Apache
The Apache work package goal is describing the exact steps needed to set up an Apache web server suitable for accessing through Fedora repository in our DOMS project.
Requirements
The DOMS project requires a standard webserver with a directory writable for the DOMS user.
Installation instructions for an Apache webserver
For Fedora Core 3 or Later or Redhat Enterprise Linux, installing a webserver can be obtained by running
sudo yum install httpd
To get it running, and making sure it runs when rebooting the machine, do the following:
sudo /sbin/service httpd start sudo /sbin/chkconfig httpd on
A standard apache webserver installed thus serves files from /var/www/html. To make a directory DOMS, which is writable by you, do the following:
sudo mkdir /var/www/html/DOMS sudo chown $USER /var/www/html/DOMS
Testing the installation
Make a file in the directory:
echo "Hello world" > /var/www/html/DOMS/test.txt
Retrieve http://localhost/DOMS/test.txt
wget -q -O - http://localhost/DOMS/test.txt
It should show "Hello world".
Clean up after you.
rm /var/www/html/DOMS/test.txt