Article ID: 116846, created on Aug 21, 2013, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux


I have selected and installed PHP 5.3 in Plesk Installer and now my websites are broken.


Only one PHP version may be installed by Plesk Installer. Additional PHP versions should be built from source code and installed to a custom location.


  1. Download the PHP source code archive:

  2. Build and install PHP using the instructions provided at Recommended configuration options are as follows:

    ./configure --with-libdir=lib64 --cache-file=../config.cache --prefix=/opt/php-5.2.12 --with-config-file-path=/opt/php-5.2.12/etc --disable-debug --with-pic --disable-rpath --enable-fastcgi --with-bz2 --with-curl --with-freetype-dir=/opt/php-5.2.12 --with-png-dir=/opt/php-5.2.12 --enable-gd-native-ttf --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/opt/php-5.2.12 --with-openssl --without-pspell --with-pcre-regex --with-zlib --enable-exif --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-wddx --with-kerberos --with-unixODBC=/usr --enable-shmop --enable-calendar --without-sqlite3 --with-libxml --enable-pcntl --with-imap --with-imap-ssl --enable-mbstring --enable-mbregex --with-gd --enable-bcmath --with-xmlrpc --with-ldap --with-ldap-sasl --with-mysql=/usr --with-mysqli --with-snmp --enable-soap --with-xsl --enable-xmlreader --enable-xmlwriter --enable-pdo --with-pdo-mysql --with-pdo-pgsql --with-pear=/opt/php-5.2.12/pear --with-mcrypt --enable-intl --without-pdo-sqlite --with-config-file-scan-dir=/opt/php-5.2.12/php.d

    Note: Use the custom path in the --prefix option (for example, /opt/php-5.2.12) to avoid overwriting the PHP installed by Parallels Installer.

  3. Copy the configuration file php.ini-dist from the source's directory to the php.ini file in the etc sub-directory of the custom PHP directory.

  4. Register the custom PHP version in Plesk:

    /usr/local/psa/bin/php_handler --add -displayname 5.2.12 -path /opt/php-5.2.12/bin/php-cgi -phpini /opt/php-5.2.12/etc/php.ini -type fastcgi -id 5.2.12-custom

See also

Search Words


custom php

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article
Save as PDF