Allowing local directory php.ini

Discussion in 'PHP' started by Silver89, Nov 7, 2009.

  1. #1
    I have just moved servers and I used to have my php setup so I could put specific php.ini files in directories to apply additional settings.

    However these files are now ignored and only the default php.ini file is read.

    Where is the setting I need to change to get it back to reading local directory php.ini?

    Thanks
     
    Silver89, Nov 7, 2009 IP
  2. n3r0x

    n3r0x Well-Known Member

    Messages:
    257
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    120
    #2
    I didn´t know myself but guess what.. Google did => http://bytes.com/topic/php/answers/515554-using-local-php-ini-files

    :D

    if you have access to edit Virtual hosts add this

    <VirtualHost 1.2.3.4:80>
    ..................
    PHPINIDir "/var/www/web1"
    ..............................
    </VirtualHost>


    but change it to the path wheer you want it..:)
     
    Last edited: Nov 8, 2009
    n3r0x, Nov 8, 2009 IP