Setting up Fedora as a local webserver

I’ve recently had to set up a couple of fedora installations as a web server, for the purpose of testing some PHP scripts (for example a Zen Cart install). It’s pretty trivial, but each time I wasted time remembering what it was I had to do.  Now that I’ve written this,  I doubt I’ll forget again.  Oh well.

So here’s what you have to do:

  1. Install PHP if it’s not there yet (yum install php)
  2. Start (or restart) httpd (service httpd restart).
  3. Put yer content into your systems html directory.  On Fedora that’s var/www/html
  4. You can now view the web content in your browser at http://localhost/

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.