phpinfo:PHP重新編譯小幫手

使用過LAMP的人,相信對phpinfo這玩意兒不陌生,通常,大家可能是初學,或是在首次安裝各組件做測試會接觸一下phpinfo。

有些使用者從此就不會再去使用它,其實,如果使用Linux安裝完內建的LAMP組件後覺得不甚滿意,想要自行裝編一套,可是又不確定自己要將什麼東東編譯進來,那麼執行phpinfo是一個不錯的選擇。仔細看一下執行完的畫面吧!找到Configure Command,裡面的東東會是我們很好的施工方針。

在的部分租用的網路空間,也一樣能夠執行,並且了解主機上執行的PHP喔!以下是jute執行phpinfo之後的Configure Command內容:

‘./configure’ ‘–with-apxs=/usr/local/apache/bin/apxs’ ‘–with-xml’ ‘–enable-bcmath’ ‘–enable-calendar’ ‘–with-curl’ ‘–with-dom’ ‘–with-dom-xslt’ ‘–with-dom-exslt’ ‘–enable-exif’ ‘–with-swf=/usr/local/flash’ ‘–enable-ftp’ ‘–with-gd’ ‘–with-jpeg-dir=/usr/local’ ‘–with-png-dir=/usr’ ‘–with-xpm-dir=/usr/X11R6’ ‘–with-gettext’ ‘–with-iconv’ ‘–with-imap’ ‘–with-imap-ssl’ ‘–with-kerberos’ ‘–enable-mbstring’ ‘–enable-mbstr-enc-trans’ ‘–enable-mbregex’ ‘–with-mcrypt’ ‘–enable-memory-limit’ ‘–with-mhash’ ‘–with-ming=../ming-0.2a’ ‘–enable-magic-quotes’ ‘–with-mysql=/usr’ ‘–with-openssl’ ‘–enable-discard-path’ ‘–with-pear’ ‘–enable-sockets’ ‘–enable-track-vars’ ‘–with-ttf’ ‘–with-freetype-dir=/usr’ ‘–enable-gd-native-ttf’ ‘–enable-versioning’ ‘–with-zlib’

phpinfo提供很多訊息給使用者,另外,如果使用者非常清楚自己想要編譯什麼的話,其實倒是不需要這麼做。

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *