enable only exec after build secure_php

Themis

Verified User
Joined
Oct 1, 2010
Messages
172
Location
London, UK
You should modify the PHP configuration to disable commonly abused php functions, e.g.:
Code:
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, 
popen, proc_open, allow_url_fopen
Some client web scripts may break with some of these functions disabled, so you just remove them from this list.
 

jonium

Verified User
Joined
Nov 10, 2010
Messages
129
Location
Alezio - Lecce- Apulia - South Italy
You should modify the PHP configuration to disable commonly abused php functions, e.g.:
Code:
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, 
popen, proc_open, allow_url_fopen
Some client web scripts may break with some of these functions disabled, so you just remove them from this list.
I already did it, I'm the admin of the server.
But I have a virtual host I (ADMIN) use for a script that use the function "exec".
The question is: is it possible to reactivate it only for that virtual host?
 
Top