I’m Preparing this for my next tutorial about :
Installing and Configuring Drupal 7 on a Linux machine.
Installing Apache is easy just a few commands and you’re ready to sue it.
Note: Lamp Server doesn’t just install apache but also PHP/Perl/Python and MySQL
1. Type :
$ sudo tasksel install lamp-server
It will ask some passwords about Mysql just add them and proceed
after finishing go ahead and type this command :
$ echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn
$ sudo /etc/init.d/apache2 restart
Test it by going to your web browser and typing:
127.0.0.1 or localhost
If it says It Works than you’re done !
Now just drop files to /var/www/ 😛