Getting Started
-
3. LAMP Getting Started
Starting & Possibly Enabling Apache
With:su -c "systemctl start httpd.service"
To Get it Started at boot:
su -c "systemctl enable httpd.service"
In case to Stop it:
su -c "systemctl stop httpd.service"
Testing LAMP Istallation
Making the Php info File:su -c "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
(Optional) To Enable Remote Connections on Server.
su -c "firewall-cmd --permanent --zone=public --add-service=http"
su -c "systemctl restart firewalld.service"
Contents