Jump to content

How to disable functions in php.ini


K1u

Recommended Posts

I was just viewing a awesome thread at Joomla's site over this - http://forum.joomla.org/index.php/topic,75990.0.html

You can disable functions in your php.ini file like so

disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open, escapeshellcmd, escapeshellarg

Add any other functions you might want to disable as well.

Link to comment
Share on other sites

Yes, but how do you disable it for all folder but one?

You have to configure it to scan for other php.ini files in other directories, and then have a php.ini file in each directory you want to turn functions off for. His link to the other forum post has more arguments for and against it and what they were doing to work around it.

Link to comment
Share on other sites

Yes, but how do you disable it for all folder but one?

You have to configure it to scan for other php.ini files in other directories, and then have a php.ini file in each directory you want to turn functions off for. His link to the other forum post has more arguments for and against it and what they were doing to work around it.

There is also many various other ways to configure it securely. Yes you will have to put it into each folder.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...