xhgui doesn't save any data

大憨熊 提交于 2019-12-02 04:27:10

问题


I've installed all te prerequistes on an Ubuntu machine and added the following to my apache virtual host file

php_admin_value auto_prepend_file "/var/www/xhgui/external/header.php"

After visiting the site I then go to /xhgui/webroot and just see the message

Looks like you haven't done any profiling

Mongodb is running but it seems as though no data is being saved there.

Any suggestions?

Thanks


回答1:


external/header.php has logic to simply return; if rand(0, 100) does not return the value 42. Try commenting that out (temporarily).




回答2:


I had a lot of problems installing xhgui.

First make sure mongo is correctly installed, and that you run php install.php without problems. Adding the extension mongodb fixed that for me:

extension=mongodb.so

instead of mongo.so

Also, make sure xhprof mongo db exists:

$ mongo
$ use xhprof

that's it, this commands will have created the collection for xhgui to use.

Once all that is done, put this lines in your vhost file (php.ini did not work for me):

php_admin_value auto_prepend_file "/var/www/xhgui/external/header.php"

change header.php path to wherever is you header.php located.



来源:https://stackoverflow.com/questions/19575134/xhgui-doesnt-save-any-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!