Why isn't my custom php.ini working?

There are a few common reasons why custom php.ini files won't work.


  • Check the file name
    Often if you're saving it in Windows - for example with Notepad - the file may have been accidentally named "php.ini.txt". Please ensure this isn't the case.
  • Do you have more than one php.ini in your webspace?
    php.ini files in child directories take precedence over any parent directories. Make sure you don't have an additional php.ini file which is taking precedence. Best practise is to include a single php.ini file in your public_html directory, this will affect all PHP scripts within your webspace, including all subdirectories.
  • Have you set any PHP directives within your site's code?
    This is very common within certain CMS systems. If you set one memory limit within a php.ini file, and another within your site's code, the latter will take precedence.
  • Are your directives syntactically correct?
    If commands are misspelt or malformed, they will not function correctly. Consult http://www.php.net to ensure that your commands are correct.

If you are still having difficulties, please contact support. Make sure you include any settings that you are attempting to modify, the expected results of the setting along with the actual results.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Moodle gives a white page and reports memory issues.

Set the following in your php.ini put this in the root of your Moodle installation - this is...

Why is my scheduled task (CRON job) not running?

If the scheduled task did not run check the following before contacting support. 1) The file...

'Pretty' URLs not working in Concrete5

This problem with the Concrete5 script is related to the configuration of PHP on our systems, but...

My script needs a higher memory allocation, how do I increase it?

You can create your own php.ini file inside whatever sub-directory your script is in....

How do I install Locked Area Lite?

Before you install Locked Area Lite you need to create a folder that you want to protect - this...