How to install Phalcon framework for a PHP supplied by Plesk?

Created:

2017-03-27 05:28:51 UTC

Modified:

2017-08-11 20:22:03 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to install Phalcon framework for a PHP supplied by Plesk?

Applicable to:

  • Plesk for Linux

Question

How to install Phalcon framework for a PHP supplied by Plesk?

Answer

Steps are provided for CentOS.

  1. Install the following packages and their dependecies:

    # yum install plesk-php56-devel pcre-devel gcc make
    
  2. clone phalcon git repo

    # git clone git://github.com/phalcon/cphalcon.git
    
  3. go to cphalcon/build folder:

    # cd cphalcon/build
    
  4. Run 'install' binary with appropriate options:

    # ./install --phpize /opt/plesk/php/5.6/bin/phpize --php-config /opt/plesk/php/5.6/bin/php-config
    

    Pay attention to paths to phpize and php-config specified in the command. If you install phalcon for some other PHP version, path should be set properly.

  5. Create /opt/plesk/php/5.6/etc/php.d/phalcon.ini configuration file with the following content:

    # cat /opt/plesk/php/5.6/etc/php.d/phalcon.ini 
    ; Enable phalcon framwork module
    extension=phalcon.so
  6. Make sure phalcon module is loaded fine.

    # /opt/plesk/php/5.6/bin/php -m | grep phalcon
    phalcon

For more details please refer to oficial guide by Phalcon Framework: https://github.com/phalcon/cphalcon

Have more questions? Submit a request
Please sign in to leave a comment.