Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@m2sh
Last active October 11, 2015 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m2sh/9af99db0f2e77e0ae86d to your computer and use it in GitHub Desktop.
Save m2sh/9af99db0f2e77e0ae86d to your computer and use it in GitHub Desktop.
install phalconPHP on CentOS (with direct admin installed)

If you have problem to build phalconPHP from source on CentOS With PHP 5.4 (and maybe Direct Admin control panel installed) you can try these steps to solve your problem.

  • First you must find the absolute path of phpize executable. so run this command :
    whereis phpize
  • Go to the path that you cloned source of phalcon, then cd into build path & your system architecture (for me is 64Bit):
    cd /path/to/cphalcon/build/64Bits/
  • Run phpize like this :
    /path/to/phpize
  • Go back to build directory:
    cd ../ or cd /path/to/cphalcon/build
  • Find php-config executable Path with this command :
    whereis php-config
    (it could be at the same place of phpize)
  • Open install file with your favourite editor (nano,vi,vim ...) :
    sudo nano install
  • Finding phpize command & then change it with absolute path :
    phpize to /path/to/phpzie
  • Replace ./configure --enable-phalcon section with this :
    ./configure --enable-phalcon --with-php-config=/path/to/php-config
  • Save install file
  • Start build PhalconPHP with ./install
  • After build, you can run make test to find out that phalcon build successfully.
  • Adding phalcon.so to your php.ini
    • To find which php.ini is loaded see Loaded Configuration File in phpinfo() function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment