smartcall
3rd December 2006, 13:00
Hello to all!
I installed the panel and both php4 and php5 as cgi. I also installed suphp and made it work. By default my handler adds php4 to the configuration of the hosts.
I would like to give the users the ability to switch between php4 and php5. But seems that suPHP_AddHandler can't be added to .htaccess and there is no way to override the the default:
AddType application/x-httpd-php .php .php3 .php4 .php5
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php
with:
AddType application/x-httpd-php5 .php .php3 .php4 .php5
AddHandler x-httpd-php5 .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php5
from .htaccess
So my question is - can I add a checkbox in any of the forms and then modify the vhosts template to change 'x-httpd-php' to 'x-httpd-php5' and vice versa. And if I do so which files and how to retain such functionality after an upgrade.
And another question - what security level adds suphp? Because I still can open files from other directories with php scripts that I run in my webroot.
Regards,
Apostol
I installed the panel and both php4 and php5 as cgi. I also installed suphp and made it work. By default my handler adds php4 to the configuration of the hosts.
I would like to give the users the ability to switch between php4 and php5. But seems that suPHP_AddHandler can't be added to .htaccess and there is no way to override the the default:
AddType application/x-httpd-php .php .php3 .php4 .php5
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php
with:
AddType application/x-httpd-php5 .php .php3 .php4 .php5
AddHandler x-httpd-php5 .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php5
from .htaccess
So my question is - can I add a checkbox in any of the forms and then modify the vhosts template to change 'x-httpd-php' to 'x-httpd-php5' and vice versa. And if I do so which files and how to retain such functionality after an upgrade.
And another question - what security level adds suphp? Because I still can open files from other directories with php scripts that I run in my webroot.
Regards,
Apostol