suPHP
Moderator: General Moderators
suPHP
With a lot of hosts I have troubles with the permissions setup. Often way too loose permissions (even 777) are needed to run php scripts, etc. Now in one case the webhost offered me to switch a site to use suPHP. That way, if I understood correctly, the php scripts always run as their own owner and there should be less trouble with permissions.
Do you know if this has any other (wanted/unwanted) consequences?
Do you know if this has any other (wanted/unwanted) consequences?
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
Re: suPHP
Are there drawbacks to this scenario? I doubt. Have you tried running some scripts?
Re: suPHP
As you're not running PHP as apache module you will not have access to apache api. By default apache will not pass basic http auth credentials to your script.matthijs wrote:Do you know if this has any other (wanted/unwanted) consequences?
Re: suPHP
No not yet as I haven't told the webhost to switch the account.kaisellgren wrote:Are there drawbacks to this scenario? I doubt. Have you tried running some scripts?
So what would be the meaning of that? When do you need apache to pass credentials to a script?Weirdan wrote:As you're not running PHP as apache module you will not have access to apache api. By default apache will not pass basic http auth credentials to your script.
Re: suPHP
Two separate issues, usually not apparent to those who switch to CGI/FastCGI from mod_php.matthijs wrote:So what would be the meaning of that?
Well, that's obvious - when you need to perform authentication yourself instead of relying on apache to do that.matthijs wrote: When do you need apache to pass credentials to a script?
Re: suPHP
ok, and what are those issues then?Weirdan wrote:Two separate issues, usually not apparent to those who switch to CGI/FastCGI from mod_php.matthijs wrote:So what would be the meaning of that?
Obvious to you maybe, but not for me. When do you rely on apache for http credentials? When you use .htaccess and .htpasswd for authentication?Weirdan wrote:Well, that's obvious - when you need to perform authentication yourself instead of relying on apache to do that.matthijs wrote: When do you need apache to pass credentials to a script?
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
Re: suPHP
If your script works fine across other HTTPDs, there should be no problem. Try Cherokee, nginx and IIS.
Re: suPHP
matthijs wrote:ok, and what are those issues then?Weirdan wrote: Two separate issues, usually not apparent to those who switch to CGI/FastCGI from mod_php.
Weirdan wrote:
- As you're not running PHP as apache module you will not have access to apache api.
- By default apache will not pass basic http auth credentials to your script.