PHP: Service unavailable

I am getting this error for a virtual server on Edge (CentOS 8): PHP: Service Unavailable

URL: https://www.bislinks.com/blog

PHP Versions on the machine

[root@edge ~]# virtualmin list-php-versions
Version         Path
--------------- ------------------------------------------------------------
7.2             /bin/php-cgi
7.3             /bin/php73-cgi
7.4             /bin/php74-cgi
[root@edge ~]#

php-fpm

[root@edge ~]# php-fpm
[05-Nov-2020 15:15:14] ERROR: unable to bind listening socket for address 'localhost:8002': Address already in use (98)
[05-Nov-2020 15:15:14] ERROR: FPM initialization failed
[root@edge ~]#

Other servers on the same machine have this problem too...

(Appreciate help fixing it...

Status: 
Active
Virtualmin version: 
lat
Webmin version: 
lat

Comments

bislinks's picture
Submitted by bislinks on Sat, 11/07/2020 - 11:42 Pro Licensee

Currently, resetting mysql password (same as before) for given user/site in Virtualmin -> Edit Databases -> Passwords resolves the issue!

That's odd - changing the MySQL password shouldn't touch anything related to PHP at all.

Could this just be a co-incidence?

bislinks's picture
Submitted by bislinks on Sun, 11/08/2020 - 09:01 Pro Licensee

No.

I have done the same already for multiple users on the same machine.

There is no option to select multiple PHP versions for users. Only option available is FPM

Nevertheless, I am happy with my discovery?!

Here are some URLs to test:

https://brilliantdesigners.bislinks.com/phpmyadmin/

https://bislinks.com/blog

https://edge.bislinks.com/blog

I have enabled support login, in case you want to look into (on edge.bislinks.com until 11/15/2020 11:59:59 PM ..)

bislinks's picture
Submitted by bislinks on Sun, 11/08/2020 - 09:59 Pro Licensee

I used to get this error:

Whenever I tried to change PHP version, I got something to the effect of unable to connect to database on loalhost

Probably that explains the relation

That could explain it. Can you post the full error message you're getting here, and let us know which page in Virtualmin it happens on?

Ilia's picture
Submitted by Ilia on Mon, 11/09/2020 - 05:25

Here is a screencap of the error

Unfortunately it's a bug and we just fixed it. It's false positive though. Expect it to be fixed with Virtualmin 6.14.

You can apply this change manually by editing /usr/share/webmin/virtual-server/php-lib.pl file and restarting Webmin with /etc/webmin/restart command.

"You can apply this change manually by editing /usr/share/webmin/virtual-server/php-lib.pl file and restarting Webmin with /etc/webmin/restart command."

I have the same issue. That path/file doesn't exist on my Centos 7 server, and what change were you referencing? Thank you.

Ilia's picture
Submitted by Ilia on Fri, 11/20/2020 - 11:41

I have the same issue. That path/file doesn't exist on my Centos 7 server, and what change were you referencing? Thank you.

Path component that includes share should be libexec on RHEL systems.

I found where my php-lib.pl was located but at the time didn't know what the change was as I am looking at this post in a different part of your site: https://www.virtualmin.com/comment/830741#comment-830741

I ended up finding where you actually link to the change, applied it and now I no longer have the issues, though I am having other Wordpress issues and I am not sure if this is related in some way. Not expecting an anwer...

Ilia's picture
Submitted by Ilia on Fri, 11/20/2020 - 12:32

I am having other Wordpress issues and I am not sure if this is related in some way. Not expecting an anwer.

If it's related to Virtualmin installation script, we would look into it! If it's a WordPress issue itself, it would be better to post a question to WordPress Community.

bislinks's picture
Submitted by bislinks on Tue, 11/24/2020 - 08:00 Pro Licensee

/usr/share/webmin does not exist on centos 8 (virtualmin pro)

Update: Found /usr/libexec/webmin/virtual-server/

bislinks's picture
Submitted by bislinks on Tue, 12/08/2020 - 08:30 Pro Licensee

After a restart, got this same error again.....

I do see the changes: $pfound++; in the file though..

Hi,

remove your PhpMyAdmin links ..better

Best Regards !