1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Force Users To Use Single Php.ini Under suPHP

Discussion in 'Security' started by Bullten Webhosting, Jan 4, 2012.

  1. #1
    If you have a dedicated server and use it to sell shared hosting then this article is for you. Today I am going to explain how you can force your users to use same php.ini under suPHP by disallowing .htaccess override. Limiting php.ini use will add security to your server and will disallow users to use custom php.ini file by overriding default php settings set by server administrator (root).


    How to make it work:

    Its very simple to enable this function in server using suPHP. Just by enabling phprc_paths in /opt/suphp/etc/suphp.conf will do the work for you. See the steps below:

    vi /opt/suphp/etc/suphp.conf
    Code (markup):
    Find the code below and press I to insert text.

    Remove ( ; ) from the last three lines ie.

    Now press ESCAPE button and enter :wq to save the file.

    Restart Apache

    /sbin/service httpd restart
    Code (markup):
    Now Users wont be able to override your default php.ini file.

    Article Source: Force php.ini file in shared server
     
    Bullten Webhosting, Jan 4, 2012 IP