Urgent update my PHP 7.3.33-11 to 8.2.7

Discussion in 'HOWTO-Related Questions' started by gilson, Jul 11, 2023.

  1. gilson

    gilson Member

    Hi my dears, I tried to update my PHP (7.3.33-11+0~20230612.108+debian10~1.gbp1f186d)
    ), but I can not and my site gives error 500 in my site when I do the procedure to update to new version 8.2.7, can someone help me? see in the attached images. Thank

    PS: I am used version ISPConfig Version: 3.2.8p1
     

    Attached Files:

  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Just put the first two digit of the php version without the third one.
     
  3. gilson

    gilson Member

    Thank my dear, but still persist problem not update, look https://prnt.sc/pdzV3lyDEkz1
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Those screenshots have text in spanish, which I do not understand. So I can not know what the problem is.
    Did you check the settings for PHP versions in ISPConfig panel are now correct? The settings are pathnames for files or directories, check those exist on disk.
    You wrote in #3:
    Are you updating something and it fails?
     
  5. gilson

    gilson Member

    I do the normal procedure, but nothing happens on my site, it does not update to new version, How do I see if it has the pathnames pr directories on disk of my vps to settings below?


    FastCGI]
    /usr/bin/php-cgi8.2
    /etc/php/8.2/cgi


    PHP-FPM]
    /etc/init.d/php8.2-fpm
    /etc/php/8.2/fpm
    /etc/php/8.2/fpm/pool.d
     
  6. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Please describe what you did to install amd update all version of php in your ISPConfig server.

    That is your problem with WP not ISPConfig, so let us try to solve one by one starting by answering the above.
     
  7. gilson

    gilson Member

    I just ran this command below and didn't even expect it to update php to latest version
    apt-get update && apt-get upgrade && apt-get dist-upgrade
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Do not run apt-get dist-upgrade unless you want to get to next release of your operating system.
    What is the output of those commands? Except the dist-upgrade one.
    You should have posted on ISPConfig forum, if you are running ISPConfig.
    Start with this to get some context:
    https://forum.howtoforge.com/threads/please-read-before-posting.58408/
    Log in to the host and use command ls -lh to get directory listing.
    Which normal procedure is that?
     
  9. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

  10. gilson

    gilson Member

    Friend, and how to fix this problem from the moment I'm still ?
     
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  12. gilson

    gilson Member

    The problem is not how to install, but how to fix it currently, in the situation that is

    PHP Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /root/htf-common-issues.php:288
    Stack trace:
    #0 {main}
    thrown in /root/htf-common-issues.php on line 288


    -----------------------------------------------------------------
    ##### 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: 19:57:13 up 14 days, 5 min, 1 user, load average: 0,31, 0,40, 0,40

    [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.

    ##### ISPCONFIG #####
    ISPConfig version is 3.2.8p1

    --------------------------------------------
    No LSB modules are available.
    Distributor ID: Debian
    Description: Debian GNU/Linux 10 (buster)
    Release: 10
    Codename: buster

    ------------After I did what you suggested-------------------

    ##### SCRIPT FINISHED #####
    Results can be found in htf_report.txt
    To view results use your favourite text editor or type 'cat htf_report.txt | more' on the server console.

    If you want to see the non-anonymized output start the script with --debug as parameter (php -q htf-common-issues.php --debug).

    # wget -q -O htf-common-issues.php "http://gitplace.net/pixcept/ispconfig-tools/raw/stable/htf-common-issues.php" && php -q htf-common-issues.php

    ##### SCRIPT FINISHED #####
    Results can be found in htf_report.txt
    To view results use your favourite text editor or type 'cat htf_report.txt | more' on the server console.

    If you want to see the non-anonymized output start the script with --debug as parameter (php -q htf-common-issues.php --debug).

    # cat htf_report.txt | more

    ##### 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: 20:32:15 up 14 days, 40 min, 1 user, load average: 0,47, 0,34, 0,40

    [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.

    ##### ISPCONFIG #####
    ISPConfig version is 3.2.8p1

    ##### VERSION CHECK #####

    [INFO] php (cli) version is 8.2.7
    [INFO] php-cgi (used for cgi php in default vhost!) is version 8.2.7

    ##### PORT CHECK #####
    ##### MAIL SERVER CHECK #####
    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Unknown process (nginx:) (PID 789)
    [INFO] I found the following mail server(s):
    Postfix (PID 1107)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 618)
    [INFO] I found the following imap server(s):
    Dovecot (PID 618)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 951)
     
    Last edited: Jul 12, 2023
  13. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    As I said earlier, and then again by @Taleman, do follow the multiple php howto thoroughly: https://www.howtoforge.com/ispconfig-php-debian/ (1) In there is a solution to restore default php for the server. (2) Follow it again thoroughly to setup the multiple php properly for all websites in that server. (3) Open your website settings for the WP in ISPConfig UI and change the php to the supported one. (4) Check if the WP website work again.
     
  14. gilson

    gilson Member

    Thank, but I have already done this procedure here and nothing has changed and also because my debian is not 11 to support PHP 7.4...
    upload_2023-7-12_0-10-6.png
     
  15. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Sighed... Do you even know or understand? The report clearly said your ISPConfig default php is wrong. That is (1). And for your website, you will need to setup multiple php properly then set the right php version for it. That are step (2) - (4). If you have done all, do check your website logs to troubleshoot that website.
     
  16. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    PHP undefined function errors usually mean there is a php module missing. I think mysqli_connect comes from the php mysql extension, so either it is not installed or not enabled for the PHP set as default when the script ran. I think default PHP is wrong on your host, so set it back to original default for you OS, then try common issues script again.
     

Share This Page