|
4 Notices
|
KB Home >
PHP
>
How to edit PHP configuration settings on the Linux shared hosting servers(php.ini or .htaccess)
|
Problem/Summary How to manually edit commonly used configuration settings for the various versions of PHP available on our Linux Shared Hosting Servers. Background Currently our Linux Plesk Servers support 3 versions of PHP, these versions require different files(php.ini or .htaccess) to change PHP"s configuration settings for a domain.
You can switch between the different versions of PHP via the “PHP Manager” custom button on the control panel of your domain. Resolution A)Default PHP4 maintained by the Linux distribution using mod_php For the default version of PHP4 maintained by the Linux distribution, use a .htaccess file to make configuration changes to PHP. 1.Create a .htaccess file and add the PHP configuration settings, for example to turn register globals off, add the line php_flag register_globals off 2.Upload the .htaccess file to your httpdocs or the specific directory where the PHP settings should apply. B)PHP4 & 5 maintained by the Server Administrator 1. Locate the php5.ini file in your /cgi-bin directory via FTP. 2. Download and edit the file with the PHP configuration settings you require for the domain. 3. Rename the file to php.ini and upload to the /cgi-bin directory. Your domain will now apply the new settings for PHP instead of the default server-wide php.ini configuration file. Further Reading http://httpd.apache.org/docs/1.3/howto/htaccess.html http://us2.php.net/manual/en/configuration.changes.php |
Mail |
Print| Additional Info |
![]() |