本文目錄一覽:
PHP安裝出錯
我怎麼覺得你那兩行是我機器上的配置,我的php、mysql、apache都是安裝在e:\的,而且都各自安裝了多種版本。
你要找到你機器上的php5apache2_2.dll的位置,替換為指定的路徑即可。
另外,你現在究竟遇到了什麼問題,你說的沒解決是什麼意思???
PHP報這個錯不用管,安裝是算完成了的,只要手工修改httpd.conf後Apache就能正常工作,不工作你要說現象,最好拷貝個屏幕貼一下。
編譯安裝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
linux 下安裝完php出現錯誤
這個不是報錯。查看版本命令你少了一個空格,要在php後面加個空格
原創文章,作者:UXBE,如若轉載,請註明出處:https://www.506064.com/zh-tw/n/135751.html