PHP
Default PHP settings
Default PHP settings information can be obtained from the following links:
phpinfo() for the if21 server
phpinfo() for the if24 server
phpinfo() for the if26 server
phpinfo() for the if27 server
Reviewing your website's error logs
By default our servers are configured to hide runtime PHP errors in the means of security. If you see a blank screen, it means that a critical error occurs and prevents a PHP script from generating a page correctly. All errors are logged to the «error_log» file, which is located in the same directory as a erroneous web-site, usually next to the «index.php» file.
If you want errors to be displayed, please set a corresponing flag in the php.ini file.
Working with .htaccess file
This file, when located in website's root folder, allows to control PHP and other Apache web-server modules. The samples below should be placed into the «.htaccess» file.
PHP settings
<IfModule mod_php.so>
..........................
PHP settings go here
..........................
</IfModule>
«mod_rewite» settings
<IfModule mod_rewrite.c>
RewriteEngine On
..........................
mod_rewrite settings
..........................
</IfModule>
Configuring PHP via «php.ini» configuration file
Our hosting allows to use a custom php.ini file. This configuration file is located at /home/your_username/php.ini.
Installing additional PHP modules
To install an additional PHP module, please contact our support service.
|