These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Templates : "...unless the php command is installed" on the new forum.
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:
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?
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
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
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