Install LEMP Server (Nginx, PHP, MariaDB & phpMyAdmin) on Fedora 22, 23 & 24

7) Test PHP Configuration

Finally create the phpinfo.php file on web server root directory to test the php configuration.

$ sudo nano /usr/share/nginx/html/phpinfo.php

<?php
 phpinfo();
?>

Run nginx configuration test

$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Restart & Reload Necessary Services to take effect.

[Restart Nginx & php-fpm services]
$ sudo systemctl reload nginx.service
$ sudo systemctl restart nginx.service

[Restart php-fpm service]
$ sudo systemctl restart php-fpm.service

Open your web browser and navigate to http://localhost/phpinfo.php or http://your-server-ip-address/phpinfo.php or http://127.0.0.1/phpinfo.php
install-lemp-on-fedora-24-workstation-2

About Magesh Maruthamuthu

Love to play with all Linux distribution

View all posts by Magesh Maruthamuthu

Leave a Reply

Your email address will not be published. Required fields are marked *