I'd like to disable the use of the exec() function in my PHP. Can this be done?

Yes, you can disable it in your php.ini. Search for the line:

disable_functions =

and change it to:

disable_functions = exec

Don't forget to restart Apache afterwards.

Falko Timme

About Falko Timme

Falko Timme is an experienced Linux administrator and founder of Timme Hosting, a leading nginx business hosting company in Germany. He is one of the most active authors on HowtoForge since 2005 and one of the core developers of ISPConfig since 2000. He has also contributed to the O'Reilly book "Linux System Administration".

Share this page:

Suggested articles

0 Comment(s)

Add comment