suPHP

Drieske

Verified User
Joined
Aug 3, 2009
Messages
7
Hello,

I've installed php with suPHP via custombuild, but I want now to install php again but without suPHP because I don't want it anymore.

How can I configure and install php5 via custombuild without suPHP, because when I will build it again, suPHP will install again. Or can I uninstall suPHP whitout doing a build?

Greetz,
Dries
 
Last edited:
cd /usr/local/directadmin/custombuild
./build update
./build set suphp no
./build clean
./build php d
./build rewrite_confs
 
Just replace the following:
Code:
php5_cli=no
php5_cgi=yes

With:
Code:
php5_cli=yes
php5_cgi=no

And start "./build php n".
 
When I do this :

cd /usr/local/directadmin/custombuild
./build update
./build set suphp no
./build clean
./build php d
./build rewrite_confs

Apache wont start anymore. I get this error :
Starting httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration

This has solved the problem but suPHP is back enabled :

http://www.directadmin.com/forum/showthread.php?t=30856

So when I do the follow :

Change options.conf :

php5_cli=yes
php5_cgi=no

And then :

./build php n

the problem will not occur?
 
An old post, but the question is relevant to me now, too.

smtalk: when I revert / recompile to apache without suPHP, will the current website continue to function (since all the files will need to get new permissions, etc.)?

I am considering this option because files and folders in the (only) hosting account on this server, are being accessed through both webDAV and phpscripts. There are permission problems - you cannot access (and change) all files through both methods with suPHP.

I have tried adding both apache and the user to each other's group, but webDAV writes with a write flag for only the user and not the group...
 
Back
Top