Web Africa - Home
Register your Domain
www
4 Notices

PHP > How to edit PHP configuration settings on the Linux shared hosting servers(php.ini or .htaccess) - Web Africa > Support KnowledgeBase

KnowledgeBase

Please Enable Javascript
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.


  • PHP4 maintained by the Linux distribution using mod_php(.htaccess)

  • PHP4(Latest Stable) maintained by the server administrator(php.ini)

  • PHP5 maintained by the server administrator (php.ini)



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
General
Article Number: 207
Views: 525
Created By: Nico Visser
Date Created: 25/03/2008
Last reviewed by: Aziz Arnold
Last updated: 20/05/2008


Comments
No Comments...



Article Rating
Average Rating: No Votes yet...
Rate this article:
5 (Great!)
4
3
2
1 (Awful!)


Client Log In
User
Pass
Contact
0861-555-222
24 hours a day / 7 days a week
Live Assistance
News
WA acquires Frogfoot consumers MailFire: Email Marketing Launched! Hosting Overage Traffic Price Reduction
Testimonials
WebAfrica is, in my opinion, the very best Service Provider I have ever used! Not only have I had 100% uptime since I started using WebAfrica ADSL, but the level of customer service offered is just unbeatable!
- Tim Keller
Privacy PolicyTerms & ConditionsDisclaimerRefund PolicyAcceptable Usage PolicyEmail this page to a friendPrint
ISPA Member Copyright Web Africa 1996 - 2008. All rights reserved.
Site Map | ADSL | Web Hosting | Windows Hosting | Linux Hosting | Reseller | Reseller Hosting | Domain Registration | Dedicated Servers