Author Topic: PHP install Phalcon extension  (Read 5842 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP install Phalcon extension
« on: January 03, 2020, 12:08:56 PM »
Hi, all!

I've been using cwp for a few months now and am impressed with it. I'm in love!

I have one question. I have projects that are written on a Phalcon framework(phalcon.io)and I need to submit them to the server. The problem is I have to install the Phalcon extension for PHP without breaking the server because it has projects in production :D.

Has anyone done it and can they share some information on how I could do it?

Offline
*****
Re: PHP install Phalcon extension
« Reply #1 on: January 03, 2020, 03:51:25 PM »
Hi. It must be installed from source https://github.com/phalcon/cphalcon and I believe you have to talk to a system administrator for the installation.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: PHP install Phalcon extension
« Reply #2 on: January 03, 2020, 05:42:22 PM »
Hi. It must be installed from source https://github.com/phalcon/cphalcon and I believe you have to talk to a system administrator for the installation.

Hi. Thanks for answer.

I'am the system administrator :D and I wanted to install and use it.
« Last Edit: January 03, 2020, 05:53:02 PM by krasipetrov »

Offline
*
Re: PHP install Phalcon extension
« Reply #3 on: January 04, 2020, 06:17:31 PM »
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:
Quote
curl http://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:
Quote
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:

Quote
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:

Quote
$ 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:

Quote
extension=psr.so
extension=phalcon.so

that is all