Comments on: How to Install LEMP Stack (Nginx, MySQL, PHP v7) on CentOS 7 https://www.hostinger.co.uk/tutorials/how-to-install-lemp-centos7 Tue, 05 Sep 2023 09:52:22 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Shawn https://www.hostinger.co.uk/tutorials/how-to-install-lemp-centos7#comment-184250 Sat, 26 Dec 2020 10:37:36 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-install-lemp-centos7/#comment-184250 Fantastic, really saved my day. Thanks a lot.

]]>
By: Bawa Geek https://www.hostinger.co.uk/tutorials/how-to-install-lemp-centos7#comment-106586 Mon, 12 Aug 2019 20:09:34 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-install-lemp-centos7/#comment-106586 Works as expected, Thanks a lot

]]>
By: Kerns Noel https://www.hostinger.co.uk/tutorials/how-to-install-lemp-centos7#comment-105067 Wed, 10 Apr 2019 18:42:19 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-install-lemp-centos7/#comment-105067 In reply to Steve.


Put that in a php file, inside the html directory & use a browser to see it.

]]>
By: Lukman Suprayitno https://www.hostinger.co.uk/tutorials/how-to-install-lemp-centos7#comment-105014 Fri, 05 Apr 2019 04:22:53 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-install-lemp-centos7/#comment-105014 worked perfectly

]]>
By: Waqas Ahmad Khan https://www.hostinger.co.uk/tutorials/how-to-install-lemp-centos7#comment-77839 Wed, 08 Aug 2018 23:22:39 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-install-lemp-centos7/#comment-77839 Thanks, this guide really helped.

]]>
By: Roy Toledo https://www.hostinger.co.uk/tutorials/how-to-install-lemp-centos7#comment-66063 Tue, 17 Jul 2018 13:55:08 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-install-lemp-centos7/#comment-66063 Thanks! Saved me!
The best tutorial out there for PHP7!

]]>
By: Domantas G. https://www.hostinger.co.uk/tutorials/how-to-install-lemp-centos7#comment-39779 Sat, 28 Apr 2018 08:18:37 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-install-lemp-centos7/#comment-39779 In reply to Jorge Cordero.

Hey Jorge,

Nice one, thanks!

]]>
By: Josha H. https://www.hostinger.co.uk/tutorials/how-to-install-lemp-centos7#comment-35225 Sun, 15 Apr 2018 22:09:12 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-install-lemp-centos7/#comment-35225 In reply to Matt.

Hey! It’s probably because the location directive for .php-files wasn’t put in the nginx.conf file. If you input the following code below the other location directives (like the ‘/’-one) it should work:

location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

Good luck! 😉

]]>
By: Jorge Cordero https://www.hostinger.co.uk/tutorials/how-to-install-lemp-centos7#comment-34052 Fri, 06 Apr 2018 18:19:58 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-install-lemp-centos7/#comment-34052 To test installation create a file /usr/share/nginx/html/info.php with this content “<?php phpinfo();"
If you open the page in your browser, and it download the page instead of showing content, then you have to comment in /etc/nginx/nginx.conf the "server" block below the line "include /etc/nginx/conf.d/*.conf;"
Save, restart nginx and its solved.

]]>