7:13 PM Inexpensive PHP Hosting And Its Configuration |
PHP configuration on the hosting is performed by adjusting the information in the php.ini file. It contains data on all directives that determine not only the PHP reaction, but also the reaction of the website as a whole. The file must have a name so that the interpreter can easily find it. The system first of all searches for the php.ini file in the current folder. If it cannot be found in it, then the search will begin in the folder itself, the path to which should be specified in the PHPRC environment. Another option to check is the path that is set when building PHP.
The file structure can be divided into two parts:
How to set up PHP on hosting When configuring PHP hosting, all address paths to files should be specified using the “/" character, and not the reverse “\" character, which is often used in Windows command lines. After editing the PHP settings, a mandatory restart of the entire system is required. Only then will the new settings take full effect. Go with the 1 Dollar Hosting and make your website live.
How to expand configuration thresholds In the vast majority of cases, PHP settings are set by default on the hosting. However, sometimes there are situations when inexpensive hosting requires some expansion of the general configuration thresholds.
In such cases, if you need to change the settings of the php.ini file manually, do this.
The following lines should be added to .htaccess:
After that, in the /cgi-bin/php5.fcgi folder, you need to create a file named exec /usr/bin/php -c /home/support/php.ini,
where /home/support/php.ini is the path to the php.ini file in the settings. Then we grant special rights to the 755 file named php5.fcgi — chmod 755 php5.fcgi. From now on, any process of processing information and its settings will be carried out taking into account the php.ini file.
There are two important nuances here:
Two more settings are very important: disable_functions is a directive that allows you to set a reliable ban on calling several options due to the safe mode. The list of these functions is indicated independently by the user in the form of their names, which are separated by ordinary commas. Don’t forget about $1 Unlimited Hosting, will help you in meeting all your requirements.
|
|
Total comments: 0 | |