Submitted by kindnation on Wed, 08/31/2016 - 01:20
I've been using Virtualmin with Nginx/PHP-FCGI for quite awhile and it's been working fine.
On a new Virtualmin/Nginx installation, after creating a virtual server, the php-fcgi-example-com init script in /etc/init.d/ aren't being created. (They should be there, comparing it to my other Virtualmin/Nginx servers)
After a reboot, it will result in a 502 Nginx Bad Gateway (no php-fcgi).
I have many servers running on Nginx/Virtualmin and the missing php-fcgi init script just started happening within the past month or so.
Can you fix this?
Status:
Closed (fixed)
Comments
Submitted by kindnation on Wed, 08/31/2016 - 02:19 Comment #1
On a working server, when I create virtual server, I get the following status:
Creating administration group test.com ..
.. done
Creating administration user test.com ..
.. done
Creating aliases for administration user ..
.. done
Adding administration user to groups ..
.. done
Creating home directory ..
.. done
Creating mailbox for administration user ..
.. done
Creating Nginx virtual host ..
.. done
Starting PHP FastCGI server ..
.. done
Adding webserver user www-data to server's group ..
.. done
Setting up log file rotation ..
.. done
Creating MySQL login ..
.. done
Creating MySQL database test_com ..
.. done
Creating Webmin user ..
.. done
Applying Nginx configuration ..
.. done
Re-loading Webmin ..
.. done
Saving server details ..
.. done
Compared to a new Virtualmin install that isn't starting the PHP FastCGI server:
Creating administration group test.com ..
.. done
Creating administration user test.com ..
.. done
Creating aliases for administration user ..
.. done
Adding administration user to groups ..
.. done
Creating home directory ..
.. done
Creating mailbox for administration user ..
.. done
Creating MySQL login ..
.. done
Creating MySQL database test_com ..
.. done
Saving server details ..
.. done
Submitted by kindnation on Wed, 08/31/2016 - 03:41 Comment #2
You can replicate the problem with a new Virtualmin/Nginx install.
1) Create Virtual Server 2) Create phpinfo file for virtual server 3) "it works" 4) reboot 5) Can no longer access phpinfo file: 502 Nginx Bad Gateway 6) Same conclusion, there's no php-fcgi-domainname-com in /etc/init.d/
Submitted by JamieCameron on Wed, 08/31/2016 - 22:59 Comment #3
Which Linux distribution and version are you running? The location and process for creating init scripts varies a lot between versions.
Submitted by kindnation on Thu, 09/01/2016 - 07:46 Comment #4
I'm running Debian 8 on all systems. The php-fcgi-example-com init files are all in /etc/init.d/
I think the issue started after the last webmin update. Do you want remote access to a server? I can put up a clean VPS for you to test on.
Submitted by jg on Thu, 09/01/2016 - 19:04 Comment #5
As kindnation has said, this seems the same bug: Since Webmin update, 502 Bad Gateway errors: Init file not created for recent virtual servers (Nginx PHP fcgi) [#41700].
Submitted by wyoungca on Thu, 09/01/2016 - 20:06 Comment #6
On our Debian 8 server, we usually got php-fcgi-xxx scripts created in
/etc/init.d/
for new sub-server. After upgraded to 5.04, php-fcgi-xxx script is not created in/etc/init.d/
.Same problem on CentOS 5.11 and CentOS 6.8
Submitted by firefoxchris on Fri, 09/02/2016 - 14:29 Comment #7
I can confirm the same issue on CentOS Linux release 7.2.1511 (Core) with nginx as reported by JG.
It's taken me about 4 hours to get here but atleast we know it is a bug! Any idea on an update to resolve?
Thank you!
I'm having this issue too. Waiting for a fix.
Thanks!
Submitted by kindnation on Tue, 09/06/2016 - 04:37 Comment #9
What has to be done before you plan on fixing this? This is a pretty serious bug, not having PHP.
Can you please acknowledge the bug exists?
Submitted by firefoxchris on Wed, 09/07/2016 - 10:36 Comment #10
Any update on this please?
Submitted by pepiczech on Tue, 09/20/2016 - 05:32 Comment #11
Same problem on CentOS 6.5 with nginx ... cannot create new domains, php-fcgi-xxx scripts not created. This is serious bug! Any update?
Submitted by jg on Mon, 10/03/2016 - 15:26 Comment #12
Fixed now with new Webmin 1.820. See: Since Webmin update, 502 Bad Gateway errors: Init file not created for recent virtual servers (Nginx PHP fcgi) [#41700]
Submitted by kindnation on Mon, 10/03/2016 - 21:32 Comment #13
Thank you for the update
Submitted by kindnation on Mon, 10/03/2016 - 21:34 Comment #14