PHP does not work on new installed server

Discussion in 'Installation/Configuration' started by muekno, Mar 9, 2022.

  1. muekno

    muekno Active Member HowtoForge Supporter

    What I did
    a) installed Debian 10 following tutorial minimal server
    b) installed web and db server following "the perfect server debian 10" and ispconfig 3.1 manual multiserver system
    c) included server successfull in my multiserver system
    d) did an apt update and and upgrade what installed me php 8.1 do not know why I think it is not standard on debian 10
    e) installed PHP 7.4 following How to install PHP 5.6 and 7.0-8.1 as PHP-FPM ...
    made alle the entries under system server web php
    f) moved a html only website from another server runs fine, runing fine on the old debian 10 testing server under ISPConfig
    g) moved an php web site from an other server got 503 error, running finee on the old debian 10 testing server und ISP Config until last update that killer php 7.3, ISPConfig update --force fails with missing modules, the reason I set up the new server
    h) found a problem with memcache in apache error log
    i) uninstalled memcache, problem still exists
    apache error.log
    Code:
    [ 2022-03-09 13:31:54.7007 2533/7f2585909980 age/Wat/WatchdogMain.cpp:1291 ]: Starting Passenger watchdog...
    [ 2022-03-09 13:31:54.7205 2536/7facd2e07980 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
    [ 2022-03-09 13:31:54.7206 2536/7facd2e07980 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
    [ 2022-03-09 13:31:54.7215 2536/7facd2e07980 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 2536
    [ 2022-03-09 13:31:54.7417 2541/7fd6841c0980 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
    [ 2022-03-09 13:31:54.7431 2541/7fd6841c0980 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 2541
    [Wed Mar 09 13:31:54.745372 2022] [ssl:warn] [pid 2530] AH01906: http3.muekno.de:8081:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Wed Mar 09 13:31:54.745522 2022] [ssl:error] [pid 2530] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: [email protected],CN=http3.muekno.de,OU=IT,O=IB MK,L=Rednitzhembach,ST=Franken,C=DE / issuer: [email protected],CN=http3.muekno.de,OU=IT,O=IB MK,L=Rednitzhembach,ST=Franken,C=DE / serial: 2D73A34513E188FD7148D9CE740B2FC01E077BFB / notbefore: Mar  7 13:58:44 2022 GMT / notafter: Mar  4 13:58:44 2032 GMT]
    [Wed Mar 09 13:31:54.745531 2022] [ssl:error] [pid 2530] AH02604: Unable to configure certificate http3.muekno.de:8081:0 for stapling
    [Wed Mar 09 13:31:54.745580 2022] [suexec:notice] [pid 2530] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    
    [ 2022-03-09 13:31:54.7644 2536/7facd2518700 age/Cor/CoreMain.cpp:532 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
    [ 2022-03-09 13:31:54.7644 2536/7facd2e07980 age/Cor/CoreMain.cpp:901 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
    [ 2022-03-09 13:31:54.7645 2536/7facd1c96700 Ser/Server.h:817 ]: [ApiServer] Freed 0 spare client objects
    [ 2022-03-09 13:31:54.7645 2536/7facd1c96700 Ser/Server.h:464 ]: [ApiServer] Shutdown finished
    [ 2022-03-09 13:31:54.7645 2536/7facd2518700 Ser/Server.h:817 ]: [ServerThr.1] Freed 128 spare client objects
    [ 2022-03-09 13:31:54.7646 2536/7facd2518700 Ser/Server.h:464 ]: [ServerThr.1] Shutdown finished
    
    [ 2022-03-09 13:31:54.7651 2541/7fd6840c1700 age/Ust/UstRouterMain.cpp:422 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
    [ 2022-03-09 13:31:54.7651 2541/7fd6841c0980 age/Ust/UstRouterMain.cpp:492 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
    [ 2022-03-09 13:31:54.7652 2541/7fd68383f700 Ser/Server.h:817 ]: [UstRouterApiServer] Freed 0 spare client objects
    [ 2022-03-09 13:31:54.7652 2541/7fd68383f700 Ser/Server.h:464 ]: [UstRouterApiServer] Shutdown finished
    [ 2022-03-09 13:31:54.7653 2541/7fd6840c1700 Ser/Server.h:464 ]: [UstRouter] Shutdown finished
    [ 2022-03-09 13:31:54.7654 2541/7fd6841c0980 age/Ust/UstRouterMain.cpp:523 ]: Passenger UstRouter shutdown finished
    [ 2022-03-09 13:31:54.7854 2536/7facd2e07980 age/Cor/CoreMain.cpp:967 ]: Passenger core shutdown finished
    [ 2022-03-09 13:31:54.8158 2560/7fe6da5da980 age/Wat/WatchdogMain.cpp:1291 ]: Starting Passenger watchdog...
    [ 2022-03-09 13:31:54.8359 2567/7f66a90e4980 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
    [ 2022-03-09 13:31:54.8360 2567/7f66a90e4980 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
    [ 2022-03-09 13:31:54.8408 2567/7f66a90e4980 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 2567
    [ 2022-03-09 13:31:54.8582 2572/7fdd9e351980 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
    [ 2022-03-09 13:31:54.8595 2572/7fdd9e351980 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 2572
    PHP Warning:  PHP Startup: Unable to load dynamic library 'memcache.so' (tried: /usr/lib/php/20180731/memcache.so (/usr/lib/php/20180731/memcache.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/memcache.so.so (/usr/lib/php/20180731/memcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    [Wed Mar 09 13:31:54.892251 2022] [ssl:warn] [pid 2557] AH01906: http3.muekno.de:8081:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Wed Mar 09 13:31:54.892397 2022] [ssl:error] [pid 2557] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: [email protected],CN=http3.muekno.de,OU=IT,O=IB MK,L=Rednitzhembach,ST=Franken,C=DE / issuer: [email protected],CN=http3.muekno.de,OU=IT,O=IB MK,L=Rednitzhembach,ST=Franken,C=DE / serial: 2D73A34513E188FD7148D9CE740B2FC01E077BFB / notbefore: Mar  7 13:58:44 2022 GMT / notafter: Mar  4 13:58:44 2032 GMT]
    [Wed Mar 09 13:31:54.892408 2022] [ssl:error] [pid 2557] AH02604: Unable to configure certificate http3.muekno.de:8081:0 for stapling
    [Wed Mar 09 13:31:54.892495 2022] [:error] [pid 2557] python_init: Python version mismatch, expected '2.7.5+', found '2.7.16'.
    [Wed Mar 09 13:31:54.892566 2022] [:error] [pid 2557] python_init: Python executable found '/usr/bin/python'.
    [Wed Mar 09 13:31:54.892574 2022] [:error] [pid 2557] python_init: Python path being used '/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
    [Wed Mar 09 13:31:54.892597 2022] [:notice] [pid 2557] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
    [Wed Mar 09 13:31:54.892603 2022] [:notice] [pid 2557] mod_python: using mutex_directory /tmp
    [Wed Mar 09 13:31:54.905031 2022] [mpm_prefork:notice] [pid 2557] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 Phusion_Passenger/5.0.30 OpenSSL/1.1.1d mod_python/3.3.1 Python/2.7.16 mod_perl/2.0.10 Perl/v5.28.1 configured -- resuming normal operations
    [Wed Mar 09 13:31:54.905054 2022] [core:notice] [pid 2557] AH00094: Command line: '/usr/sbin/apache2'
    [/coder]
    need help or hint
    Regards
    Rainer
    
    P.S. auf setting up the second website the ISPConfig initial page woge worked fine
     
    Last edited: Mar 9, 2022
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. muekno

    muekno Active Member HowtoForge Supporter

    I set the default version to as requested under pos9 in mentioned tutorial to 7.3. Website is set to 7.4 as it was set in the old server
    Regards Rainer
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Which missing modules? Have you tried installing them? What is error message?
    Just to make sure, what show commands
    Code:
    update-alternatives --config php
    update-alternatives --config php-cgi
     
  5. muekno

    muekno Active Member HowtoForge Supporter

    Code:
    
      Selection    Path             Priority   Status
    ------------------------------------------------------------
      0            /usr/bin/php8.1   81        auto mode
    * 1            /usr/bin/php7.3   73        manual mode
      2            /usr/bin/php7.4   74        manual mode
      3            /usr/bin/php8.1   81        manual mode
    
    Press <enter> to keep the current choice[*], or type selection number: 
    There are 3 choices for the alternative php (providing /usr/bin/php).
    
      Selection    Path             Priority   Status
    ------------------------------------------------------------
      0            /usr/bin/php8.1   81        auto mode
    * 1            /usr/bin/php7.3   73        manual mode
      2            /usr/bin/php7.4   74        manual mode
      3            /usr/bin/php8.1   81        manual mode
    
    First time I entered 1 corresponding php 7.3, second time I hit enter what should confirm the current choice marked by *

    Regards Reiner
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    If you followed the perfect server guide for Debian 10, then all required PHP modules for PHP 7.3 must be there. If the iSPConfig updater complains they are missing, then they must have been removed in the meantime and you have to install them again. or you did not select the correct PHP version again for PHP and php-cgi, you must run both commands @Taleman posted to do that.
     
  7. muekno

    muekno Active Member HowtoForge Supporter

    You missunderstand me. There ist no problem with ISPConfig at all. The Problem was on the old server wich was a debian 10 testing version that run well for a long time but some days ago a Debian update removed php 7.3 modules. As I wanted to come to regular stable version I installed a new one, see steps I listed above. I can do
    ispconfig_update.sh --force without any problem.
    This new one has the problem described obove.

    Regards
    Rainer
     
  8. muekno

    muekno Active Member HowtoForge Supporter

    SOLVED do not really know how or why.
    I rechecked everything, found nothing wrong.
    Went again through "How to install PHP 5.6 and 7.0-8.1 as PHP-FPM ..."
    Run the install commands again, everything was installed.
    set up a new website, got the initial page with valid letsencrypt cert.
    Made a minimum php script
    Code:
    <?php
    phpinfo();
    ?>
    
    Runs fine, tried the move site worked fine.
    Thanks for help
    Regards
    Rainer
     

Share This Page