Hi guys,
Im one CloudLinux happy customer but this night for the first time i met a really big problem who i CANT solve by myself.
I decided to go with FCGI as a wrapper but when i do i somehow loose the cagefs. I will give you an example:
With the following php code:
i can see all the username when im with fcgi. In the next moment im changing to suphp and this problem is gone.
There is my php.conf
This is my php5 cgi-sys/php5 file:
What could cause such problem ? I tried to recompile it with easyapache several times but with no success
Im one CloudLinux happy customer but this night for the first time i met a really big problem who i CANT solve by myself.
I decided to go with FCGI as a wrapper but when i do i somehow loose the cagefs. I will give you an example:
With the following php code:
Code:
<?php echo shell_exec(cat /etc/passwd); ?>
There is my php.conf
Code:
# Fastcgi configuration for PHP5 LoadModule fcgid_module modules/mod_fcgid.so MaxRequestsPerProcess 500 AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5 FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php4 FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3 FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2 FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml
Code:
#!/bin/bash [[ -f ~/php/php.ini ]] && exec /usr/bin/php -c ~/php/php.ini exec /usr/bin/php
Comment