This will give you a quick look at the php.ini file
echo "< ?php phpinfo(); ?>" |php |less
also, if you need to check if a specific module is installed or compiled in, you can use
echo "< ?php phpinfo(); ?>" |php |less|grep -i GD
of course, you can also do that via
php -i |grep -i GD
both give the same output

[] ~ >> php -i |grep -i GD
Configure Command => './configure' '--disable-mbregex' '--enable-bcmath'
'--enable-calendar' '--enable-exif' '--enable-force-cgi-redirect' '--enable-ftp'
'--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes'
'--enable-mbstring' '--enable-pdo=shared' '--enable-sockets' '--enable-zip'
'--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs'
'--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd'
'--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr'
'--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/'
'--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mysql=/usr'
'--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config'
'--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pdo-mysql=shared'
'--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-sqlite=shared'
'--with-ttf' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
GD Support => enabled
GD Version => bundled (2.0.34 compatible)

Was this post helpful?