Submitted by cgdhosting on Tue, 05/17/2011 - 09:03
PHP FAST CGI - Works for new accounts, when updating old accounts uses wrong php cli location.
For old accounts which get set to Fast CGI, /home/user/fcgi-bin/php/fcgi.cgi says /usr/bin/php5 which does not work. For new accounts it references php5-cli which does work.
Kind regards,
Curtis
Status:
Closed (fixed)
Comments
Submitted by andreychek on Tue, 05/17/2011 - 10:03 Comment #1
Hi Curtis -- that's an unusual issue! Which Virtualmin version are you using there?
Submitted by JamieCameron on Tue, 05/17/2011 - 11:26 Comment #2
Does it help if you switch to mod_php mode for one of the old domains, then back to fcgid again?
Submitted by cgdhosting on Tue, 05/17/2011 - 17:03 Comment #3
I am using the latest (3.85). I did try switching to mod_php and back but that did not fix it.
In the end I had to chattr -i fcgi.cgi edit fcgi.cgi to say php5-cli ;chattr +i fcgi.cgi
Submitted by cgdhosting on Tue, 05/17/2011 - 17:04 Comment #4
Thank you for the quick response by the way.
Submitted by JamieCameron on Tue, 05/17/2011 - 17:41 Comment #5
Ok, I see the issue now .. Virtualmin will never use
php-cgi
, onlyphp-cgi
which is typically for binary for CGI use. Do you havephp-cgi
on your system? If not, there is probably another package you need to install ..Submitted by cgdhosting on Wed, 05/18/2011 - 09:49 Comment #6
I have php-cgi/php5-cgi it was from the php5-cgi ubuntu package.
"will never use php-cgi , only php-cgi" The problem was it says just php5?
Submitted by cgdhosting on Wed, 05/18/2011 - 09:49 Comment #7
I have php-cgi/php5-cgi it was from the php5-cgi ubuntu package.
"will never use php-cgi , only php-cgi" The problem was it says just php5?
Submitted by JamieCameron on Wed, 05/18/2011 - 12:16 Comment #8
Sorry, what I meant to write is that Virtualmin will use
php-cgi
if installed, and fall back tophp
otherwise. It will never usephp-cli
, as that usually doesn't work in CGI or fCGId scripts..Submitted by cgdhosting on Sat, 05/21/2011 - 07:19 Comment #9
Sorry I meant /usr/bin/php5-cgi not php5-cli earlier. I just realised my mistake!
Submitted by JamieCameron on Sat, 05/21/2011 - 11:49 Comment #10
Ok .. so is virtualmin doing the right thing now for new domains (using
php5-cgi
if installed) ?Submitted by JamieCameron on Sat, 05/21/2011 - 11:54 Comment #11
Ok .. so is virtualmin doing the right thing now for new domains (using
php5-cgi
if installed) ?Submitted by cgdhosting on Wed, 05/25/2011 - 08:55 Comment #12
It does the correct thing for new domains yes.
It is not working when editing an existing domain.
Submitted by JamieCameron on Wed, 05/25/2011 - 12:45 Comment #13
So for an existing domain that it fails for, does it help if you switch to
mod_php
mode, delete the fcgi-bin/*php* files, then switch back tofcgid
mode?Submitted by cgdhosting on Sun, 06/05/2011 - 09:20 Comment #14
Hi Jamie,
Not sure what happened but it seems to switch over fine now. I did update before trying so I am not sure if maybe anything changed in 3.86 fixed it.
Submitted by JamieCameron on Sun, 06/05/2011 - 11:29 Comment #15
Ok, great! I don't think anything changed in this area in 3.86 though..