Page 1 of 1

suPHP good or bad ?

Posted: Tue Nov 01, 2011 11:47 am
by nobody
Hello.

So I have everyday many many support tickets from people complaining because they didn't use the ftp layer and messed up with their file permissions that have been changed to apache:apache owner.

So I was thinking of installing suphp to solve that problem. Cpanel uses it natively.
I've read some good and some pretty nasty things such as that server load skyrockets etc.
I also found a tutorial. I have never used suphp. Has anyone tried this at production ? Is it working well ? Did you discover any pitfalls ?

This is a guide that I found and seems nice.

Code: Select all

http://linuxhostingsupport.net/blog/how-to-install-suphpphpsuexec-on-plesk
Thanks

Re: suPHP good or bad ?

Posted: Tue Nov 01, 2011 12:18 pm
by paulie
I think mod_ruid2 (search for it on these here forums, Scott provides an rpm for it) is a far better method of achieving this, however I've not put either in production. We currently continue with mod_php and keep failing to provide a permissions and ownerships utility to our customers.

This way you keep the efficiency of mod_php without the burden of apache file ownerships and you can of course switch off open_basedir restrictions and make gains there.

paul

Re: suPHP good or bad ?

Posted: Tue Nov 01, 2011 1:49 pm
by biggles
Proud user of mod_ruid2. Works like a charm!

Re: suPHP good or bad ?

Posted: Wed Nov 23, 2011 7:40 am
by nobody
Hi again guys.

Welcome I am starting to get crazy with the permissions thing. So I tried installing suphp.
It worked allthough some sites experienced issues and I had to disable it again. :(

Some Joomla sites work great while others crashed.

An example :
Joomla website error :

Code: Select all

Database Error: Unable to connect to the database:The MySQL adapter "mysql" is not available.
Apache error log :

Code: Select all

[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './curl.so' - ./curl.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './dom.so' - ./dom.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './eaccelerator.so' - ./eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './fileinfo.so' - ./fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './gd.so' - ./gd.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './imap.so' - ./imap.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './json.so' - ./json.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './ldap.so' - ./ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './mbstring.so' - ./mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './mysql.so' - ./mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './mysqli.so' - ./mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './pdo.so' - ./pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './pdo_mysql.so' - ./pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './pdo_sqlite.so' - ./pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './phar.so' - ./phar.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './wddx.so' - ./wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './xmlreader.so' - ./xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './xmlwriter.so' - ./xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './xsl.so' - ./xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:12 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './zip.so' - ./zip.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] Failed loading /usr/local/zo/ZendExtensionManager.so: /usr/local/zo/ZendExtensionManager.so: cannot open shared object file: No such file or directory 
[Wed Nov 23 11:18:17 2011] [error] [client ] Failed loading /usr/local/zo/4_3/ZendOptimizer.so: /usr/local/zo/4_3/ZendOptimizer.so: cannot open shared object file: No such file or directory 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './curl.so' - ./curl.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './dom.so' - ./dom.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './eaccelerator.so' - ./eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './fileinfo.so' - ./fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './gd.so' - ./gd.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './imap.so' - ./imap.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './json.so' - ./json.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './ldap.so' - ./ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './mbstring.so' - ./mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './mysql.so' - ./mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './mysqli.so' - ./mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './pdo.so' - ./pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './pdo_mysql.so' - ./pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './pdo_sqlite.so' - ./pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './phar.so' - ./phar.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './wddx.so' - ./wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './xmlreader.so' - ./xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './xmlwriter.so' - ./xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './xsl.so' - ./xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[Wed Nov 23 11:18:17 2011] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library './zip.so' - ./zip.so: cannot open shared object file: No such file or directory in Unknown on line 0 
Hope someone can help. It is getting crazy with the permissions. There are actually sites that have problem every day due to the apache ownership changes ... !