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
Currently, resetting mysql password (same as before) for given user/site in
Virtualmin -> Edit Databases -> Passwords
resolves the issue!Submitted by JamieCameron on Sat, 11/07/2020 - 21:58 Comment #2
That's odd - changing the MySQL password shouldn't touch anything related to PHP at all.
Could this just be a co-incidence?
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 ..)
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
Submitted by JamieCameron on Sun, 11/08/2020 - 11:36 Comment #5
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?
Here is a screencap of the error
https://edge.bislinks.com/v/videos/Capture01.wmv
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.Submitted by jmunjr on Thu, 11/19/2020 - 21:40 Comment #8
"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.
Path component that includes share should be libexec on RHEL systems.
Submitted by jmunjr on Fri, 11/20/2020 - 12:07 Comment #10
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...
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.
/usr/share/webmin
does not exist on centos 8 (virtualmin pro)Update: Found
/usr/libexec/webmin/virtual-server/
After a restart, got this same error again.....
I do see the changes:
$pfound++;
in the file though..Submitted by ThemeHow on Thu, 04/15/2021 - 15:08 Comment #14
Hi,
remove your PhpMyAdmin links ..better
Best Regards !