HOWTO : SuPHP

xprotect said:
I have this in logs after installation and add suPHP :/
Apache 2.0.55, PHP 4.4.2, suPHP-0.5, DirectAdmin, CentOS 4.2
The error says it all: suPHP restricts certain read/write permissions (files only need to be writeable by the user). So you have to fix permissions (we recommend 444 (read/read/read) or 644 (read+write/read/read) most of our users).

Jochem
 
ergh, that i must use Safe Mode :( I was thinking that suPHP restrict user access only for him directories :p
 
next problem is this type:
when i turn suPHP on some users gets Internal Server Error when use php scripts (this site use phpBB)
 
xprotect said:
next problem is this type:
when i turn suPHP on some users gets Internal Server Error when use php scripts (this site use phpBB)
There should be errors in the suPHP log or in the httpd logs (error logs).

Jochem
 
This is in apache error logs:
[Mon Mar 20 16:52:48 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 20 16:52:48 2006] [warn] RSA server certificate CommonName (CN) `www.XXXXXXX' does NOT match server name!?
[Mon Mar 20 16:52:48 2006] [warn] RSA server certificate CommonName (CN) `www.XXXXXX' does NOT match server name!?
[Mon Mar 20 16:52:48 2006] [warn] RSA server certificate CommonName (CN) `www.XXXXX' does NOT match server name!?
[Mon Mar 20 16:52:49 2006] [notice] Apache/2.0.55 (Unix) mod_perl/1.99_17-dev Perl/v5.8.5 mod_ssl/2.0.55 OpenSSL/0.9.7a PHP/4.4.2 FrontPage/5.0.2.2634 configured -- resuming normal operations
This in suEXEC
[2006-03-15 19:47:01]: uid: (500/admin) gid: (501/501) cmd: php
[2006-03-15 19:47:01]: target uid/gid (500/501) mismatch with directory (0/0) or program (0/0)
[2006-03-15 19:47:11]: uid: (500/admin) gid: (501/501) cmd: php
[2006-03-15 19:47:11]: target uid/gid (500/501) mismatch with directory (0/0) or program (0/0)
[2006-03-15 19:47:13]: uid: (500/admin) gid: (501/501) cmd: php
[2006-03-15 19:47:13]: target uid/gid (500/501) mismatch with directory (0/0) or program (0/0)
[2006-03-15 19:47:15]: uid: (500/admin) gid: (501/501) cmd: php
[2006-03-15 19:47:15]: target uid/gid (500/501) mismatch with directory (0/0) or program (0/0)
[2006-03-15 19:48:30]: uid: (500/admin) gid: (501/501) cmd: php
[2006-03-15 19:48:30]: target uid/gid (500/501) mismatch with directory (0/0) or program (0/0)
[2006-03-15 19:48:48]: uid: (500/admin) gid: (501/501) cmd: php
[2006-03-15 19:48:48]: target uid/gid (500/501) mismatch with directory (0/0) or program (0/0)
[2006-03-15 19:48:53]: uid: (500/admin) gid: (501/501) cmd: php
[2006-03-15 19:48:53]: target uid/gid (500/501) mismatch with directory (0/0) or program (0/0)
And this in suPHP logs:
[Mon Mar 20 16:52:23 2006] [error] Script (/home/XXXXXX/domains/XXXXXXX/public_html/forum/index.php) is writeable by others[/quote[
 
Hi,

has anybody managed to get this installed and working on CentOS 4.2 with PHP 4.4.2?

I can't get mine to work and after compiling PHP as CGI and installing suPHP 6.1 and editing the httpd.conf it wont restart and spits out the following error message:

Invalid command 'suPHP_Engine', perhaps mis-spelled or defined by a module not included in the server configuration

Any help would be much appreciated.

Phil
 
Is it safe to use the lastest suPHP now? I want to set it up on a production system, along with PHP 5. I'm fine with Apache 1, so I don't intend updating it, but if it's recommended to do so, I would.
 
Back
Top