php - How to use xhgui with MAMP for wordpress? -
i quite new apache , php. have wordpress running locally (macos) mamp.
i use xhgui (https://github.com/perftools/xhgui) works fine. instance, profiles when put auto_prepend_file = "/path/to/xhgui/external/header.php" global php.ini.
but mamp seems use own php.ini (as indicated phpinfo). added same line there. still, xhgui not profile it.
what doing wrong?
ps: running "php -s 0:8080 -t webroot/" , not through vhost via mamp, since not work. can cause problem?
edit: vhost
<virtualhost *:8888> php_admin_value auto_prepend_file "/users/me/desktop/xhgui/external/header.php" documentroot "/users/me/documents/path/to/wordpress" servername localhost </virtualhost>
i had same problem , solved exporting varibale.
in case, ran following command in console:
export php_ini_scan_dir=/library/application\ support/appsolute/mamp\ pro/conf
Comments
Post a Comment