Getting Started
-
5. Starting Apache
Starting & Possibly Enabling Apache
To Launch it:sudo service httpd start
And to Get it Started at Boot:
sudo service httpd enable
-
6. Testing LAMP
Finally, to Test LAMP Setup
Making the Php info File:sudo nano /var/www/html/test.php
Append:
<?php phpinfo();
Ctrl+x to Save & Exit from nano editor :)
Check on Browser at:
http://localhost/test.php
-
6. Setting up Firewall
(Optional) Required only to Set up a Web Server
First, to Enable Remote Connections use:sudo firewall-cmd --permanent --zone=public --add-service=http
Last, Restart the Firewall with:
sudo systemctl restart firewalld.service
Contents