1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Rep Power

    Set different php.ini for script laying in different folders

    Supposing I have a classical lamp environment.
    I need to set php script in different directories ( or directory trees ) to refer to a different php.ini, cause I want to disable certain features.
    I'm putting up an educational environment for school students so I need to create sandboxed environments for them.

    Asking for ideas and best practices.
    Last edited by carmichael84; April 22nd, 2013 at 04:56 PM. Reason: further specifications
  2. #2
  3. Maddening Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Washington, USA
    Rep Power
    Depending on your setup a per-directory php.ini or (more commonly) a .htaccess with php_values can override whatever you want to override.

IMN logo majestic logo threadwatch logo seochat tools logo