How to enable Oracle OCI8 extensions for Plesk PHP 7




  • Avatar


    Thanks. It works but how can we enable for PHP 7.1 and 7.2 too?

    #/opt/plesk/php/7.2/bin/pecl install oci8

    WARNING: channel "" has updated its protocols, use "pecl channel-update" to update
    downloading oci8-2.1.8.tgz ...
    Starting to download oci8-2.1.8.tgz (194,154 bytes)
    .........................................done: 194,154 bytes
    11 source files, building
    running: phpize
    Can't find PHP headers in /usr/include/php
    The php-devel package is required for use of this command.
    ERROR: `phpize' failed

    Thanks a lot.

  • Avatar

    Ok. I try for PHP 5.6:

    # yum install plesk-php56-devel gcc glibc-devel libmemcached-devel zlib-devel make libaio.x86_64

    But i've have this result:

    Error downloading packages:
    plesk-php56-devel-5.6.32-centos7.17102712.x86_64: [Errno 256] No more mirrors to try.

  • Avatar
    Nikolay Zhmuk

    @Erwan PHP devel package have to be installed to us pecl tool. The required steps has been added to the article.

    Regarding the second error with PHP5.6, verify that PHP5.6 is installed via Plesk installer. Install/re-install it if necessary and try install plesk-php56-devel

Please sign in to leave a comment.

Have more questions? Submit a request