Solved Installing Phalcon PHP

Hi,

I'm trying to get www/phalcon to work. Accoring to the website, that should be easy on a FreeBSD system. And sure enough, pkg install phalcon executed without any errors.

But as soon as I restart php-fpm, I run into trouble.

Code:
/usr/local/etc/rc.d/php-fpm restart

Stopping php_fpm.
Waiting for PIDS: 37887.
Starting php_fpm.
[06-Oct-2015 09:38:22] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226-zts/phalcon.so' - Cannot open "/usr/local/lib/php/20131226-zts/phalcon.so" in Unknown on line 0
When I look in /usr/local/lib/php/20131226-zts/, there is no phalcon.so there. That file is located in /usr/local/lib/php/20131226/. But copying or linking that file to /usr/local/lib/php/20131226-zts/ doesn't solve anything.

What's going wrong here? And how can I fix this? :(
 
I'm running Nginx. And I compiled PHP as FPM version. I don't have www/mod_php5 installed. But I do have ZTS enabled in lang/php5.

Can't it be the other way around? I need to disable ZTS, because the phalcon package doesn't have it enabled?
 
If you enable ZTS for lang/php5 then you shouldn't use the official package that wasn't compiled to match. Either install both PHP and Phalcon from the same repository or compile them yourself to match either in Poudriere or on the system.

Also, PHP 5.4 is EOL as of a month ago (http://www.php.net/eol.php). It would be a good time to update to lang/php56.
 
I started over with all the installed PHP packages. This time I installed it all with pkg, because compiling wasn't really necessary. And this time Phalcon worked like a charm.
 
Back
Top