longxinH / xhprof

PHP7/PHP8 support
http://pecl.php.net/package/xhprof
Apache License 2.0
1.09k stars 167 forks source link

Package installed, but PHP not loading extension #41

Closed ghost closed 4 years ago

ghost commented 4 years ago

I followed the instructions to clone the repo and "make" the extension.

I added the config lines to php.ini, and restarted php 7.2 fpm and nginx. but when I dump phpinfo(), the extension simply isn't loading.

longxinH commented 4 years ago

Please check your installation steps again

git clone https://github.com/longxinH/xhprof.git ./xhprof
cd xhprof/extension/
/path/to/php7/bin/phpize
./configure --with-php-config=/path/to/php7/bin/php-config
make
make install

php.ini

extension = xhprof.so

Check installation

/path/to/php7/bin/php --ri xhprof
ghost commented 4 years ago

I have multiple PHP versions installed, and I had ran phpize as the wrong version. Finally got it installed!