Apache Web Service - Henryisgreat/TechJournalSystemAdmin GitHub Wiki

Once you have a dhcp server set up you need to install http in order to run apache on it.

this can be done by simply sudo yum instll httpd

Once httpd is installed, the firewall will need to be updated and restarted, run the following commands after installing

firewall-cmd --add-service=httpd --permanent (never forget the permanent tag)

firewall-cmd --restart

once these have run, the apache web server should be up and running, in order to connect it however, you will first need to remove the welcome.conf file from /var/

once that file is gone, go to /var/www/html/ and create two files; "index.html, index.php".

These will be the two files to keep on the server for the time being. In order to run them, do not forget to install php with sudo yum install php