PDA

View Full Version : php-cgi to php-cli ??



dmtinc
05-10-2008, 12:21 PM
hi, i have a lot of problems with defunct process with php-cgi , i try to reconfigure all with php-cli , but i have problems with user permissions executing the php script (like forums... blogs..etc..) , what i can do to fix this???

with php-cgi the load of my server is very hight 24 to 45 :S
with php-cli just 1 or 2 , but i cant use it because all the php scripts fails...

this is my options.conf



#PHP settings. default_php possible values - 4 or 5
default_php=5
php5_cli=yes
php5_cgi=no
php4_cli=no
php4_cgi=no
php_ini=yes
#Possible values - recommended or dist
php_ini_type=recommended
zend=yes

#Possible values - 5.0 or 5.1 (4.1 is possible too, but it's EOL)
mysql=5.0
mysql_inst=yes

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

#Web applications
phpmyadmin=yes
squirrelmail=yes
roundcube=yes

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

#FTP options
proftpd=yes

#Custombuild options
clean=yes
fileserver=2
autover=no
mysql_backup=no
uebimiau=no



i try migrate php-cgi to php-cli with ,
./build clean
./build php n

what i can do to use php-cli without permissions problems ???

thxs for your help :D
Regards

sorry my bad english :P

PauGasol
05-11-2008, 04:31 PM
I use php as cgi with suphp and ok there are some defunc but seems to be normal process , the load is ok and none problem.. i say that after months of production enviroments