Knowledgebase

How to prevent users from modifying php.ini using suPHP

When we use suPHP it is possible for our users to create a php.ini file in the same folder as their script, which allows them to override any security directives we have.

To end this problem we must edit the suphp configuration file:

# nano /opt/suphp/etc/suphp.conf

And we will modify it as follows :

[phprc_paths]
;Uncommenting these will force all requests to that handler to use the php.ini
;in the specified directory regardless of suPHP_ConfigPath settings.< br /> application/x-httpd-php=/usr/local/lib/
application/x-httpd-php4=/usr/local/lib/
application/x-httpd-php5=/ usr/local/lib/


Then we restarted Apache and the matter was fixed.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to force the generation of backups in WHM

Sometimes we may need to force backups of the entire server before making important changes to...

How to specify nano or vim as editor for crontab file

If you want to specify an editor, when you open the crontab file and do not just use the default...

Checking your server via SSH

If you have a VPS service or a Dedicated Server, there are several commands that you can execute...

Como instalar Ddos Deflate en tu servidor

Este  script fue desarrollado para evitar multiples conexiones a algun servidor linux.Para...