how to get list of compiled extensions with php5.4

armin654

Well-Known Member
Feb 12, 2014
45
0
6
cPanel Access Level
Root Administrator
Hello guys
I'm checking a production server on which 3 versions of PHP for litespeed is installed.

I want to know the list of extensions which were used while PHP was compiled for the server.
Is there any log file on which we be able to read about the options and extensions which were used for compiling the php5.4 on that server?

Thank you for your help
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
If you have LiteSpeed on the servers, use the following command to get the list of compile options

/usr/local/lsws/fcgi-bin/lsphp5 -i | grep "Configure Command"

Replace "/usr/local/lsws/fcgi-bin/lsphp5" with the binary location of other PHPs, to know the respective compile options.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Note that for other users who may have used EasyApache, you can find a list of PHP modules installed with a command such as:

Code:
php -m
Thank you.