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/ 😛
3 thoughts on “Installing Apache on Linux”
hello there ive done it .. im very new to this .. may i know what files should i drop in /var/www/
It was just a Saying… You can put whatever you want, and its your (“)server now !!
Just drop things there and go to web browser and type http://localhost and you’ll se your stuff
Hmm.. I am getting his error. Any ideas?
The requested URL / was not found on this server.
Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 80