Recently I have passed one issue on wamp server..I need to use the shell_exec()
function in PHP for running some external shell script (some checksum file) . Bu
Try using a WAMP server stack, which is clearly for development, like WPN-XM or XAMPP. Without any security limitations for the developer. So you won't run into trouble, when executing system(), shell_exec(), passthrough().
I was having the same problem and tried a lot of solutions out there. What worked out for me was running XAMPP as Admin.
I think we can use these steps
Enjoy!!!
The following line was the best I read to this problem: "You need to disable safe mode in the php.ini located in the \Apache2\bin folder, not the php folder. Restart Apache2 service right after to load the new settings."
The solution is:
stop all services from Wamp-Server and close the programm
Open .../wamp/bin/apache/Apache2../bin/php.ini
copy php.ini to desktop and open it
set safe_mode_exec_dir (line after = is empty, so IT IS ON!!!) set it off!
save
copy back to dir (maybe you need admin rights)
start wamp-server
enjoy exec() and co.
I just found a better explanation, but didn't tried it yet. Have a look - http://discussion.accuwebhost.com/linux-server/1096-how-enable-shell_exec-function-one-account.html
Open your php.ini
file used by wamp, find the disable_functions
part, change it and restart the server.