how to enable shell_exec() for user using .htaccess

S

SACHIN

Guest
Hello,

How to enable enable shell_exec() function for any use on the Linux server using the .htaccess file. Now shell_exec() is in the disable function list in php.ini file of the server.

So please assist me, then how can i enable shell_exec() for any user using the .htaccess file, if shell_exec is disabled globally on the server in php.ini file.

Waiting for the reply.

Sachin.
 
S

SACHIN

Guest
Hello,

But we can enable some of the variables or functions of php in .htaccess.

Like we can set register_globales On or Off for user in .htaccess file. Or else we can set the upload_max_filesize for the user in .htaccess.


So there might be some way that we can enable shell_exec() for user in .htaccess if that function is disabled globally in php.ini of the server.

Thanks for your replies to this thread.


Sachin.
 

HelloAdam

Well-Known Member
Nov 6, 2005
145
0
166
Hey,

From my understanding of this, if its not in any phpinfo page, it can't be changed. shell_exec() or anything close to that, doesn't show in any phpinfo page.

I know with PHPsuexec running you have a little more control over what goes in a php.ini file per user rather then .htaccess.

From,
Adam
 

Daniel15

Well-Known Member
Oct 7, 2006
86
1
156
Palo Alto, CA (originally Melbourne, Australia)
cPanel Access Level
Website Owner
Twitter
Like we can set register_globales On or Off for user in .htaccess file. Or else we can set the upload_max_filesize for the user in .htaccess.
Although you can change some variables in a .htaccess file, it's not possible to modify the disabled functions. Just think about it - If anyone could enable disabled functions, it's not very good security, is it? ;)

I personally run LightTPD on a seperate port, and then use mod_proxy to proxy requests for a certain VirtualHost to the LightTPD server. The LightTPD server uses a completely different version of PHP, and a completely different php.ini file (with nothing disabled)