Skip to main content

php컴파일 정보 확인하기

php명령어를 통한 컴파일 정보 확인방법

  1. php 명령어로 확인
    [root@localhost ~]# php -i | more
    phpinfo()
    PHP Version => 5.3.10
     
    System => Linux localhost 2.6.18-274.18.1.el5PAE #1 SMP Thu Feb 9 13:25:50 EST 2012 i686
    Build Date => Feb 10 2012 16:00:07
    Configure Command =>  './configure'  '--prefix=/usr/local/php' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-apxs2=/usr/local/apache2/bin/apxs'
    '--enable-sysvshm=yes' '--enable-sysvsem=yes' '--enable-debug=no' '--with-iconv' '--with-gmp' '--with-pic' '--with-curl' '--with-png-dir' '--with-zlib-dir' '--with-jpeg-dir' '--with-gd'
    '--with-gdbm' '--with-bz2' '--enable-gd-native-ttf' '--enable-ftp' '--enable-mbstring' '--enable-sockets' '--enable-wddx' '--with-freetype-dir' '--enable-bcmath' '--enable-mbregex' '--ena
    ble-exif' '--enable-calendar' '--with-openssl=/usr' '--with-libxml-dir' '--with-xmlrpc'
  2. 웹브라우저를 통한 확인
    [root@localhost ~]# cat /var/www/html/test.php

    image-1654567989776.png