Per site php.ini settings
GearHost does allow the user of per site php.ini settings. The php.ini file contains configuration and settings for the php environment, you can now control these on your site and over ride the defaults GearHost as in place. To do this, simply follow the steps below.
1. Create a file named exactly as ".user.ini" without the "". You can do this in Windows explorer if you have the option enabled to show file extensions. If not, there is another way to create it, if you cannot create a file name .user.ini, then simply create a file name user.ini, we'll change it in the next few steps.
2. Open the file with a text editor like notepad and add the php.ini values you would like. An example of turning on development error reporting is included below. By placing this in the ini file, you will be show all errors for your php site.
3. Connect to your CloudSite through FTP and upload the file into the webroot folder. If you need to rename the file from step 1, please follow the instructions below.
- If you could not create a file named exactly .user.ini then follow these steps. In the FTP client, choose the file and user your client's rename option to rename the file. For the file name, type in .user.ini and save it.
- This can be done in FileZilla by right clicking on the file and choose rename.
4. After the file is uploaded, the ini changes take affect immediately. If you make changes to the file, you may need to wait 300 seconds for the new changes to be recognized.
Below you will find some examples from a php.ini for version PHP version 5.3.2. To enable a setting, uncomment it by removing the ; semicolon in front of the value. You can find all the settings by downloading a zip of PHP from php.net and exploring the values in the php.ini file.