Today I installed #php 8.3 on my VServer ( #Alpine Linux) and tried to switch to that version with ln -fs /usr/bin/php83 /usr/bin/php .
Previously I used php 8.2.x
The problem is, #Friendica 's Admin Page says this:
The phpinfo() included in the admin area also says 8.2.18 and I have deleted the php-fpm82 service and added and started the php-fpm83 service and also restarted the php and apache and mariadb services and rebooted the server..
[Wed May 08 17:36:06.972634 2024] [so:warn] [pid 13101] AH01574: module php_module is already loaded, skipping
Led me to uninstalling the package php82-apache2 , which seemed to be still loaded. After that the other one (php83-apache2) seemed to be in use. (maybe some "reload" would have helped, too, i don't know..)
Then I had to install php83-session to be able to log in.
Now it looks okay in the admin page:
I do not have a php8-fpm service. Of course I restarted the php83-fpm service.. for example after changing some config . php.ini .. and after installing php83-phar and some others needed by composer that I missed at first
I have installed php83 and php83-fpm.. (and all the needed php83 modules)
And I stopped and deleted the php82-fpm service and started and added the php83-fpm service.. and set a new symlink from /usr/bin/php to /usr/bin/php83 .
I did it the same way I when I upgraded from 8.1 to 8.2.
@noidea Here you go, php-fpm is completely ignored in favor of the Apache PHP module that needs to be upgraded separately. Did you use a package manager to upgrade php?
@hypolite Thanks for pointing that out. I used the apk packet manager.. So I guess remove php-fpm.. but I read it is "faster"... How are you people doing that? php or php-fpm?
@noidea I've always used Apache2 with the PHP module because of the reduced amount of moving parts, and many Friendica administrators have had success serving their node using php-fpm and nginx as a web server/reverse proxy.
I read it's possible to use Apache and php-fpm together, but it isn't a very popular use case and I wouldn't be able to recommend it.
@noidea You have Apache and php-fpm at the same time? Then it’s likely that php-fpm is entirely ignored in favor of Apache’s PHP module which needs to be upgraded as well. How did you upgrade to PHP 8.3?
Add comment