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/