Testing Apache Webserver running on a guest Fedora Linux OS
Thursday, 20 September 2007
TUTORIAL: Testing Apache Webserver running on a guest Fedora Linux OS

This tutorial shows the steps for testing if Apache is running.

 
STEPS
  1. Create a Fedora Linux virtual machine (guest) on Windows XP(host) with Vmware.
  2. Install Fedora Linux. This is now the guest OS.
  3. Start Linux, than log in as a regular user. Start a shell to input commands
  4. Change to root (su - root)
  5. Start Apache by typing at the command prompt: service httpd start. Test if service is running by typing: telnet localhost 80 (see image 1 below). GNOME or KSE  GUI tools can also be used to configure Apache.

  6. Image
  7. Find the IP address of this server by typing: ifconfig (this is equivalent to typing at the commnad prompt in Windows: ipconfig  - see image 2 with the black background below) Note that this is a different IP address than that generated by Windows in the host machine.

  8. Image
  9. By default Apache is set to listen to all available IP addresses (GNOME or KSE GUI tools can be used to verity this)
  10.  Start FTP service by typing in: /etc/init.d/vsftpd start
  11. Create an index.html test page and upload to /var/www/html (see image 3 below).

  12. Image
  13. Open a brower on host Windows XP and type in the URL found in step 6. The test page should appear (see image 1)