Troubleshooting eG PHP Profiler Installation
To check whether the eG PHP Profiler has been installed successfully, do the following:
-
If the installer is running in the mod_php mode, then run the following command from the shell prompt of the server hosting the PHP web application:
php -m
On the other hand, if the installer is running in the php-fpm mode, then run the following command from the shell prompt of the server hosting the PHP web applcation:
php-fpm -m
Note:
Root user permissions are required to run these commands.
-
These commands, upon execution, will list the modules that have been loaded on to PHP. If this list contains the eG_phpBTM module, it means that the eG PHP Profiler has been successfully installed.
Where multiple versions of PHP are running on a single machine, the install path of only one of these versions will be set as the 'default PHP install path' in the environment settings. Both the commands discussed in step 1 above will by default run from the 'default PHP install path' only. This being the case, if you have BTM-enabled another instance (i.e., another PHP version) running on the machine and not the default instance, then the output of the aforesaid commands will not include the eG_phpBTM module. If this is so, then to verify the successful installation of the profiler, do the following:
-
At the shell prompt, run the following command, if the profiler is running in the mod_php mode:
php -v
If the profiler is running in the php-fpm mode on the other hand, run the following command:
php-fpm -v
-
These commands, upon execution, will list the default PHP version. From the output of these commands, you can determine if this is the version you have BTM-enabled. If not, then run the -m command from the install path of the BTM-enabled PHP version/instance. For instance, if the PHP instance that is BTM-enabled has been installed in the /usr/bin directory, run the -m as follows:
/usr/bin/php -m, if the profiler runs in the mod_php mode
/usr/bin/php-fpm -m, if the profiler runs in the php-fpm mode