LAMP WebServer with PHP 5 Quick Start for Fedora
Hi! The Tutorial shows you Step-by-Step How to Install Apache, MySQL/MariaDB and PHP 5 on Fedora GNU/Linux Desktop/Server.
LAMP has become a de facto Development Standard. Today, the products that make up the LAMP stack are included by default in nearly all GNU/Linux distributions, and together they make a powerful web application platform.
-
Open a Command Line Terminal Window
(Press “Enter” to Execute Commands)In case first see: Terminal QuickStart Guide.
-
Installing Apache & PHP.
sudo yum install httpd php php-common
-
Installing PHP Modules.
sudo yum install php-pear php-mysqlnd php-gd php-mbstring php-mcrypt php-xml
-
Starting & Possibly Enabling Apache.
sudo systemctl start httpd.service
To Get it Started at boot:
sudo systemctl enable httpd.service
-
Testing LAMP Istallation
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
-
(Optional) To Enable Remote Connections on Server.
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo systemctl restart firewalld.service