Dear friends, I have a Virtualmin GPL server up and running with FCGId. Now, I want to install SuPHP on this server because some scripts needs 777 permitions on some folders (It’s very insecure, ok?).
My server is a Debian 6.
How do can I install and use the SuPHP on this server?
Whenever you use FCGID, that would also use suexec, meaning that scripts run as the Virtual Server owner, not as the Apache user.
In that case, you shouldn’t need to set any files or directories to be 777.
However, if you’re using FCGID, but you’re finding that scripts aren’t running with the permissions of the Virtual Server owner – that means something isn’t working properly.
The first thing I’d suggest is to go into Server Configuration -> Website Options, and double-check that it’s really set to use FCGID as the PHP Execution Mode.
Second, I’d go into System Settings -> Re-Check Config, and make sure that it doesn’t detect any problems.
Third, what is the output of this command:
Some non-standard PHP versions can cause the problem you’re describing.
Hey andreychek, everything is working fine now.
The problem was: The settings to main server was FCGId, but to subservers was as “Apache mod_php”. I’ve only changed it and everything worked nicely.
Thank you very much!