PDA

View Full Version : About suPhp



Timenetworks
09-27-2008, 06:51 AM
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
09-27-2008, 10:04 AM
Change your suits in options.conf in the custombuild directory.

Timenetworks
09-27-2008, 11:25 AM
but I would like to use fastcgi in php5

Nivko
09-27-2008, 11:50 AM
Example:

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



#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:



#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
09-27-2008, 12:45 PM
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

Nivko
09-27-2008, 01:28 PM
Any error's?

Timenetworks
09-27-2008, 01:40 PM
An error has occurred

資料

/sbin/service httpd restart 2>&1

Nivko
09-27-2008, 01:43 PM
What does your logs say?

Timenetworks
09-27-2008, 01:44 PM
the log is empty

Nivko
09-27-2008, 01:47 PM
Sure?

/var/log/httpd/error_log

Timenetworks
09-28-2008, 06:58 AM
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
09-28-2008, 07:10 AM
Does the directory /home/uoozaforum/domains/forum.uooza.com/public_html have the right permissions? (target uid/gid (502/503) ?)

Timenetworks
09-28-2008, 07:45 AM
yes all are 755