Hello I want some help please to install on my nginx dedicated server (Centos) the latest php. I want to host a forum and i want a basic php installation for that (the best way for easy to update it in the future). What commands i must run from ssh for this and do i have to browse to a folder before i run those commands? Thank you
Install remi repo, and do yum install of php-cli and php-fpm alternatively use http://www.ruchirablog.com/nginx-autoinstaller/
Thanks anands But i was looking for more custom solution so i can update easy tha nginx and the mysql and php and to not use repo. Installing php from source plus some basic parameters so a forum can work will be great
Are you using a forum? As i was try on my previous configuration Apache - php (fastcgi) i had some problesm. When a user registers the first minute was ok the stats down on the left on my forum. Then after a few minutes new users was registered and after i press F5 to refresh the page every time i got wrong stats. Some times 550 (correct stat) after F5 again i got 546 and again 542 and then 550 and every time i was refreshing the page i got thisproblem and the same also happend with the shoutbox and topic replies. I was reply and then after f5 reply was there and then F5 again and the reply gone and after a whie f5 and the reply is back. Then i go back to DSO Apache Handler and all problems gone. That's why i am asking if you have related problems with fastcgi .... Anyone please give more info about this. Thank you
You need to use php-fpm to run PHP on nginx, you should check out some tutorials or use an autoinstaller.
hope this tute will help you to understand. Thread is too old but I'm posting this to help if anyone face the same problem again. Please remove the comment if it's against the rules of this forum. Install Nginx & PHP on CentsOS/RHEL 7 - https://www.fossgeek.org/server-configuration/install-nginx-php-centos-rhel-server/