R
R
Roquie2015-02-06 18:38:16
PHP
Roquie, 2015-02-06 18:38:16

Installing the YAF extension framework. Compiled successfully, among php -m is listed, but when you run phpinfo () it is not. What to do?

1. In the system (OS X) php is set by default, not standard, but MAMP's.
2. There
pecl install yaf
are no errors during installation.
3. The configuration was changed where it should be /Applications/MAMP/bin/php/php5.5.14/conf/php.ini
4. The output
php -m | grep yaf
indicates successful installation of the extension.
5. After restarting Apache, phpinfo() does not show among loaded yaf extensions. Although the same mongo installed fine and works.
6. php_error.log is empty for yaf lines. The only warnings there were lit up from the inability to find Yaf_Application.
7. apache_error.log also does not give hope, at least for some kind of error.
8. all errors are enabled in php.ini, including display_startup_errors = On (there are no errors related to yaf in any way. Turned it off on the screen).
9. while writing the question, I found out that everything works if you run it in the console via php -r ''. As usual, like other sites in hosts, the extension is not loaded. Why?
10. I spent half a day on this, I google all day, mostly infa in Chinese and then of little use ....
58f0428253214d75a6043c1abb4fea63.png
PS The version of PHP installed on the host in MAMP PRO matches the one where I put the extension.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2015-02-06
@Roquie

Show the output php -i | grep '\.ini'in the console
and a screen of the result phpinfo();in the browser.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question