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.

No achievement Phalcon debian install php-fpm with (5.6.4 compiled)

install php-fpm compiling it. install git-core. install gcc. install autoconf. then .. Phalcon compile from the root/cphalcon/build folder with the command ./install. Embed the file extension to /usr/local/php/php.ini. reboot the server and the extension is not visible in the phpinfo(). Help me!.



24.7k
Accepted
answer

Can you please provide output of these commands?:

$ locate phalcon.so
$ php -m | grep phalcon

$ locate phalcon.so

bash: locate: Order not found

$ php -m | grep phalcon

[PHP Modules]
Core
ctype
date
dom
ereg
fileinfo
filter
hash
iconv
json
libxml
mysql
mysqlnd
pcre
pdo
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
[Zend Modules]

maybe work this find / -name phalcon.so

/root/cphalcon/build/32bits/.libs/phalcon.so
/root/cphalcon/build/32bits/modules/phalcon.so
/usr/local/lib/php/extensions/no-debug-non-zts-20131226/phalcon.so
edited Jan '15

At this case, if command:

$ php -m | grep phalcon

showed that you have not enabled Phalcon, but:

find / -name phalcon.so

says that you have phalcon.so located at /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ make sure that you are using 20131226 Module Api:

$ phpize --version

try to include Phalcon (at php.ini file or if your distro uses separated configs at /etc/php5/mods-available/phalcon.ini):

extension=phalcon.so

if your distro uses separated configs be sure to make symbolic links of /etc/php5/mods-available/phalcon.ini to fpm/cgi/cli config dirs and restart php-fpm

Path of phalcon.so should be the same as:

php -i | grep '^extension_dir' | awk '{print $3}'

$ phpize --version

Configuring for:
PHP Api Version:        20131106
Zend Module Api No:     20131226
Zend Extension Api No:  220131226

I do not like knowing.

I included phalcon.so in this:

/usr/local/php/php.ini

and

/etc/php5/mods-available/phalcon.ini

but does not work. :(

edited Jan '15

Can you please provide output of these commands?:

$ php -i| grep 'Configuration File'
$ php -i| grep 'Scan this dir for additional'
$ php -i| grep -A 40 -i 'ini files parsed'
$ php -i| grep '^extension_dir' | awk '{print $3}'

$ php -i| grep 'Configuration File'

/usr/local/lib

$ php -i| grep 'Scan this dir for additional'

(none)

$ php -i| grep -A 40 -i 'ini files parsed'

(none)

$ php -i| grep '^extension_dir' | awk '{print $3}'

/usr/local/lib/php/extensions/no-debug-non-zts-20131226
edited Jan '15

Okay, php-cli says that you have only one config file, located at /usr/local/lib/php.ini.

You do not mistake? Earlier, you said that you included extension=phalcon.so at /usr/local/php/php.ini.

Also be sure

$ ls /usr/local/lib/php/extensions/no-debug-non-zts-20131226 | grep phalcon

should return phalcon.so

edited Jan '15

I included phalcon.so in this:

/usr/local/php/php.ini

and

/etc/php5/mods-available/phalcon.ini

but does not work. :(

Hm..

If your distro has a structure directory like this /etc/php5/mods-available/, then most likely you should have something like /etc/php5/cli/, /etc/php5/fpm/, etc..

So, could you check please if you have a symlink here for Phalcon?:

$ ls -l /etc/php5/cli/conf.d/
$ ls -l /etc/php5/fpm/conf.d/

thank you very much Serghei Yakovlev

did not have the php.ini file in /usr/local/lib/php.ini but believes reboot and run!

Ahora tengo que instalar el devtool :)

psd: I think it also opened to change the location of phalcon.so to /usr/local/lib/phalcon.so

edited Jan '15

You're Welcome :)