Search Support
contact us

Let Us Make it Easy for You. Call 1-877-898-3290 for MyTime Support™. Learn More

PHP.ini for UNIX Shared Hosting FAQ

Article Rating: 2 / 5 Votes: 95

With an Web Hosting package from Network Solutions®, you have the ability to modify the default PHP settings for your package. Default values for php can be modified by the use of a custom php.ini file that can be created and uploaded into the cgi-bin folder in the hosting package's root folder.

Network Solutions® support staff are not able to provide support for modifications to the php.ini file.  For that reason, we strongly recommend you make a backup of any existing php.ini file (if one exists) before making modifications.

Please review the below frequently asked questions related to custom modifications of your PHP settings.

Q: Are there any specific settings that should be included in the php.ini file?

A: The settings in the /cgi-bin/php.ini will override all of the settings from the server's php.ini, so you should include all of the settings listed below. If any of your custom settings adversely affect other people on the server, the settings may be removed or your packages suspended. 

memory_limit = 64M
output_buffering = 2048

 Q: Do I need to change the permissions of the file once it’s uploaded to allow it to work?

A: The default permissions on the file when it is uploaded will allow it to work without making any changes.  However for security reasons, it’s considered best practices to reset the file permissions to the lowest possible permissions that will allow it to function, which is 500 (-r-x --- ---).

Q: How quickly do the new settings take effect?

A: The new settings take effect once you delete the file “php.ini.coalesced” within the /cgi-bin/.php folder if it exists (otherwise, the change is instant). You can then verify your settings by using a standard PHP info command, run from a normal PHP file in the /htdocs folder. See http://us3.php.net/manual/en/function.phpinfo.php for more detail.

Q: Where can I go for more information on what type of settings to make through a php.ini file?

A:  For more information on PHP.INI settings, http://www.php.net/manual/en/ini.php, or you may type php.ini into the search box of any search engine.

Q: What is the file name and type I would make?

A:  The file name (Case sensitive) is “php.ini” – all lowercase. The file type is a standard text document with no encoding. You would not call functions like in PHP code, but simply define them as the example given above.