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
phpizeexecutable. so run this command :
whereis phpize - Go to the path that you cloned source of phalcon, then
cdintobuildpath & your system architecture (for me is 64Bit):
cd /path/to/cphalcon/build/64Bits/ - Run
phpizelike this :
/path/to/phpize - Go back to
builddirectory:
cd ../orcd /path/to/cphalcon/build - Find
php-configexecutable Path with this command :
whereis php-config
(it could be at the same place ofphpize) - Open
installfile with your favourite editor (nano,vi,vim ...) :
sudo nano install - Finding
phpizecommand & then change it with absolute path :
phpizeto/path/to/phpzie - Replace
./configure --enable-phalconsection with this :
./configure --enable-phalcon --with-php-config=/path/to/php-config - Save
installfile - Start build PhalconPHP with
./install - After build, you can run
make testto find out that phalcon build successfully. - Adding
phalcon.soto yourphp.ini- To find which
php.iniis loaded seeLoaded Configuration Fileinphpinfo()function.
- To find which