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:
- Install PHP if it’s not there yet (yum install php)
- Start (or restart) httpd (service httpd restart).
- Put yer content into your systems html directory. On Fedora that’s var/www/html
- You can now view the web content in your browser at http://localhost/