Sunday, March 1, 2009

Installing Apache WebServer on Ubuntu

Hi,
'm coming from Windows background.
I used to use WAMP / XAMPP on windows.

Now I 've switched to Ubuntu and 'm loving it.

I was trying to install Apache WebServer on my machine. I googled a bit and found the solution. I didn't knew installing Apache on Linux could be so easy.
  1. Go to Terminal Window.
  2. Type sudo apt-get install apache2
  3. Enter the root password when prompted.
  4. When installed, open your Web Browser and go to URL http://localhost , If it has been properly installed, you should see It Work's!
  5. Now try restarting the server, sudo /etc/init.d/apache2 restart . If you receive any error like
    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    ... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
  6. Run the command gksu gedit /etc/apache2/conf.d/fqdn . This will open up GEdit. Enter the following in it: ServerName localhost
  7. Now you should be able to restart your Apache. Try it out :)

Source: http://ubuntuexperiment.wordpress.com/2008/11/10/installing-apache-php-mysql/

No comments:

Post a Comment