Sometimes, certain engines or scripts require special values for PHP directives that do not coincide with values on hosting server.
Since our servers run php in different ways, there are several ways to solve this problem. They are all based on creating your own php.ini file.
1. The first way (for clients on servers 1-15). Php is running as SuPHP.
You should create .htaccess file (or add an entry to existing file) in public_html folder with the following text:
suPHP_ConfigPath /home/YOUR LOGIN/public_html where YOUR LOGIN is your login to cpanel
Then create php.ini file in the same folder. If you put PHP Directives into this file, our server will use them instead of defaults.
Here is the example of PHP directives:
register_globals = on
magic_quotes_gpc = off
The same is for all directives.
2. The second way (for clients on servers with number 16 and further). Php is running as fast-cgi.
You should put the following entries into .htaccess file in root directory of your site (in our case root directory is public_html):
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php5.fcgi
Then create a subfolder cgi-bin (it may already exist) in the same folder, open it and create php5.fcgi file there. The address for the file will be - public_html/cgi-bin/php5.fcgi. The file should contain the following code:
#!/bin/sh
exec /usr/local/cpanel/cgi-sys/php5 -c /home/YOUR CPANEL LOGIN/public_html/cgi-bin/php.ini
Save and set file permissions to 755.
After that, create php.ini file in cgi-bin folder and put required php directives into it. For example:
register_globals = on
magic_quotes_gpc = on
Save the file and everything will start working.
Work sucessfully with hosting from Shneider-host.ru.
Best regards, Administration of Shneider-host.ru .
Remember that we provide the best cheap hosting service in the Internet!