Want to subscribe to topics you're interested in?
Become a Member

PHP-FPM php cannot find file

Discussion in 'Install & Upgrades or Pre-Install Questions' started by yunos, Jul 26, 2019.

  1. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    8:09 AM
    1.8.0
    i tried with centmin menu option andupgrade through there but then from logs i get this error
    https://pastebin.com/kbVkvLGS

     
    Last edited: Jul 26, 2019
  2. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    8:09 AM
    1.8.0
  3. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:09 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    you entered incorrect php version number as 7.3 you need to enter exact version number listed at php.net so 7.3.7 is latest version number to enter
     
  4. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    8:09 AM
    1.8.0
    i figured that later but it yielded different error. i had to install libzip to get the upgrade working
    its weird that i had to install it manually and not included in your build script though
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:09 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    it is automatically installed in 123.09beta01

    123.08stable only supports php to 7.0, if you want php 7.1-7.3 full support need to use 123.09beta01 which will install libzip when you choose php 7.3. If you install libzip manually, then remove it via yum remove, and use 123.09beta01 to update to php 7.3.7 to properly install libzip the way centmin mod 123.09beta01 intends it to be installed.
     
  6. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    8:09 AM
    1.8.0
    well i had beta01 when i tried installing 7.3.7 but it always complains that php make file doesnt exist and libzip is mssing
     
  7. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:09 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    You can also share php upgrade logs to investigate further. Every centmin.sh menu option has a full server log created with time stamped file name at /root/centminlogs. You can check that specific error log for clues or copy and paste log contents and post to pastebin.com or gist.github.com for sharing.

    To troubleshoot, you need to check the the php upgrade logs at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade and php_upgrade logs. You can see full details at How to troubleshoot Centmin Mod initial install issues

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest php_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade or php in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    

    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    -rw-r--r--  1 root root  2.6M Oct  3 03:48 centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    -rw-r--r--  1 root root  664K Oct 12 09:24 centminmod_1.2.3-eva2000.09.001_121016-092406_nginx_upgrade.log
    

    So the last php upgrade log was named centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    then use cat command to output the contents of that log.

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of a specific log, in this case most recent php_upgrade.log logs - you maybe last 2 - 5 logs so can get past failed runs
     
  8. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:09 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    oh that was probably entering php 7.3 as version as there is no 7.3 download file so php make wouldn't exist. Exact php version is needed i.e. 7.3.7

    whether libzip is installed automatically also is from detected php version being in format 7.3.x

    so most likely when you just enter php 7.3, routine didn't detect php version properly to install libzip automatically.
     
  9. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:09 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  10. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    8:09 AM
    1.8.0
    i kinda deleted the logs and i dont want to remove the manual installed libzip since everything is working accordingly

    But when i was on beta build and i selected 7.3.7 specifically, i notied still that it was complaining about libzip missing. i used the menu option to change from stable to beta.

    well this is how i installed it
    wget https://github.com/Kitware/CMake/releases/download/v3.15.0/cmake-3.15.0.tar.gz
    tar zxvf cmake-3.15.0.tar.gz
    cd cmake-3.15.0
    ./bootstrap
    make
    make install

    wget https://libzip.org/download/libzip-1.5.2.tar.xz
    tar zxvf libzip-1.5.2.tar.gz
    cd libzip-1.5.2
    mkdir build
    cd build
    /usr/local/bin/cmake ..
    make
    make test
    make install
     
  11. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:09 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+