Article ID: 128150, created on Jan 25, 2016, last review on Jan 25, 2016

  • Applies to:
  • Plesk Automation 11.5

Question

I need to configure and enable PHP extensions for PHP handler on IIS node, for example php-soap. How can I do it ?

Answer

By the default, Plesk Automation provides pre-installed extensions on IIS node. Depends on PHP version available extension files could be found :

C:\Program Files (x86)\Parallels\Plesk\Additional\PHP\extensions - for PHP 4.4.9
C:\Program Files (x86)\Parallels\Plesk\Additional\PHP5\extensions - for PHP 5.2.17
C:\Program Files (x86)\Parallels\Plesk\Additional\PHP53\extensions - for PHP 5.3.29
C:\Program Files (x86)\Parallels\Plesk\Additional\PHP54\extensions - for PHP 5.4.32

After installing new website based on Windows node, you will probably want to install some PHP extensions for added functionality. You can choose which extensions you would like to load when PHP starts by modifying your php.ini.

The DLLs for PHP extensions are prefixed with php_. Many extensions are built into the of PHP. This means additional DLL files, and the extension directive, are not used to load these extensions.

In order to enable the extension(s) in php.ini you want to use by uncommenting the extension=php_*.dll lines in corresponding php.ini. This is done by deleting the leading ; from the extension you want to load.

For example in order to enable SOAP for PHP 5.4.32 on server-wide level perform following steps:

  1. Take the backup of current C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\php.ini (copy it like php.ini_bak).

  2. Verify configuration of the PHP settings file (%plesk_dir%\Additional\PleskPHP54\php.ini):

    2.1 Check the following parameters:

        extension_dir ="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\ext"
    

    2.2 Make sure that all extensions defined under

        ; Windows Extensions
        ;extension=php_bz2.dll
        extension=php_curl.dll
        ;extension=php_dba.dll
        ;extension=php_dbase.dll
        ;extension=php_fdf.dll
        extension=php_gd2.dll
        extension=php_gettext.dll
        ;extension=php_gmp.dll
        ;extension=php_ifx.dll
        extension=php_imap.dll
        ;extension=php_interbase.dll
        ;extension=php_ldap.dll
        extension=php_mbstring.dll
        ;extension=php_exif.dll
        ;extension=php_mcrypt.dll
        ;extension=php_mhash.dll
        ;extension=php_mime_magic.dll
        ;extension=php_ming.dll
        ;extension=php_msql.dll
        extension=php_mssql.dll
        extension=php_mysql.dll
        extension=php_mysqli.dll
        ;extension=php_oci8.dll
        extension=php_openssl.dll
        extension=php_pdo.dll
        ;extension=php_pdo_firebird.dll
        ;extension=php_pdo_mssql.dll
        extension=php_pdo_mysql.dll
        ;extension=php_pdo_oci.dll
        ;extension=php_pdo_oci8.dll
        ;extension=php_pdo_odbc.dll
        ;extension=php_pdo_pgsql.dll
        extension=php_pdo_sqlite.dll
        ;extension=php_pgsql.dll
        ;extension=php_pspell.dll
        ;extension=php_shmop.dll
        ;extension=php_snmp.dll
        ;extension=php_soap.dll
        extension=php_sockets.dll
        extension=php_sqlite.dll
        ;extension=php_sybase_ct.dll
        ;extension=php_tidy.dll
        ;extension=php_xmlrpc.dll
        extension=php_xsl.dll
        extension=php_zip.dll
    

    They should exist in C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\ext

  3. Apply required changes and check website again.

Search Words

enable PHP extension on IIS node

php soap

additional PHP extensions

configure PHP extensions

PHP extensions

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF