[PHP3.15] How do I edit php.ini (PHP settings) for my hosting package?

Becuase of the way in which we run PHP, you are able to customise its behaviour with php.ini files. These are plain text files (use Notepad if running Windows, TextEdit in Plain Text mode on Mac), which contain directives such as:-

memory_limit = 24M

A complete list of php.ini directives can be found here:-

http://www.php.net/manual/en/ini.list.php

-: you should only set these as per the requirements of your application as other settings may cause your scripts to malfunction or be vulnerable to attack.

You should name this file php.ini, unless otherwise required, it should be located in the root of your hosting package (ie, above public_html).

php.ini files can be used for very fine-grained control - a PHP script will pick up the settings in the php.ini file closest to it, so you can enable functions for a single folder rather than the whole site - this is useful when running CMSes on subdomains.

Was this answer helpful?

 Print this Article

Also Read

[PHP3.10] Do you support PHP4?

Our servers run dual versions of PHP, both 4 and 5. PHP5 is active by default.To switch to PHP4,...

[PHP3.17] Using PHP5 makes all my products disappear in OSCommerce

We have updated our version of php so the default used is PHP5 rather than PHP4. This can cause...

[PHP3.07] Do you support Blogs on your packages?

Yes we do - you'll need to select a package that includes MySQL databases as all major blogging...

[PHP3.09] What is the path to ImageMagick?

The full path to the binary is:- /usr/bin/convertSome scripts request the directory path, rather...

[PHP3.06] What file extensions can run PHP?

PHP will run all files with the following extensions by default:-.php.php3.php4.php5.php4 files...