php-fcgi init scripts no longer being created

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

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

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/

Which Linux distribution and version are you running? The location and process for creating init scripts varies a lot between versions.

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.

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

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!

Freddy63's picture
Submitted by Freddy63 on Fri, 09/02/2016 - 21:32 Pro Licensee

I'm having this issue too. Waiting for a fix.

Thanks!

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?

Any update on this please?

Same problem on CentOS 6.5 with nginx ... cannot create new domains, php-fcgi-xxx scripts not created. This is serious bug! Any update?

Thank you for the update

Status: Active ยป Fixed