當前位置:首頁 » 編程語言 » phpconfigure

phpconfigure

發布時間: 2025-09-13 00:50:17

❶ 安裝php顯示configure:error:jpeglib.h not found.怎麼解決

在Linux下安裝PHP過程中,編譯時出現configure: error: libjpeg.(a|so) not found 錯誤的解決辦法:

檢查之後發現已經安裝了libjpeg

[root@localhost php-5.2.14]# yum list installed|grep libpng

libpng.x86_64 2:1.2.49-1.el6_2

或者:

[root@localhost php-5.2.14]# rpm -qa|grep libjpeg

libjpeg-turbo-1.2.1-3.el6_5.x86_64

❷ PHP 如何生成靜態 頁面

哦...這個噠
你用的是apache吧
看看裡面有個設置文件http.conf
裡面去找這條類似的
# Begin PHP Configure by PHPnow
LoadMole php5_mole "../php-5.2.6-Win32/php5apache2_2.dll"
<IfMole mod_php5.c>
PHPINIDir "../php-5.2.6-Win32/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfMole>
# End PHP Configure by PHPnow
然後把
AddType application/x-httpd-php .php
改了
AddType application/x-httpd-php .htm
....................華麗的分界線...........................

然後去把你所有後綴為php的文件改成htm
然後就可以了

這招其實是用來防黑客注入滴~~~~

❸ 編譯安裝php時出錯configure: error: build test failed.

對於PHP在./configure的時候出現下面問題:
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/local/libxml2/
checking for xml2-config path... /usr/local/libxml2//bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.
#按照提示我們查看php安裝目錄下的config.log文件,搜索xml2-config
[root@lamp-lnmp php-5.6.40]# vim config.log
#發現下面內容:
configure:23104: checking for xml2-config path
configure:23118: result: /usr/local/libxml2//bin/xml2-config
configure:23262: checking whether libxml build works
configure:23289: cc -o conftest -g -O2 -fvisibility=hidden -pthread -D_REENTRANT -Wl,-rpath,/usr/local/libxml2/lib -L/usr/local/libxml2/lib conftest.c
-lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl >&5
configure:23289: $? = 0
configure:23289: ./conftest
./conftest: /lib64/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /usr/local/libxml2/lib/libxml2.so.2)
configure:23289: $? = 1
configure: program exited with status 1
configure: failed program was:
#我們這里查看一下這個/lib64/libz.so.1的文件,發現鏈接到一個舊的libz文件中,這里將/lib64/libz.so.1軟連接到新文件/usr/local/lib/libz.so.1.2.11中進行下面設置。
[root@lamp-lnmp ~]# ln -sf /usr/local/lib/libz.so.1.2.11 /lib64/libz.so.1
[root@lamp-lnmp ~]# ls -l /lib64/libz.so.1
lrwxrwxrwx 1 root root 29 Feb 2 11:13 /lib64/libz.so.1 -> /usr/local/lib/libz.so.1.2.11

❹ 問題是:在PHP中,為什麼使用mb_strlen()函數報錯

用phpinfo()查看一下mb擴展是否已經正確安裝,木有的話,檢查你的php.ini文件里的mb的dll或者是Unix下安裝php的configure的時候是否添加相關配置。一般Unix下默認是添加mb函數擴展的。

❺ 編譯安裝php時出錯configure: error: build test failed.

你先確定一下你./configure時有沒有出錯提示?並不是說./configure完就說行了,因為它的參數因環境不同而異!如果執行完沒錯就應該sudo
make是沒什麼問題,就算是有也應該是依懶包看出錯提示,你的是GD庫,你編譯gd庫時參數如何?編譯安裝正常嗎?
情況好多,我用UBUNTU編譯時也是拆騰好久才編好,也好不經過這樣拆騰也不知道編譯時的要點
記得./configure
--help看一下幫助
所以我認為先重編一下你的GD庫,還有你編譯PHP時注意參數的正確如
--with-gd=/opt/gd
具體實際安裝路徑

熱點內容
android模擬wifi 發布:2025-09-13 02:36:08 瀏覽:676
python二進制打開文件 發布:2025-09-13 02:31:02 瀏覽:320
給老公解壓 發布:2025-09-13 02:13:31 瀏覽:101
javastringsqldate 發布:2025-09-13 01:45:43 瀏覽:147
地址分配伺服器設置 發布:2025-09-13 01:45:06 瀏覽:730
ftp登陸指定用戶名和埠號 發布:2025-09-13 01:34:37 瀏覽:658
運行守護怎麼設置安卓 發布:2025-09-13 01:32:37 瀏覽:947
tar解壓了 發布:2025-09-13 01:10:41 瀏覽:117
viplinux 發布:2025-09-13 01:04:40 瀏覽:652
演算法與數據結構面試 發布:2025-09-13 00:59:09 瀏覽:802