Templates : "...unless the php command is installed"

4 posts / 0 new
Last post
#1 Thu, 10/14/2010 - 14:27
Fnatte

Templates : "...unless the php command is installed"

Hello, I've today (finally) managed to install FastCGI and as far as I can see it also works! However, after I had edited all virtual servers (PHP script execution mode->FCGId) I wanted to have this setting as default for new servers.

So at Default Settings->Apache website I changed:

  • Automatically add appropriate SuExec directive? -> Yes
  • Default PHP execution mode -> FCGId (run as virtual server owner)

But on saving I get the following error: "Failed to save server template : PHP scripts cannot be run as the domain owner unless the php command is installed"

Did I miss any setting?

Fri, 10/15/2010 - 09:21
andreychek

Howdy,

Hmm, did you by chance install Virtualmin using the install.sh script, or did you install it manually? I haven't heard of a problem like that before, but it sounds like something is missing... possibly the php-cgi or php-cli package.

Which distro are you using? I can try and figure out which packages you need, and then we can figure out what's awry :-)

-Eric

Sun, 10/17/2010 - 04:21
Fnatte

It's installed as a Webmin module I believe. It's running on Ubuntu and php5-cli is not installed. So if I install it, will it work? I just thought I already had PHP because I use it ;)

Next, maybe it doesn't fit within this topic but there is a phpMyAdmin running with Apache for *:80 (var/www). I can reach the login page of it but when I pressing the 'Go-button' makes me download index.php. I also tried to make a phpinfo() from /var/www/phpinfo.php, but it also just downloads the file which contains the php-code. What could cause this?

Thanks

Sun, 10/17/2010 - 08:13
andreychek

Well, those dependencies are typically all pulled in for you when using the install.sh script... some manualy configuration (such as this) is required when using the module.

However, it should be as simple as installing a few PHP packages. You'll want to install both php5-cgi and php5-cli.

As far as phpMyAdmin goes -- my suggestion there would be to create a new Virtual Server to run that. That'll handle all the Apache configuration for you. And then you can install phpMyAdmin in that Virtual Server.

If you want a particular domain to be the default on your server, you can set that up by going into Server Configuration -> Website Options, and set "Default website for IP address" to yes.

-Eric

Topic locked