ApachePHPMySQLForUbuntu
This guide has been written for Ubuntu (versions 6.06/6.10) using a GNOME (standard) desktop - it will need to be adapted for other distributions
Assuming you have an active Internet connection...
Installing Apache2
Part 1 - Configuration
1. open a terminal
2. enter the following - enter 'Y' to any questions
sudo apt-get install apache2 sudo chmod 777 /var/www
3. if you're using GNOME on Ubuntu
3.1 Click on 'Places' on your task bar, then 'Home Folder'
3.2 In the menu bar click on 'Go' then 'Location...' and enter /var/www in the box and hit enter, and you should see something like this:
3.3 Click on 'File' then 'New Folder' on the menu, and rename the folder created as 'cp1079www' (lowercase)
3.4 Open the 'cp1079www' folder
3.5 TO MAKE LIFE EASIER: Click on 'Bookmarks' then click 'Add Bookmark' - this will create a shortcut in your 'Places' at the bottom of the left hand pane, that will be useful later.
3.6 Close the file manager window
Part 2 - Create a test file
3.7 Open your preferred text editor
3.8 Create a new blank file if one has not been automatically created for you
3.9 Enter the following into your new file
<HTML> Hello WWW World! </HTML>
3.10 Click on 'File' then 'Save' - change the filename to 'index.html' and click on 'Save in Folder' - at the bottom of the drop down list should be 'cp1079www' - the shortcut you created earlier - select this, and click 'Save'
Part 3 - Testing your installation
3.11 Open firefox (or your preferred browser)
3.12 enter the following URL:
http://localhost
You should see two hyperlinks (folders) - one should say 'apache2-default' and the other 'cp1079www' - click 'cp1079www'
3.13 You should see a wepage that says Hello WWW World! - CONGRATULATIONS - your Apache webserver is up and running.