SOLVED EA4 compiling a module for 55 or 56 problem

ehask71

Well-Known Member
Jul 13, 2007
62
5
58
Tampa, Florida, United States
cPanel Access Level
Root Administrator
Hey everyone I have PhpPhalcon running on one of my boxes for a client. Well one of my guys accidentally ran EA4 migration (we were doing the other boxes) on this one. I quickly was able to compile phalcon.so for php7 and seemed like it worked well their dev said no it would be $$ to make their app run in php7

So I tried to compile for 56 or 55 but Im getting these errors

[19-Apr-2017 11:59:32 America/New_York] PHP Warning: PHP Startup: phalcon: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0

Here is how Im building:
cd /usr/local/src/cphalcon-2.1.x/build/php5/64bits/
/opt/cpanel/ea-php55/root/usr/bin/phpize --enable-phalcon --with-php-config=/opt/cpanel/ea-php55/root/usr/bin/php-config
./configure --with-php-config=/opt/cpanel/ea-php55/root/usr/bin/php-config
make
make install
Then adding
vim /opt/cpanel/ea-php55/root/etc/php.d/20-phalcon.ini with extension=phalcon.so in it

in 5.5 it errors out above and 5.6 errors and then segfaults .........

Any ideas from the community how remedy the module version issue?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
So I tried to compile for 56 or 55 but Im getting these errors

[19-Apr-2017 11:59:32 America/New_York] PHP Warning: PHP Startup: phalcon: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
Hello,

Are you using a custom php.ini file for this account? For instance, if you upload a PHPINFO file to the same directory and open it in a browser, which php.ini file is referenced? Also, does the server use CloudLinux with CageFS enabled?

Thank you.
 

ehask71

Well-Known Member
Jul 13, 2007
62
5
58
Tampa, Florida, United States
cPanel Access Level
Root Administrator
No this is a centos box. When I compile and enable for 56 it breaks everyone running 56 server wide. No custom phone.ini.

I'm not in front of a PC but I will upload a phpinfo in a few
 

Mark Shaw

Member
Apr 13, 2017
10
1
3
PEI Canada
cPanel Access Level
DataCenter Provider
Hello Eric,

I would recommened reinstall cphalcon, to do this complete the following steps:

download and unzip cphalcon-master.zip
cd cphalcon-master/build/64bits
make clean phpize --clean /usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config make && make install

I believe once you do this and it is reinstalled that this should correct all of the issues.

Regards,

Mark S.
 

ehask71

Well-Known Member
Jul 13, 2007
62
5
58
Tampa, Florida, United States
cPanel Access Level
Root Administrator
I need to use the 2.1.x version which isnt php7 production ready so I am forced to compile for php 5.5. Your commands would most likely work for 7 but I need to use the commands I posted

The php.ini is /opt/cpanel/ea-php55/root/etc/php.ini
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello,

Feel free to open a support ticket using the link in my signature so we can take a closer look and rule out any issues with how the php.ini file is utilized as part of the MultiPHP functionality. You can post the ticket number here and we will update this thread with the outcome.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello,

I'm glad to see you were able to get it working. Thank you for updating us with the outcome.