We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon extension on VPS with CWP admin panel

Hello! I have a vps server with a cwp admin panel and Centos 7. I was looking for information on how to install phalcon e xtensionbut unfortunately I can't find any information on the web.Has anyone done such an installation?

It depends of your hosting service if they give you chance to install/enable phalcon extension, ask them if they support it, otherwise you must find other alternatives.



3.3k
Accepted
answer
edited Jan '20

Everything is ready. I did the installation. I write how, because it may be useful.

First weed need to install re2c. Open opt directory and download package:

curl https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/r/re2c-0.14.3-2.el7.x86_64.rpm --output re2c-0.14.3-2.el7.x86_64.rpm

Install:

rpm -Uvh re2c-0.14.3-2.el7.x86_64.rpm

Now, wee need to install psr. Psr is required for phalcon extension. Instruction for installation from https://github.com/jbboehr/php-psr:

git clone https://github.com/jbboehr/php-psr.git cd php-psr phpize ./configure make make test sudo make install

Now, we install phalcon extension:

$ cd /opt/ $ git clone https://github.com/phalcon/cphalcon.git $ cd cphalcon/build $ sudo ./install

Wait for installation finish. Now, wee need to edin php.ini file and add this lines:

extension=psr.so extension=phalcon.so

that is all