![]() | ||
| Frequently asked questions
How do I change the PHP configuration for my web hotel? Note! If you change your PHP configuration, things may stop working, either immediately or later. See here for some known problems with PHP 5.3 and differences between our former support for PHP 5.2 and current PHP 5.3. General infoOur webservers' standard PHP configuration is good enough for the majority of applications. If you know you need different config settings, you may customize the configuration at your own risk. Such customization may be:
As opposed to If you try to do so, you will get "internal server error". If you customize settings as those mentioned above, and you get errors or malfunctions in your software, double-check that you have not typoed or made other mistakes in your customizations. If you cannot make it work at all, leave it to an expert, or revert to our standard configuration. We cannot provide support for such customization. If you increase or exceed resource limits (which is not permitted), we may have to deactivate the PHP code in question and/or the configuration file. If your resource needs are greater than which we can provide, you should use a dedicated server or virtual private server. PHP is configured at several levels
PHP's web pages have an overview over available settings. Configuration of the PHP_INI_USER and PHP_INI_ALL types can be set in each script (or an include file), regardless of the installed PHP version. ini_set()PHP_INI_USER PHP_INI_ALL
Most requests for system level changes to variables are unnecessary,
the PHP developer/maintainer may set these in the program/script by using
Example ini_set() usage
<?php
ini_set("display_errors",1);
print(ini_get("date.timezone")."\n");
ini_set("date.timezone","Europe/Berlin");
print(ini_get("date.timezone")."\n");
?>
If you need to configure the timezone, replace Europe/Berlin with the timezone you require. .user.iniPHP_INI_PERDIR PHP_INI_USER
Some settings cannot be performed in a program/script. If you create
your own Example .user.inidisplay_errors = On date.timezone = "Asia/Jakarta" magic_quotes_gpc = Off If you need to configure the timezone, replace Asia/Jakarta with the timezone you want to use. See also PHP's supported timezone list. php.ini
Because our PHP 5 installation is using suphp, you have the option of creating your own
Do not your own
Here is how to create your own
To verify that your customizations have been loaded, check the
configuration settings with If you get an "internal server error" message, you've probably made a mistake, such as trying a setting that's invalid, using the wrong file permissions (PHP 5-scripts on our webservers must not be writeable for others), etc. Extensions, modules, and plugins
Many extensions can be installed in your own webhotel and loaded by a
modified We do not provide support for such extensions, even if a very nice support person helped you install it the first time.. Several such extensions are so-called PHP accelerators or "optimizers", which essentially offer you the following two services:
The theoretical performance improvements will often backfire as lost performance, because the accelerators assume that PHP is running as integrated, optimizable code ( Some PHP software require e.g. IonCube, your software vendor will provide you with the information necessary for deciding what to use. We do not provide support for such extensions. The examples below are provided for your convenience only, and you may use them as examples on how to load extensions in general, at your own risk and responsibility. IonCube
If you have an extension
from IonCube, make
sure that you use the version for Linux (x86-64) and your webhotel's
PHP version. You can load it by adding a separate line in
your Use the Linux (x86-64) version. The x86 version may also work. zend_extension=/home/1/m/mittnavn/ioncube/ioncube_loader_lin_5.3.so
Substitute the path to your webhotel for If you experience problems, consult the user guide/documentation for your software and IonCube, and if necessary, contact your software vendor's support service. Zend Optimizer/Zend Guard LoaderSome years ago, we supported Zend Optimizer. Zend Optimizer does not exist for PHP 5.3, use Zend Guard Loader instead. We do not provide support for Zend Optimizer or Zend Guard Loader. PHP 5.2 - Zend Guard Loader
Our PHP 5.3 based webservers have Zend Guard Loader preinstalled, you may load it like this from zend_extension=/usr/lib/php5/20090626/ZendGuardLoader.so Zend recommends that if you need better performance, you may disable licensing: zend_loader.disable_licensing=1 If you experience problems, consult the user guide/documentation for your software and Zend Guard Loader, and if necessary, contact your software vendor's support service. PECL/PEAR extensions (e.g. ImagickImagick and many other extensions are pre-installed and active.
To get a list of our installed and activated PECL/PEAR extensions, either
use You are free to install further PECL extensions to your own webhotel, but not to our central servers. This is at your own risk. We do not provide support for this. Custom extensions
If you need to add/activate additional extensions, PHP 5.3 permits the
use of the module's complete path in extension=/home/1/m/myname/my_extension.so This is also at your own risk and responsibility. Resource limitsmax_execution_time = 60 ; Max execution time of each script, in seconds max_input_time = 60 ; Max amount of time each script may spend parsing request data memory_limit = 256M ; Max amount of memory a script may consume max_input_vars = 5000 ; Max number of input variables (extremely high, PHP's standard is 1000) post_max_size = 128M ; Max size of a POST request upload_max_filesize = 128M ; Max size of an uploaded file
See also
[Back] |
||