+ Reply to Thread
Results 1 to 2 of 2

Thread: Custom php.ini not loading

  1. #1
    Join Date
    Mar 2010
    Posts
    2

    Default Custom php.ini not loading

    Hi all, I have a hopefully simple question.

    I just created a custom php.ini file for one of my subdomains. But when I run phpinfo() on a php script in the same folder as the php.ini file it says the "Loaded Config File" is still coming from the default location in "/usr/local/lib/php.ini". My site's behavior is telling me the same.

    I am not running in FastCGI or "one php.ini file for all" mode. My other subdomains are working just fine. The security on the file is 644, just like all of my php.ini files.

    Can anyone think of a reason this one would not load?

  2. #2
    Join Date
    Mar 2010
    Posts
    2

    Default

    It turns out I had a bad line in my .htaccess file.

    It was:
    AddHandler application/x-httpd-php5s .php

    and should have been:
    AddHandler application/x-httpd-php5 .php

    I have Joshua from the support team to thank for the solution. Hopefully this helps somebody else down the road.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts