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

    Join Date
    Apr 2013
    Posts
    4
    Rep Power
    0

    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 03:56 PM. Reason: further specifications
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,112
    Rep Power
    9398
    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