how can i disable safe mode for php on web server?

Posted by user1767434 on Server Fault See other posts from Server Fault or by user1767434
Published on 2012-11-01T10:45:54Z Indexed on 2012/11/01 11:03 UTC
Read the original article Hit count: 177

Filed under:
|
|
|
|

I am using wkhtmltopdf for making a pdf of a page. My code executes the shell to run a command using this wkhtmltopdf library. Everything works fine in my wamp server but when the code runs on my web-server it does not work and gives the following error:

Warning: shell_exec() has been disabled for security reasons in /home/pssptech/public_html/.../cert.php on line 272


I think that the php is running on safe mode on the server that's why the shell execution is disabled. But the main problem is I am unable to find the php.ini file on my remote web-server.
Can you tell me where can I find the config file so that I can disable the safe mode?
Thanks in advance.

© Server Fault or respective owner

Related posts about linux

Related posts about apache2