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: 181

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. To make these changes yourself you will need access the server via a FTP client and have access to Notepad on a PC or TextEdit on a Mac.

Step 1Connect via FTP to your hosting package's primary FTP account. (The account with access to the root "/" folder) For assistance click here.

Step 2: Navigate to the /cgi-bin folder and determine if you have a file there called php.ini.  If you do, please download it to your computer for editing.

Step 3: Once the file is downloaded open it with Notepad on a PC or TextEdit on a Mac.  If the file did not exist create a new file and save it with the file name php.ini (must be lowercase).

Step 4: Add the below lines of code to the file and save it.

memory_limit = 64M
output_buffering = 2048

Step 5: Upload the saved file to the FTP server and place it in the /cgi-bin fodler. 

Step 6: Navigate to the /cgi-bin/.php folder and locate the php.ini.coalesced file and delete it.

Step 7: Browse to any PHP enable page on your site and the new settings will be enabled. 




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 above. If any of your custom settings adversely affect other people on the server, the settings may be removed or your packages suspended.  

 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 practice 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 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,, 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.