Control Web Panel

WebPanel => CentOS-WebPanel GUI => Topic started by: Purelaise on September 30, 2025, 09:32:57 AM

Title: PHP_FPM Selector completely broken
Post by: Purelaise on September 30, 2025, 09:32:57 AM
We use php-fpm exclusively on our Alma 8 Server. Today i went to the seclector and i am seeing the following:

Warning: parse_ini_file(/usr/local/cwpsrv/htdocs/resources/conf/el/php-fpm_selector/versions.ini): failed to open stream: No such file or directory in /usr/local/cwpsrv/htdocs/resources/admin/include/modules/phpfpm_selector/traits/PHPFPMVersionsHandler.php on line 0

Warning: Invalid argument supplied for foreach() in /usr/local/cwpsrv/htdocs/resources/admin/include/modules/phpfpm_selector/traits/PHPFPMVersionsHandler.php on line 0


It says "None php version installed". This is crazy - i have 7.4 -> 8.3 installed. I cant do anything at the moment. Ideas welcome
Title: Re: PHP_FPM Selector completely broken
Post by: overseer on September 30, 2025, 10:42:54 AM
The file /usr/local/cwpsrv/htdocs/resources/conf/el/php-fpm_selector/versions.ini doesn't exist on any of my CWP/php-fpm running systems, so I think that error is a red herring. Can you dig into the logs more? You may need to open a support ticket with CWP directly -- I've never encountered that error before.
Title: Re: PHP_FPM Selector completely broken
Post by: Purelaise on September 30, 2025, 10:47:30 AM
Yup no such file is there. I have opened a ticket. l'll let you know what they say

Thanks
Title: Re: PHP_FPM Selector completely broken
Post by: Starburst on October 02, 2025, 07:33:12 PM
We offered on another thread to login and take a look, but no response was received.

Now there is another new thread wit the exact same post, which makes me think since this is a new account, this is an AI bot...

If you are not Please advise the following:

What distro are you running CWP on?

What 'errors' and/or 'messages' are being displayed in the logs?
Title: Re: PHP_FPM Selector completely broken
Post by: Purelaise on October 02, 2025, 07:47:32 PM
Sigh... Alma 8. I am not an Ai nor is my account new, if i was i would probaby be able to code and solve the issue myself however i cant. I have an active business support ticket open but sometimes its quicker to find an answer here from the hive mind. So i assume from what you are saying I am not the only one with the isssue? Is there some obvious places i can dig?

Would this be of any use in this scenario without breaking the site? All the Php-fpms are running though so i know its the gui.

sh /scripts/update_cwp
sh /scripts/rebuild_php_selector (or similar - not sure if these exist anymore in the current build)



Thanks
Title: Re: PHP_FPM Selector completely broken
Post by: Starburst on October 02, 2025, 07:58:56 PM
Sigh... Alma 8. I am not an Ai nor is my account new, if i was i would probaby be able to code and solve the issue myself however i cant. I have an active business support ticket open but sometimes its quicker to find an answer here from the hive mind. So i assume from what you are saying I am not the only one with the isssue? Is there some obvious places i can dig?

Thanks

Yes, sometimes the forums are faster that a paid support ticket. (sad)

You can look at:
https://forum.centos-webpanel.com/php-selector/unable-to-compile-any-version-with-php-switcher-and-selector-fpm-selector/msg52287/?topicseen#msg52287 (https://forum.centos-webpanel.com/php-selector/unable-to-compile-any-version-with-php-switcher-and-selector-fpm-selector/msg52287/?topicseen#msg52287)

With CentOS 7 and AlmaLinux 8, @overseer , @cyberspace , are great resources.
We've moved onto AlmaLinux 9, so if you have those questions, I'm better to ask.

But I never had any problems with PHP-FPM on AL8 or AL9.
PHP-CGI, yes, but then there are simple fixes.

THe CWP staff are on here as well sometimes.
Title: Re: PHP_FPM Selector completely broken
Post by: Purelaise on October 02, 2025, 08:04:36 PM
Sigh... Alma 8. I am not an Ai nor is my account new, if i was i would probaby be able to code and solve the issue myself however i cant. I have an active business support ticket open but sometimes its quicker to find an answer here from the hive mind. So i assume from what you are saying I am not the only one with the isssue? Is there some obvious places i can dig?

Thanks

Yes, sometimes the forums are faster that a paid support ticket. (sad)

You can look at:
https://forum.centos-webpanel.com/php-selector/unable-to-compile-any-version-with-php-switcher-and-selector-fpm-selector/msg52287/?topicseen#msg52287 (https://forum.centos-webpanel.com/php-selector/unable-to-compile-any-version-with-php-switcher-and-selector-fpm-selector/msg52287/?topicseen#msg52287)

With CentOS 7 and AlmaLinux 8, @overseer , @cyberspace , are great resources.
We've moved onto AlmaLinux 9, so if you have those questions, I'm better to ask.

But I never had any problems with PHP-FPM on AL8 or AL9.
PHP-CGI, yes, but then there are simple fixes.

THe CWP staff are on here as well sometimes.

Gahhh thanks. Not sure how to send a screen shot of what i am getting.
Title: Re: PHP_FPM Selector completely broken
Post by: Starburst on October 02, 2025, 08:09:35 PM
Just highlight, the part of the log you pulled up using cat or nano.

I know with Bitvise you only have to highlight and it copies automatically, then just paste like normal.
Title: Re: PHP_FPM Selector completely broken
Post by: Purelaise on October 02, 2025, 08:16:54 PM
Thats the issue, i dont see any logs. I just get this across the screen when i go the php-fpm selector menu:

Warning: parse_ini_file(/usr/local/cwpsrv/htdocs/resources/conf/el/php-fpm_selector/versions.ini): failed to open stream: No such file or directory in /usr/local/cwpsrv/htdocs/resources/admin/include/modules/phpfpm_selector/traits/PHPFPMVersionsHandler.php on line 0

Warning: Invalid argument supplied for foreach() in /usr/local/cwpsrv/htdocs/resources/admin/include/modules/phpfpm_selector/traits/PHPFPMVersionsHandler.php on line 0

I dont see anything in the error or messages log related.
Title: Re: PHP_FPM Selector completely broken
Post by: Starburst on October 02, 2025, 08:37:12 PM
Log file should be in: /var/log

Filename should be: php-rebuild.log
Title: Re: PHP_FPM Selector completely broken
Post by: rcschaff on October 03, 2025, 04:02:30 AM
https://prnt.sc/

You can upload your screenshots here and share the links.

Title: Re: PHP_FPM Selector completely broken
Post by: Purelaise on October 03, 2025, 08:21:18 AM
Log file should be in: /var/log

Filename should be: php-rebuild.log

(https://snipboard.io/cZGdwO.jpg)

This is what i see. Its not a compile issue - its the gui no longer finding what should be there...
Title: Re: PHP_FPM Selector completely broken
Post by: Starburst on October 03, 2025, 10:47:19 AM
What is your base PHP?

You can see this by running this CLI command:
Code: [Select]
php -v
Title: Re: PHP_FPM Selector completely broken
Post by: Purelaise on October 03, 2025, 10:52:46 AM
What is your base PHP?

You can see this by running this CLI command:
Code: [Select]
php -v

php -v
PHP 8.3.19 (cli) (built: Mar 14 2025 13:16:20) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.19, Copyright (c) Zend Technologies
    with the ionCube PHP Loader v14.4.1, Copyright (c) 2002-2025, by ionCube Ltd.
Title: Re: PHP_FPM Selector completely broken
Post by: overseer on October 04, 2025, 11:59:45 AM
Usually I ignore those kind of PHP warnings because they are not actual errors but rather notices/warnings. However, in this case I wonder if it is giving us a clue. In the /usr/local/cwpsrv/htdocs/resources/conf/ directory I have subdirs for el7, el8, and el9. I am wondering if somehow your "el8" directory might have gotten renamed to simply "el"? Do you have an el8 sub dir?
Code: [Select]
ls -al /usr/local/cwpsrv/htdocs/resources/conf/Under that you should have a /usr/local/cwpsrv/htdocs/resources/conf/el8/php-fpm_selector/versions.ini file.
Title: Re: PHP_FPM Selector completely broken
Post by: Purelaise on October 04, 2025, 03:55:40 PM
Well the plot thickens. I rebooted the server (not ideal as its prod) and viola everything is working, i know see all my php-fpm installs. Really odd as to why it just randomly broke. Anyway - unknown crisis has been resolved. Thanks all
Title: Re: PHP_FPM Selector completely broken
Post by: overseer on October 05, 2025, 12:31:09 AM
That's often an initial recommended troubleshooting step -- reboot the machine and see if that fixes it! Glad it worked out for you!
Title: Re: PHP_FPM Selector completely broken
Post by: Purelaise on October 07, 2025, 09:22:28 AM
That's often an initial recommended troubleshooting step -- reboot the machine and see if that fixes it! Glad it worked out for you!

Thank you, but with 30 end users our popularity would be at an ATL haha, thanks for your help though.
Title: Re: PHP_FPM Selector completely broken
Post by: Purelaise on October 07, 2025, 11:38:24 AM
Okay its reared its ugly head again. We obviously cant just keep rebootin the server...
Title: Re: PHP_FPM Selector completely broken
Post by: Purelaise on November 07, 2025, 10:25:27 AM
Anyone else having this problem, looks like its linked to a corrupted update database and packages. Repairing the database and rebuilding the installed packages fixes the gui. Not sure how it happens but it fixes it for me.