Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Centmin Mod php-fpm help
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Centmin Mod php-fpm help

edited September 2012 in General

Decided to try out the Centmin Mod as I wanted to mess around a bit with CentOS, but I can't get php-fpm to work!

php-fpm was started, but I was still getting 502 Bad Gateway errors when visiting PHP files. Tried to restart php-fpm, of which the command would always fail and I had to kill php-fpm manually.

Then, I tried to restart it again:

/etc/init.d/php-fpm start

Starting php-fpm /etc/init.d/php-fpm: line 68: /usr/local/sbin/php-fpm: No such file or directory

But I can't find out what should be in the /usr/local/sbin/php-fpm file.

I usually rock nginx on Debain with php-fastcgi so I'm just a tad lost here.

Comments

  • Calling @eva2000...

    Thanked by 1[Deleted User]
  • eva2000eva2000 Veteran
    edited September 2012

    Busy with vB work heh, but which Centmin Mod version you using .19 ?

    1. What does the automated centmin mod log files report for your install log (they are timestamped) http://centminmod.com/faq.html#loginstall ?

    2. If install log too verbose, you can also run menu option #5 and try a manual php upgrade and enter php version number when prompted. The manual php upgrade/reinstall option #5 has built in error checking so will error out at either configure, make or make install stages during php install so as to better identify at which stage errors occur. Then you can look into automated php upgrade log http://centminmod.com/faq.html#loginstall which is alot smaller in size compared to install log and see where the problem is

    3. Most likely PHP-FPM failed to install, this can happen for many reasons - some common ones is the download of PHP tarball didn't complete (internet connection issues etc), so PHP-FPM didn't install. If it failed due to incomplete PHP-FPM download, you can try running php upgrade menu option #5 and specify a different PHP version to confirm if it's a problem with incomplete previous PHP-FPM version. Or you can go into /svr-setup directory and delete the existing PHP tarball file and re-run php upgrade menu option #5 specifying your intended PHP version when prompted

    4. Which version of PHP-FPM used 5.3.16 ? Between 5.3.14-16 some folks have experienced segfaults and problems restarting PHP-FPM service you can see some examples at http://forum.nginx.org/list.php?3

    HTH

  • @eva2000 said: Busy with vB work heh, but which Centmin Mod version you using .19 ?

    What does the automated centmin mod log files report for your install log (they are timestamped) http://centminmod.com/faq.html#loginstall ?

    If install log too verbose, you can also run menu option #5 and try a manual php upgrade and enter php version number when prompted. The manual php upgrade/reinstall option #5 has built in error checking so will error out at either configure, make or make install stages during php install so as to better identify at which stage errors occur. Then you can look into automated php upgrade log http://centminmod.com/faq.html#loginstall which is alot smaller in size compared to install log and see where the problem is

    Most likely PHP-FPM failed to install, this can happen for many reasons - some common ones is the download of PHP tarball didn't complete (internet connection issues etc), so PHP-FPM didn't install. If it failed due to incomplete PHP-FPM download, you can try running php upgrade menu option #5 and specify a different PHP version to confirm if it's a problem with incomplete previous PHP-FPM version. Or you can go into /svr-setup directory and delete the existing PHP tarball file and re-run php upgrade menu option #5 specifying your intended PHP version when prompted

    Which version of PHP-FPM used 5.3.16 ? Between 5.3.14-16 some folks have experienced segfaults and problems restarting PHP-FPM service you can see some examples at http://forum.nginx.org/list.php?3

    HTH

    1.)
    ls -lhrt /root/centminlogs/
    total 5.4M
    -rw-r--r-- 1 root root 4.1M Sep 18 09:03 centminmod_1.2.2-eva2000.19_180912-022436_install.log
    -rw-r--r-- 1 root root 1.1K Sep 18 09:04 centminmod_1.2.2-eva2000.19_180912-022436_nginx_addvhost.log
    -rw-r--r-- 1 root root 35K Sep 18 09:29 centminmod_1.2.2-eva2000.19_180912-092421_php_upgrade.log
    -rw-r--r-- 1 root root 12K Sep 18 09:30 centminmod_1.2.2-eva2000.19_180912-092421_xcache_install.log
    -rw-r--r-- 1 root root 3.7K Sep 18 11:08 centminmod_1.2.2-eva2000.19_180912-110735_suhosin_install.log
    -rw-r--r-- 1 root root 1.3M Sep 18 13:56 centminmod_1.2.2-eva2000.19_180912-133318_php_upgrade.log

    2.)
    Tried this, no go. The log file is 1.5MB in size and I'm not sure what I should be looking for in it.

    3.)
    I'll give that a shot.

    4.)
    First install, was whatever version that the script automatically installs. On the second attempt, I specified 5.3.17

Sign In or Register to comment.