Hostpoint - Hilfe & Support > Help & Support > Products > Webhosting > PHP configuration

PHP configuration

PHP offers numerous configuration parameters that affect the properties and behavior of the interpreter. You can add to the default settings and modify individual values to meet your needs and the requirements of your applications.

PHP interpreter

Our servers use a special module for integrating PHP as a CGI on the web servers. Your scripts will therefore not be executed as an anonymous user such as ‘www’ or ‘nobody’ but, rather, with the permissions associated with your own user account.

In contrast to the commonly used ‘mod_php’ module, the advantage here is that all files belong to your user – regardless of whether they were created by your PHP applications or whether you uploaded them via FTP. This also allows you to conveniently change the configuration using what are known as PHP profiles for individual directories or your entire hosting account.

Selecting the PHP version

You can select the PHP version for a website or individual directory.

The options are found here:

  • Websites -> Web settings for the respective website

or

  • Explorer/Web settings -> Web Settings for this Directory for the desired directory.

PHP-Version-waehlen.png

Customizing the configuration

Log into the Control Panel. Under Websites, select the Web settings option. On the PHP Settings tab, you can select from a list of most frequently used options or add your own options. You can change any option that can be changed in PHP at runtime. The configuration is saved in the .user.ini file in the document root. These options also apply to subdirectories. You can also edit the file in an editor or copy it to another document root to apply the same settings to other websites. The .user.ini file must be located in the document root directory. It will not be found if it is saved somewhere other than in the document root directory.

Available modules for PHP 5

The following extensions are usually installed:

  • apcu
  • bcmath
  • bz2
  • calendar
  • ctype
  • curl
  • dba
  • dbase
  • dom
  • exif
  • fileinfo
  • filter
  • ftp
  • gd
  • geoip
  • gettext
  • gmp
  • hash
  • iconv
  • imagick
  • imap
  • intl
  • json
  • ldap
  • mailparse
  • mbstring
  • mcrypt
  • mssql
  • mysql
  • mysqli
  • ncurses
  • odbc
  • openssl
  • pcntl
  • pdf
  • pdo
  • pdo_dblib
  • pdo_mysql
  • pdo_sqlite
  • pgsql
  • phar
  • posix
  • pspell
  • readline
  • recode
  • session
  • simplexml
  • snmp
  • soap
  • sockets
  • sqlite3
  • syck
  • sysvmsg
  • sysvsem
  • sysvshm
  • tidy
  • tokenizer
  • wddx
  • xml
  • xmlreader
  • xmlrpc
  • xmlwriter
  • xsl
  • zip
  • zlib

However, we cannot guarantee the availability of the modules, because some of them have incompatibilities or we sometimes have to disable them due to current security concerns.

You must to post a comment.
Last modified
02:16, 6 May 2015

Tags

Classifications

This page has no classifications.