Installing Apache on Linux

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

Restar apache:

 $ 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

  1. Hmm.. I am getting his error. Any ideas?

    Not Found

    The requested URL / was not found on this server.

    Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 80

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s