Can I install suphp in centos 6.2, Give a guide ?

Status
Not open for further replies.

jasoothai

Active Member
171
2011
10
0
After installing phpbb on centos 6.2 I noticed that all folder should be chmod to 777 to work automod. If not automod fails to install the mod.
I found suphp can overcome this problem. Right ? Thanks.
 
7 comments
Thanks for the link, will try...

---------- Post added 22nd Jun 2012 at 01:12 PM ---------- Previous post was 21st Jun 2012 at 10:08 PM ----------

I couldn't follow this part, please help.

Where I have to add "LoadModule suphp_module modules/mod_suphp.so"
Here ?
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
[....]
And where I have to add
suPHP_Engine on suPHP_AddHandler application/x-httpd-php .php
Here ?
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

Where to add
AddType application/x-httpd-php .php
There is already a similar line in php.conf like,
#AddType application/x-httpd-php-source .phps
So I need to replace it ?
Thanks.

---------- Post added at 02:27 PM ---------- Previous post was at 01:12 PM ----------

Server API sowing Apache 2.0 Handler :(
 
Hi,

In the <Directory /> section Add:

suPHP_Engine on

suPHP_AddHandler application/x-httpd-php .php

Where I have to add "LoadModule suphp_module modules/mod_suphp.so"
Here ?

Yes,


You can add this anywhere in /etc/httpd/conf.d/php.conf file. or you can also add this in .htaccess in your phpBB directory if you are using single website and want to apply this only on single website.
AddType application/x-httpd-php .php
make sure, restart apache after this and see the httpd logs for any errors.
 
Restarted apache already. Not working, I added
suPHP_UserGroup webroot webroot
to the <Directory /> section. Do I need to change the word webroot to something.

And also I think I need to replace the entire /etc/httpd/conf.d/php.conf file with "AddType application/x-httpd-php .php" . Right ?
Error log
Code:
[Fri Jun 22 13:37:40 2012] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations
[Fri Jun 22 13:37:45 2012] [error] [client 101.63.144.113] SoftException in Application.cpp:350: UID of script "/var/www/html/info.php" is smaller than min_uid
[Fri Jun 22 13:37:45 2012] [error] [client 101.63.144.113] Premature end of script headers: info.php
[Fri Jun 22 13:37:51 2012] [error] [client 101.63.144.113] SoftException in Application.cpp:350: UID of script "/var/www/html/info.php" is smaller than min_uid
[Fri Jun 22 13:37:51 2012] [error] [client 101.63.144.113] Premature end of script headers: info.php
[Fri Jun 22 13:37:53 2012] [error] [client 101.63.144.113] SoftException in Application.cpp:350: UID of script "/var/www/html/info.php" is smaller than min_uid
[Fri Jun 22 13:37:53 2012] [error] [client 101.63.144.113] Premature end of script headers: info.php
[Fri Jun 22 13:37:55 2012] [error] [client 101.63.144.113] SoftException in Application.cpp:350: UID of script "/var/www/html/info.php" is smaller than min_uid
[Fri Jun 22 13:37:55 2012] [error] [client 101.63.144.113] Premature end of script headers: info.php
[Fri Jun 22 13:38:13 2012] [error] [client 101.63.144.113] SoftException in Application.cpp:350: UID of script "/var/www/html/info.php" is smaller than min_uid
[Fri Jun 22 13:38:13 2012] [error] [client 101.63.144.113] Premature end of script headers: info.php
[Fri Jun 22 13:51:02 2012] [error] [client 101.63.144.113] SoftException in Application.cpp:350: UID of script "/var/www/html/info.php" is smaller than min_uid
[Fri Jun 22 13:51:02 2012] [error] [client 101.63.144.113] Premature end of script headers: info.php
[Fri Jun 22 13:52:56 2012] [error] [client 101.63.144.113] SoftException in Application.cpp:350: UID of script "/var/www/html/info.php" is smaller than min_uid
[Fri Jun 22 13:52:56 2012] [error] [client 101.63.144.113] Premature end of script headers: info.php
[Fri Jun 22 13:53:50 2012] [error] [client 101.63.144.113] Directory index forbidden by Options directive: /var/www/html/
[Fri Jun 22 13:53:51 2012] [error] [client 101.63.144.113] File does not exist: /var/www/html/favicon.ico
[Fri Jun 22 13:53:51 2012] [error] [client 101.63.144.113] File does not exist: /var/www/html/favicon.ico
[Fri Jun 22 13:53:52 2012] [error] [client 101.63.144.113] File does not exist: /var/www/html/favicon.ico
[Fri Jun 22 13:56:50 2012] [error] [client 101.63.144.113] SoftException in Application.cpp:350: UID of script "/var/www/html/info.php" is smaller than min_uid
[Fri Jun 22 13:56:50 2012] [error] [client 101.63.144.113] Premature end of script headers: info.php
[Fri Jun 22 13:59:21 2012] [notice] caught SIGTERM, shutting down
[Fri Jun 22 13:59:21 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jun 22 13:59:21 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 22 13:59:21 2012] [notice] Digest: done
[Fri Jun 22 13:59:21 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.4.4 configured -- resuming normal operations
[Fri Jun 22 13:59:26 2012] [notice] caught SIGTERM, shutting down
[Fri Jun 22 13:59:27 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jun 22 13:59:27 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 22 13:59:27 2012] [notice] Digest: done
[Fri Jun 22 13:59:27 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.4.4 configu
[Sat Jun 23 10:29:40 2012] [error] [client 115.241.115.213] PHP Strict Standards:  Non-static method utf_normalizer::nfkc() should not be called statically in /var/www/html/includes/utf/utf_tools.php on line 1663, referer: http://testforum456****/ucp.php?mode=register&sid=4e3c2a1ea397757fd78e4433c9432d5b
[Sat Jun 23 10:29:40 2012] [error] [client 115.241.115.213] PHP Strict Standards:  Non-static method utf_normalizer::nfkc() should not be called statically in /var/www/html/includes/utf/utf_tools.php on line 1663, referer: http://testforum456****/ucp.php?mode=register&sid=4e3c2a1ea397757fd78e4433c9432d5b
[Sat Jun 23 10:29:41 2012] [error] [client 115.241.115.213] PHP Strict Standards:  Non-static method utf_normalizer::nfkc() should not be called statically in /var/www/html/includes/utf/utf_tools.php on line 1663, referer: http://testforum456****/ucp.php?mode=register&sid=4e3c2a1ea397757fd78e4433c9432d5b
[Sat Jun 23 10:30:34 2012] [error] [client 115.241.115.213] File does not exist: /var/www/html/favicon.ico
[Sat Jun 23 10:30:37 2012] [error] [client 115.241.115.213] PHP Strict Standards:  Non-static method utf_normalizer::nfkc() should not be called statically in /var/www/html/includes/utf/utf_tools.php on line 1663, referer: http://testforum456****/ucp.php?mode=login&sid=4e3c2a1ea397757fd78e4433c9432d5b
[Sat Jun 23 10:30:44 2012] [error] [client 115.241.115.213] PHP Strict Standards:  Non-static method utf_normalizer::nfkc() should not be called statically in /var/www/html/includes/utf/utf_tools.php on line 1663, referer: http://testforum456****/
[Sat Jun 23 10:31:10 2012] [error] [client 115.241.115.213] PHP  Strict Standards:  Non-static method utf_normalizer::nfkc() should not  be called statically in /var/www/html/includes/utf/utf_tools.php on line  1663, referer:  http://testforum456****/index.php?sid=1c995ec329e81385b3136fac80dc4c69
[Sat Jun 23 10:31:46 2012] [error] [client 115.241.115.213] PHP Strict  Standards:  Non-static method utf_normalizer::nfc() should not be called  statically in /var/www/html/includes/utf/utf_tools.php on line 1781,  referer:  http://testforum456****/ucp.php?i=pm&mode=compose&u=54&sid=1c995ec329e81385b3136fac80dc4c69
[Sat Jun 23 10:31:46 2012] [error] [client 115.241.115.213] PHP Strict  Standards:  Non-static method utf_normalizer::nfc() should not be called  statically in /var/www/html/includes/utf/utf_tools.php on line 1781,  referer:  http://testforum456****/ucp.php?i=pm&mode=compose&u=54&sid=1c995ec329e81385b3136fac80dc4c69
[Sat Jun 23 10:31:46 2012] [error] [client 115.241.115.213] PHP Strict  Standards:  Non-static method utf_normalizer::nfkc() should not be  called statically in /var/www/html/includes/utf/utf_tools.php on line  1663, referer:  http://testforum456****/ucp.php?i=pm&mode=compose&u=54&sid=1c995ec329e81385b3136fac80dc4c69
[Sat Jun 23 10:31:46 2012] [error] [client 115.241.115.213] PHP Strict  Standards:  Non-static method utf_normalizer::nfkc() should not be  called statically in /var/www/html/includes/utf/utf_tools.php on line  1663, referer:  http://testforum456****/ucp.php?i=pm&mode=compose&u=54&sid=1c995ec329e81385b3136fac80dc4c69
 
The error messages you stated in the previous post does indicate some issues within the suphp configuration file OR it may be installed properly but permissions on your files are incorrect.

Here is the guide to install SuPHP on a Plesk server, however it can also be implemented on a plain CentOS server.
 
Status
Not open for further replies.
Back
Top