I have ubuntu 18.04 with php 8.1.6 needed for Laravel9 system but want IspConfig also

Discussion in 'Installation/Configuration' started by ralphot, Jun 9, 2022.

  1. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you probably missed adding PHP 8 or 8.1 as an additional PHP version. And be careful, never replace default PHP version of the OS (which is 7.4 for Ubuntu 20.04) or your installation will break.

    https://www.howtoforge.com/tutorial...fig-3-from-debian-packages-on-debian-8-and-9/

    The only difference between Ubuntu and Debian is that you add the Ondrej PPA on Ubuntu instead of sury repository.

    Please post the result of the command:

    php --version

    You probably installed PHP 8 or 8.1 as default PHP version which broke your installation.
     
  2. ralphot

    ralphot Member

    PHP 8.0.20 (cli) (built: Jun 10 2022 13:11:29) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v4.0.20, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.20, Copyright (c), by Zend Technologies

    So, what do I do now?

    You know, I have to have 8.0 (cli) because otherwise I can't do composer update on my site in /var/www/.
    With 7.4 it don't work
     
    Last edited: Jun 17, 2022
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Restore the correct default PHP version of the OS. You cannot use anything newer than PHP 7.4 as the default PHP version on an ISPConfig system. See 'read before posting', section 'panel not showing up' for the steps to correct your setup: https://forum.howtoforge.com/threads/please-read-before-posting.58408/

    We discussed that earlier and there are various ways to run composer with different PHP versions., You can also do a google search on that topic, you can find several methods to run composer with a different PHP version.
     
    Last edited: Jun 17, 2022
  4. ralphot

    ralphot Member

    Now:
    root@boss2020:/var/www/shoot.sytes.net/web# php --version
    PHP 7.4.3 (cli) (built: Jun 13 2022 13:43:30) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
    ispconfig wont let me choose php 8.8 though. Becouse I have only php 7.4. So now I have to add php8.0 as an extra php version, how to do that?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Please see post #41, I explained there what you need to do.
     
  6. ralphot

    ralphot Member

    ok
    Installed PHP 8.0 and now ispconfig don't work. Shows only logo , search and logout admin
    php -v still 7.4
     
    Last edited: Jun 17, 2022
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    It should not take more than 2 minutes to disappear. Unless there are hundreds of jobs to run, but then the number in red circle gets smaller every minute.
    To solve the problem: https://www.howtoforge.com/community/threads/please-read-before-posting.58408/
    the part "ISPConfig is not writing changes to disk".
     
  8. ralphot

    ralphot Member

  9. ralphot

    ralphot Member

    This is how it looks like.
     

    Attached Files:

  10. till

    till Super Moderator Staff Member ISPConfig Developer

    I posted you in #41 the link to the guide that shows you how to install PHP 8 properly in a way that laravel as well as ISPconfig work, so here again the link:

    https://www.howtoforge.com/tutorial...fig-3-from-debian-packages-on-debian-8-and-9/

    so what you have to do:

    1) Add the Ondrej PPA (instead of sury repository), you probably did that as that#s the most commonly used source for PHP 8 on Ubuntu.
    2) Now follow all the other steps of the guide to install additional PHP versions and IMPORTANT also step 9, the right PHP version to choose there is PHP 7.4 in your case.
     
  11. ralphot

    ralphot Member

    Ok, will do, thanks
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    That's to be expected when you change the default PHP version of the OS, you'll break all PHP-based software that relies on Ubuntu's default PHP version incl. ISPConfig.
     
  13. ralphot

    ralphot Member

    Done all that but no effect. Same result.
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you still use the wrong PHP version. Restart apache 2, due to the changes you made before, it might be necessary that you restart the web server.
     
  15. ralphot

    ralphot Member

    Ok, try that.
     
  16. ralphot

    ralphot Member

    I have now removed and uninstalled php8.0 so now I have 7.4 on both phpinfo() and php --version.
    I have now downloaded:
    root@boss2020:~# add-apt-repository ppa:eek:ndrej/php
    and done this:
    root@boss2020:~# apt-get install php8.0 php8.0-cli php8.0-cgi php8.0-fpm php8.0-gd php8.0-mysql php8.0-imap php8.0-curl php8.0-intl php8.0-pspell php8.0-sqlite3 php8.0-tidy php8.0-xsl php8.0-zip php8.0-mbstring php8.0-soap php8.0-opcache libonig5 php8.0-common php8.0-readline php8.0-xml
    according to your link to install php8
    and I've rebooted the server and done this:
    update-alternatives --config php
    update-alternatives --config php-cgi chosing php7.4 in both cases
    phpinfo() and php --version both shows php7.4.3
    but still ispconfig shows the blank page.
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    Is this an apache or nginx server?
     
  18. ralphot

    ralphot Member

    apache
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, then please take a look into the apache error.log file, /var/log/apache2/error.log. Maybe you missed installing a required PHP module.
     
  20. ralphot

    ralphot Member

    I don't know what happend but suddently ispconfig works again. But I can't choose php version there.
    These looks ok I think.
    Val Sökväg Prioritet Status
    ------------------------------------------------------------
    0 /usr/bin/php8.0 80 automatiskt läge
    * 1 /usr/bin/php7.4 74 manuellt läge
    2 /usr/bin/php8.0 80 manuellt läge
    Press <enter> to keep the current choice[*], or type selection number:
    root@boss2020:~# update-alternatives --config php-cgi
    Det finns 2 val för alternativet php-cgi (som tillhandahåller /usr/bin/php-cgi).
    Val Sökväg Prioritet Status
    ------------------------------------------------------------
    0 /usr/bin/php-cgi8.0 80 automatiskt läge
    * 1 /usr/bin/php-cgi7.4 74 manuellt läge
    2 /usr/bin/php-cgi8.0 80 manuellt läge
    Press <enter> to keep the current choice[*], or type selection number:
     
    Last edited: Jun 17, 2022

Share This Page