I have now struggled again with setting an alternative PHP version in IspConfig and this is what I have: https://imgur.com/a/WyC24vb. all pictures here. I'm getting the website to start but it shows only header and footer nothing else. With an older laravel7 system it works with php 7.4 but not this vers. 9 I'm also not sure about all the settings for the additional PHP versions. Ubuntu 20.04 Apache2 What can be the problem.
See https://www.howtoforge.com/tutorial...nfig-3-from-debian-packages-on-debian-8-and-9 on how to add additional versions, it should mostly work the same on Ubuntu - but you need to use the ubuntu repo of ondrej: https://launchpad.net/~ondrej/+archive/ubuntu/php/
I have done all that, did "add-apt-repository ppandrej/php", "apt upgrade", installed php 8.1 and checked all the folders that's used in IspConfig and they are all populated as they should I think. But still the website shows only the very first Laravel blade page with header and footer. So what now?
unless you've overridden where the ondrej repo installs php by default on ubuntu, you need to change each instance of /opt/ in your ispconfig additional php settings to /etc/php/ also i would not bother assigning the additional php to a particular client, just leave client blank, then any client account on that server could use that php version.
Code: name: Server <servername> Client PHP Name PHP8.1 fast-cgi settings: Path to the PHP FastCGI binary /usr/bin/php-cgi8.1 Path to the php.ini directory /etc/php/8.1/cgi php-fpm settings: Path to the PHP-FPM init script /etc/init.d/php8.1-fpm Path to the php.ini directory /etc/php/8.1/fpm Path to the PHP-FPM pool directory /etc/php/8.1/fpm/pool.d PHP-FPM socket directory
Thanks, done all that, but now I'm getting: ERROR 503 - Service Unavailable! The following error occurred: The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later. Please contact the webmaster with any queries. So.......what now? I found this in ispconfig: Update Status (Server : boss2022) Conf php8.1-fpm (8.1.9-1+ubuntu20.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:20.04/focal [amd64]) What does it mean? Also when updating: Errors were encountered while processing: php8.1-fpm E: Sub-process /usr/bin/dpkg returned an error code (1)
the update status is ok, that's just a list of what it's updated. did you previously manually install a version of php 8.1 in /opt? if so, that may need to be removed/purged first, and then try re-installing / updating php8.1 from the ondrej repo
I did all that and now the site starts up but as before the first blade-page only shows page-header and footer: https://imgur.com/IbNlPIn It's funny because a while ago I had the system up and working but I think with PHP8.0 at that time.
maybe put a phpinfo.php into the public folder and try loading that, check it shows all the expected mods / conf is enabled and working.
can't see anything immediately wrong there. you have php8.0 on that server? installed from the ondrej repo? maybe set the website to use php8.0, see if laravel works properly again on there. if it does, compare all the configs between the two php versions, see if you can find anything different. if it doesn't, then maybe php is ok, maybe there's something off in the laravel config, maybe to docroot change needs to be accounted for in the laravel config.
Ok. No at the moment I have only php7.4 and php8.1 installed. But I will try to install php8.0 as well and see if it works. Thanks.
I have installed PHP8.0 and put a new PHP8.0 version in ispconfig but I'm getting the same result. So I will concentrate more on Laravel from here on. Thanks all for your help anyway.
Ok, found out that the system in Laravel9 was to blame. I took another version in Laravel7 and upgraded it to Laravel9 and that works fine. Thanks all for your help.