noidea,

Hello ..

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:

version 8.2.18
php.ini /etc/php82/php.ini

and in SSH, the php --version command says that:

PHP 8.3.6 (cli) (built: Apr 11 2024 15:12:15) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies

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

Has somebody got an idea what I am missing?

noidea,

It seems okay now.

This message :

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

version	8.3.6
php.ini	/etc/php83/php.ini

thanks.

And the php-fpm packages are now removed..

agarbathi,

@noidea I think this howto show you how to handle php modules and how to bring up your webserver with php-fpm.
librebyte.net/en/systems-deplo…

noidea,

@agarbathi That is pretty much what I did and I have also read this page some time ago.. Hm 😕

noidea,

"which php" ( and pressed tab)

php        php-cgi    php-cgi82  php-fpm82  php-fpm83  php81      php82      php83
noidea,

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

agarbathi,

@noidea php (cli) and php-fpm are different things. Did you restart the php8-fpm service?

noidea,

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.

So fpm is not needed? :Oo:

hypolite,

@noidea Can you share the "Server API" value of your phpinfo screen when access from the administration area?

noidea,

@hypolite of course.. yes.. Server API Apache 2.0 Handler

hypolite,

@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?

noidea,

@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,

@hypolite It is not "upgrading" from 8.2 to 8.3 in Alpine. That are 2 different packages

hypolite,

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

hypolite,

@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?

noidea,

Apache.. the apache2 package. I have also installed php83-apache2 but .. maybe it was not everything that was missing

agarbathi,

@noidea Which web server are you using?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • GTA5RPClips
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • ngwrru68w68
  • Youngstown
  • everett
  • slotface
  • rosin
  • ethstaker
  • Durango
  • kavyap
  • cubers
  • provamag3
  • modclub
  • mdbf
  • khanakhh
  • vwfavf
  • osvaldo12
  • cisconetworking
  • tester
  • Leos
  • tacticalgear
  • anitta
  • normalnudes
  • megavids
  • JUstTest
  • All magazines