Apache Configuration - Seperate PHP.ini per virtualhost

Discussion in 'Apache' started by amelen, Aug 29, 2011.

  1. #1
    We're running apache 2.2 and php 5.2. We have 2 virtualhosts set up in httpd.conf. We need one to have access to fopen, and one not to. I can't seem to figure out a way to do this. Any ideas?

    I tried creating 2 php.ini's and setting SetEnv PHPRC for each virtualhost, but that doesn't seem to have worked. I also tried enabling fopen via htaccess for one of the virtualhosts, but that also didn't work.
     
    amelen, Aug 29, 2011 IP
  2. amelen

    amelen Active Member

    Messages:
    686
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    85
    #2
    To add to this - we used to use php_admin_value disable_functions, but you can no longer set that function in httpd.conf since php 5.
     
    amelen, Aug 29, 2011 IP