About suPhp

Timenetworks

Verified User
Joined
Sep 27, 2008
Messages
7
I had installed suphp
but I would like to run xcache
so I would Like to remove suphp
could any one tell me how to remove it?
I am using
fastcgi(php5)
php-cli(php4)

and could custombuild install php with cgi mode without suphp?
and I would like to use mod_fcgid

====
Sorry, for my bad English
 

Nivko

Verified User
Joined
Jul 29, 2007
Messages
56
Location
The Netherlands
Example:

/usr/local/directadmin/customerbuild/options.conf:

Code:
#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no
zend=yes

#Possible values - 4.1, 5.0 or 5.1
mysql=5.1
mysql_inst=no
mysql_backup=no

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2

#Web applications
phpmyadmin=yes
atmail=no
squirrelmail=yes
roundcube=yes
uebimiau=no

#Mail options
exim=no
mail-header-patch=yes
dovecot=yes

#FTP options
proftpd=yes

#Jailed shell (beta)
jail=no

#CustomBuild options
autover=no
bold=yes
clean=yes

#Cron settings
cron=no
email=email@domain.com
notifications=yes
updates=no

#CustomBuild 1.2 settings
php6_cli=no
php6_cgi=no
php_ini=no
#Possible values - recommended or dist
php_ini_type=recommended
cleanapache=no
fileserver=1
eximconf=no
To:

Code:
#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=no
php5_cli=no
php5_cgi=yes
zend=yes

#Possible values - 4.1, 5.0 or 5.1
mysql=5.1
mysql_inst=no
mysql_backup=no

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2

#Web applications
phpmyadmin=yes
atmail=no
squirrelmail=yes
roundcube=yes
uebimiau=no

#Mail options
exim=no
mail-header-patch=yes
dovecot=yes

#FTP options
proftpd=yes

#Jailed shell (beta)
jail=no

#CustomBuild options
autover=no
bold=yes
clean=yes

#Cron settings
cron=no
email=email@domain.com
notifications=yes
updates=no

#CustomBuild 1.2 settings
php6_cli=no
php6_cgi=no
php_ini=no
#Possible values - recommended or dist
php_ini_type=recommended
cleanapache=no
fileserver=1
eximconf=no
And run ./build suphp
 

Timenetworks

Verified User
Joined
Sep 27, 2008
Messages
7
but still there is
LoadModule suphp_module /usr/lib/apache/mod_suphp.so
in httpd.conf

and while I delete it
the firefox just show phpscript

If I add to httpd.conf
LoadModule fastcgi_module /usr/lib/apache/mod_fastcgi.so

apache can't start
 
Last edited:

Timenetworks

Verified User
Joined
Sep 27, 2008
Messages
7
because apache haven't start, there will no log left

but finally
I sucess install fastcgi

but there is a new problem
while I am runing php in my IP
there is no error

while runing in virtual host
there are 500 server error
and there is
[Sun Sep 28 14:59:09 2008] [notice] mod_fcgid: process /home/uoozaforum/domains/forum.uooza.com/public_html/viewthread.php(7531) exit(communication error), terminated by calling exit(), return code: 120
[Sun Sep 28 14:59:19 2008] [notice] mod_fcgid: call /home/uoozaforum/domains/forum.uooza.com/public_html/viewthread.php with wrapper /usr/local/php5/bin/php-cgi
suexec policy violation: see suexec log for more details
in apache error logs

and

[2008-09-28 14:59:35]: uid: (502/uoozaforum) gid: (503/uoozaforum) cmd: php-cgi
[2008-09-28 14:59:35]: target uid/gid (502/503) mismatch with directory (0/0) or program (0/0)
in apache suexec error logs

what should I do now?
 

Nivko

Verified User
Joined
Jul 29, 2007
Messages
56
Location
The Netherlands
Does the directory /home/uoozaforum/domains/forum.uooza.com/public_html have the right permissions? (target uid/gid (502/503) ?)
 
Top