Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Cant install phalcon 3.0 on php7.0.9+centos7+vestacp

I install php 7 using this tutorial than install Phalcon 3.0 using this https://phalconphp.com/en/download

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/remi/php70/root/usr/lib64/php/modules/phalcon.so' - /opt/remi/php70/root/usr/lib64/php/modules/phalcon.so: cannot open shared object file: No such file or directory in Unknown on line 0

There is no file at path - /opt/remi/php70/root/usr/lib64/php/modules/phalcon.so. If i copy to this path fresh compiled file from /usr/lib64/php/modules/phalcon.so i get error

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/remi/php70/root/usr/lib64/php/modules/phalcon.so' - /opt/remi/php70/root/usr/lib64/php/modules/phalcon.so: undefined symbol: zval_used_for_init in Unknown on line 0

How fix this issue ?



64.0k

repeat this step here

Remove and re-link new PHP7

CODE: SELECT ALL
rm -f /usr/bin/php
ln -s /usr/bin/php70 /usr/bin/php

for php-config and phpize

You have php7-dev installed ? What php -v and phpize -v return ?



4.5k
edited Aug '16

You have php7-dev installed ? What php -v and phpize -v return ?

[[email protected] ~]# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/remi/php70/root/usr/lib64/php/modules/phalcon.so' - /opt/remi/php70/root/usr/lib64/php/modules/phalcon.so: undefined symbol: zval_used_for_init in Unknown on line 0
PHP 7.0.9 (cli) (built: Jul 20 2016 16:58:48) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.9, Copyright (c) 1999-2016, by Zend Technologies
[[email protected] ~]# phpize -v
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
[[email protected] ~]#


4.5k
Accepted
answer
PHP Api Version:         20121113
Zend Module Api No:      20121212

This means php 5