Views:

With a Web Hosting package from Network Solutions®, you can modify the default PHP settings for your package. Default values for PHP are modified with a custom php.ini file that can be created and then uploaded into the cgi-bin folder of 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 that you make a backup of any existing php.ini file, if one exists, before making modifications. To make these changes, you will need access to the server via an FTP client and have access to Notepad on a PC or TextEdit on a Mac.

How do I modify the PHP settings in my package?

Follow these instructions to modify the PHP settings of your package:

  1. 1. Connect via FTP to your hosting package's primary FTP account.
  2. 2. Navigate to the /cgi-bin folder, locate and then download the file, php.ini.
  3. 3. Open the file with the appropriate text editor. If the .ini file does not exist, then create a new file and save the file as php.ini.
  4. Note: The file name must be lowercase.

  5. 4. Add the following lines of code to the file and then save the file.
  6. memory_limit = 64M
  7. output_buffering = 2048
  8. 5. Upload the file to the FTP server and place the file in the /cgi-bin folder.
  9. 6. Navigate to the /cgi-bin/.php folder and locate the php.ini.coalesced file, then delete the file.
  10. 7. Browse to any PHP-enabled page on your website. The new settings are enabled.

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

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

The settings in the /cgi-bin/php.ini override all of the settings from the server's php.ini. You should include all settings as listed in the FAQ, How do I modify the PHP settings in my package?

Note: If any of your custom settings adversely affect other users on the server, the settings may be removed or your packages suspended.

Do I need to change the file permissions once it is uploaded?

Once the file is uploaded, the default permissions on the file will allow it to work without making any changes.

For security reasons, we recommend that you reset the file permissions to the lowest possible permissions that will allow it to function, which is 500 (-r-x --- ---).

How quickly do the new settings take effect?

The new settings take effect once you delete the php.ini.coalesced file within the /cgi-bin/.php folder. 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. Click here for more detail.

Where can I go for more information on settings for the php.ini file?

For more information on php.ini settings, click here to visit visit the PHP Release website. Also, search the term php.ini using any major search engine.

What is the file name and type I would make?

The file name, which is 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 documented in the example.