Can't access to ISPConfig Interface

Discussion in 'Installation/Configuration' started by yasine, Aug 13, 2022.

  1. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You are missing all modules. Please run
    Code:
    apt-get install php7.3 php7.3-cli php7.3-cgi php7.3-fpm php7.3-gd php7.3-mysql php7.3-imap php7.3-curl php7.3-intl php7.3-pspell php7.3-recode php7.3-sqlite3 php7.3-tidy php7.3-xmlrpc php7.3-xsl php7.3-zip php7.3-mbstring php7.3-soap php7.3-opcache php7.3-common php7.3-json php7.3-readline php7.3-xml
    and share the output.
     
  2. yasine

    yasine New Member

    Still the same error : Failed to start The PHP 7.3 FastCGI Process Manager
    Code:
    root@azure:/etc/php/7.3/cgi# apt-get install php7.3 php7.3-cli php7.3-cgi php7.3-fpm php7.3-gd php7.3-mysql php7.3-imap php7.3-curl php7.3-intl php7.3-pspell php7.3-recode php7.3-sqlite3 php7.3-tidy php7.3-xmlrpc php7.3-xsl php7.3-zip php7.3-mbstring php7.3-soap php7.3-opcache php7.3-common php7.3-json php7.3-readline php7.3-xml
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    php7.3 is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-cgi is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-cli is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-common is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-curl is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-fpm is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-gd is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-imap is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-intl is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-json is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-mbstring is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-mysql is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-opcache is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-pspell is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-readline is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-recode is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-soap is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-sqlite3 is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-tidy is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-xml is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-xmlrpc is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-xsl is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    php7.3-zip is already the newest version (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4).
    The following packages were automatically installed and are no longer required:
      linux-image-4.19.0-16-cloud-amd64 php8.0-imagick
    Use 'apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Setting up php7.3-fpm (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4) ...
    Not replacing deleted config file /etc/php/7.3/fpm/php.ini
    NOTICE: Not enabling PHP 7.3 FPM by default.
    NOTICE: To enable PHP 7.3 FPM in Apache2 do:
    NOTICE: a2enmod proxy_fcgi setenvif
    NOTICE: a2enconf php7.3-fpm
    NOTICE: You are seeing this message because you have apache2 package installed.
    Job for php7.3-fpm.service failed because the control process exited with error code.
    See "systemctl status php7.3-fpm.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript php7.3-fpm, action "restart" failed.
    ● php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
       Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Sun 2022-09-04 21:36:46 UTC; 11ms ago
         Docs: man:php-fpm7.3(8)
      Process: 21091 ExecStart=/usr/sbin/php-fpm7.3 --nodaemonize --fpm-config /etc/php/7.3/fpm/php-fpm.conf (code=exited, status=78)
      Process: 21097 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0/SUCCESS)
     Main PID: 21091 (code=exited, status=78)
    
    Sep 04 21:36:46 azure systemd[1]: Starting The PHP 7.3 FastCGI Process Manager...
    Sep 04 21:36:46 azure php-fpm7.3[21091]: [04-Sep-2022 21:36:46] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: /usr/lib/php/20180731/mysqli.so (/usr/lib/php/20180731/mysqli.so: undefined symbol: mysqlnd_global_stats), /usr/lib/php/20180731/mysqli.so.so (/usr/lib/php/20180731/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Sep 04 21:36:46 azure php-fpm7.3[21091]: [04-Sep-2022 21:36:46] WARNING: Nothing matches the include pattern '/etc/php/7.3/fpm/pool.d/*.conf' from /etc/php/7.3/fpm/php-fpm.conf at line 143.
    Sep 04 21:36:46 azure php-fpm7.3[21091]: [04-Sep-2022 21:36:46] ERROR: No pool defined. at least one pool section must be specified in config file
    Sep 04 21:36:46 azure php-fpm7.3[21091]: [04-Sep-2022 21:36:46] ERROR: failed to post process the configuration
    Sep 04 21:36:46 azure php-fpm7.3[21091]: [04-Sep-2022 21:36:46] ERROR: FPM initialization failed
    Sep 04 21:36:46 azure systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG
    Sep 04 21:36:46 azure systemd[1]: php7.3-fpm.service: Failed with result 'exit-code'.
    Sep 04 21:36:46 azure systemd[1]: Failed to start The PHP 7.3 FastCGI Process Manager.
    dpkg: error processing package php7.3-fpm (--configure):
     installed php7.3-fpm package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
     php7.3-fpm
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
     
  3. yasine

    yasine New Member

    I think this is an advanced problem , almost no one has been able to provide a solution to this difficult problem !
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What does command
    Code:
    ls /etc/php/7.3/cgi/conf.d/
    show now?
    Is some heavy handed PHP reconfiguration been done on this host? The PHP system seem rather bonkers. Is the service provider you use offering full hosting or only a subset, some container like thing that does not function like a usual Linux host?
    If you need to get the system fixed, contact ISPConfig Business Support. https://www.ispconfig.org/support/
     
  5. yasine

    yasine New Member

    It dosen't show anything Capture d’écran 2022-10-05 113601.png

    and here is the phpinfo that ISPConfig is using : https://azure.ilyasine.com:8080/phpinfo.php
     
  6. yasine

    yasine New Member

    when I copied php.ini into that directory
    Code:
    /etc/php/7.3/cgi/conf.d/
    I got this error

    Screenshot 2022-10-10 030717.png

    I uploaded the php.ini content
     

    Attached Files:

  7. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    can you post the output of phpinfo for this site again? the one you posted on aug 27th, after you said you'd switched it to 7.3, still shows it using php 7.4
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    One would typically not put a complete php.ini into conf.d folder. The folder conf.d is for snippets only to load further extensions. PHP 7.3 CGI expects its php.ini file in this path:

    /etc/php/7.3/cgi/php.ini

    and I guess it will fail if it#s not in this place.
     
  9. yasine

    yasine New Member

  10. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    You may need restart the php respectively after adding the php.ini to it, did you do that?
     
  11. yasine

    yasine New Member

    yes
     
  12. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    maybe retry the install command @Th0m posted in #21, this time with the --reinstall option.
     
  13. yasine

    yasine New Member

    I already did that , I got the error : Failed to start The PHP 7.3 FastCGI Process Manager
    upload_2022-10-11_11-6-34.png
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Try running an ISPConfig update with:

    ispconfig_update.sh --force

    and choose to reconfigure services during the update. This should at least create the pool file for ISPConfig again. But I fear that also some files in conf.d for the PHP modules are still missing. seems as if the whole PHP config on your system has been deleted.
     
  15. yasine

    yasine New Member

    I tried that , I faced new problem :( ispconfig_update.png

    this happen only to ISPConfig and mailman ( RoundCube ) , all services and my websites including phpmyadmin ( https://azure.ilyasine.com:8080/phpmyadmin/ ) work fine .. Now , I just wanna setup new website for a client I'd just finished developing , I'm stuck to this problem .
    If you accept @till , I can you give access to my server to view the source of the problem , I can pay you via paypal if the problem is resolved
    Thank you !
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    I do not offer support services. But you might want to contact @Th0m here to get ISPConfig support: https://www.ispconfig.org/get-support/?type=ispconfig It is indeed probably way faster that he fixes your PHP setup. And your issue is not ISPConfig, the issue is that you deleted large parts of your PHP setup and this causes all kind of issues in all applications that use the default PHP version of the OS (which you deleted the config of).
     
  17. pyte

    pyte Well-Known Member HowtoForge Supporter

    You could try to reinstall it completly. This might be risiky as i don't know any of your setup.

    List all packages that are related to your issue:
    Code:
    apt list | grep installed | grep php7.3
    Purge all the packages that the command above listed:
    Code:
    apt purge --autoremove [PACKAGES]
    apt autoclean
    apt autoremove --purge
    
    Reinstall with:
    Code:
    apt-get install php7.3 php7.3-cli php7.3-cgi php7.3-fpm php7.3-gd php7.3-mysql php7.3-imap php7.3-curl php7.3-intl php7.3-pspell php7.3-recode php7.3-sqlite3 php7.3-tidy php7.3-xmlrpc php7.3-xsl php7.3-zip php7.3-mbstring php7.3-soap php7.3-opcache php7.3-common php7.3-json php7.3-readline php7.3-xml
    The purge command will remove every configfile that came with the initially installation. You should remove any configfiles left in the /usr/lib/php/YOUR-7.3-VERSIONFOLDER/ before reinstalling.

    Again... Do this at your own risk, i don't know anything about your system.
     
  18. yasine

    yasine New Member

    Thank you bro @pyte ! this resolved the problem of starting the fpm service , now it's running

    upload_2022-11-5_18-10-53.png

    Now the main problem is in ispconfig panel not showing up : https://azure.ilyasine.com:8080/

    the phpinfo : https://azure.ilyasine.com:8080/phpinfo.php

    and the test report is :
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 10 (buster)
    
    [INFO] uptime:  17:14:13 up 68 days, 55 min,  2 users,  load average: 0.23, 0.16, 0.11
    
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:          3.8Gi       1.9Gi       346Mi       128Mi       1.5Gi       1.5Gi
    Swap:            0B          0B          0B
    
    [INFO] systemd failed services status:
    0 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
    
    [INFO] ISPConfig is installed.
    [WARN] /usr/local/ispconfig/server/lib/config.inc.php is missing.
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.4.32
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.3.33
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [WARN] I could not determine which web server is running.
    [WARN] I could not determine which mail server is running.
    [WARN] I could not determine which pop3 server is running.
    [WARN] I could not determine which imap server is running.
    [WARN] I could not determine which ftp server is running.
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [localhost]:10023               (-)
    [localhost]:10024               (-)
    [localhost]:10025               (-)
    [localhost]:10026               (-)
    [localhost]:10027               (-)
    [anywhere]:587          (-)
    [localhost]:11211               (-)
    [anywhere]:110          (-)
    [anywhere]:143          (-)
    [anywhere]:465          (-)
    ***.***.***.***:53              (-)
    [localhost]:53          (-)
    [anywhere]:21           (-)
    [anywhere]:22           (-)
    [localhost]:953         (-)
    [anywhere]:25           (-)
    [anywhere]:993          (-)
    [anywhere]:995          (-)
    *:*:*:*::*:10023                (-)
    *:*:*:*::*:10024                (-)
    *:*:*:*::*:10026                (-)
    *:*:*:*::*:3306         (-)
    *:*:*:*::*:587          (-)
    [localhost]10           (-)
    [localhost]43           (-)
    *:*:*:*::*:8080         (-)
    *:*:*:*::*:80           (-)
    *:*:*:*::*:8081         (-)
    *:*:*:*::*:465          (-)
    *:*:*:*::*:53           (-)
    *:*:*:*::*:21           (-)
    *:*:*:*::*:22           (-)
    *:*:*:*::*:953          (-)
    *:*:*:*::*:25           (-)
    *:*:*:*::*:443          (-)
    *:*:*:*::*:993          (-)
    *:*:*:*::*:995          (-)
    
    
    
    
    ##### IPTABLES #####
    
    
    
    
    ##### LET'S ENCRYPT #####
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    You have a 500 error, see error.log of the web server for details and post them here.
     
  20. yasine

    yasine New Member

    Here is the latest log results :
    Code:
    [Sat Nov 05 20:23:30.123942 2022] [fcgid:warn] [pid 29323] [client 41.143.235.31:11791] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_init() in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php:83
    [Sat Nov 05 20:23:30.124020 2022] [fcgid:warn] [pid 29323] [client 41.143.235.31:11791] mod_fcgid: stderr: Stack trace:
    [Sat Nov 05 20:23:30.124028 2022] [fcgid:warn] [pid 29323] [client 41.143.235.31:11791] mod_fcgid: stderr: #0 /usr/local/ispconfig/interface/lib/app.inc.php(70): db->__construct()
    [Sat Nov 05 20:23:30.124035 2022] [fcgid:warn] [pid 29323] [client 41.143.235.31:11791] mod_fcgid: stderr: #1 /usr/local/ispconfig/interface/lib/app.inc.php(399): app->__construct()
    [Sat Nov 05 20:23:30.124041 2022] [fcgid:warn] [pid 29323] [client 41.143.235.31:11791] mod_fcgid: stderr: #2 /usr/local/ispconfig/interface/web/index.php(32): require_once('/usr/local/ispc...')
    [Sat Nov 05 20:23:30.124048 2022] [fcgid:warn] [pid 29323] [client 41.143.235.31:11791] mod_fcgid: stderr: #3 {main}
    [Sat Nov 05 20:23:30.124057 2022] [fcgid:warn] [pid 29323] [client 41.143.235.31:11791] mod_fcgid: stderr:   thrown in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 83
    
     
    Last edited: Nov 5, 2022

Share This Page