PDA

View Full Version : htaccess compatibility


iUnknown
05-02-2009, 09:51 AM
Hi,

Not sure if this is the right place to post it, but if I put this in my account's .htaccess file:

php_flag enable_functions shell_exec

When in php.ini I have shell_exec as a disabled function, it does not enable the function for that hosting account as it would with apache.

Is this an error with my copy or a general lack of compatibility with litespeed vs apache?

Thanks.

mistwang
05-02-2009, 12:29 PM
First of all "enable_functions" does not exist, http://us2.php.net/manual/en/ini.list.php

Second of all, if it was available, it wont be able allowed in .htaccess, just like disable_functions

If PHP can have that function with Apache, there is no function had ever been disabled with Apache.

mistwang
05-02-2009, 12:33 PM
There is a solution with using suhosin

http://www.webhostingtalk.com/showthread.php?t=600238

iUnknown
05-02-2009, 12:40 PM
Hi,

Thanks very much. Sorry for the trouble, I had been advised by supposed professionals who have years of experience... incorrectly.