file public_html/php5.fcgi created but not used

Hey,

installed Webmin (3.79) and Virtualmin (3.79 + theme 7.7) on a Debian 5 (lenny4). For Apache and PHP the standard debian packages were used. It's running fine, even the php execution using fcgid.

As far as I got it out of the forum here, there are not a lot of options to modify the directory structure created under /home/(domainname)/ so I struggle with the following problem:

After I create a new server the file php5.fcgi is placed twice.

  1. /home/(domainname)/fcig-bin/php5.fcgi (that one is used or needed because the apache configuration is pointing to)
  2. /home/(domainname)/public_html/php5.fcgi the file is just useless here and I don't like to delete the file manually after a virtual host is created.

Any Help is appreciated. Best Regards Hans

Status: 
Closed (fixed)

Comments

The php5.fcgi file under public_html is created to work around a bug on some Debian releases with mod_fcgid - annoyingly they don't run the one in fcgi-bin, even though the Apache config clearly specifies this! However, on Debian 5 you can probably delete it.

Let me know if that works for you ..

Hi,

/etc/apache2/sites-enabled/hans ..... Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI allow from all AllowOverride none AddHandler fcgid-script .php AddHandler fcgid-script .php5 FCGIWrapper /home/hans/fcgi-bin/php5.fcgi .php FCGIWrapper /home/hans/fcgi-bin/php5.fcgi .php5 .....

Even without the php5.fcgi file under public_html PHP is working.

cat /etc/debian_version 5.0.4

How can I prevent the creation of this file?

Best Regards

Yes these files are useless in Ubuntu too. So an admin option to turn them off can be fine, or maybe simply disable this feature from virtualmin, looks bug is fixed.

it's fixed? where? in SVN?

I have to write a quiet heavy shell script to get everything cleaned up after virtualmin creates the vhost directory structure and I am not really happy with it.

like:


#!/bin/bash
chmod 750 /home/*
rm -r `find /home -type d | grep \/cgi-bin`
rm -r `find /home -type f -name php5.fcgi |grep public_html`

and I have to add this under system settings --> module config --> Actions upon server and user creation --> Command to run after making changes to a server

Thats not a fix! but works for the moment.

Since it looks like later Debian versions have fixed this bug, I will have Virtualmin no longer create that public_html/php5.fcgi file in the 3.80 release.

Automatically closed -- issue fixed for 2 weeks with no activity.