溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

php5.4 升級至php5.6遇到到問題

發(fā)布時(shí)間:2020-04-11 02:07:05 來源:網(wǎng)絡(luò) 閱讀:1892 作者:Shell_Me 欄目:web開發(fā)

從php5.4升級到5.6遇到的問題

安裝 php5.6.33 和Apache2.4 都是window 64位
php直接取官網(wǎng)下載

這是apache2.4的下載
http://www.apachelounge.com/download/

升級中遇到的問題 如下:

安裝Apache 時(shí) 在Apache 的bin目錄下 shift+鼠標(biāo)右鍵 “在此處打開命令窗口”

運(yùn)行 “httpd -t” 用于檢查Apache 配置是否有錯(cuò)誤 結(jié)果出現(xiàn)了如下錯(cuò)誤:

“Could not reliably determine the server's fully qualified domain ”

這是沒有設(shè)置服務(wù)器名稱 解決方法:
在httpd.conf 添加
ServerName localhost:80

基于多域名的主機(jī)配置

首先在httpd.conf 開啟 virtual host

<VirtualHost *:80>
ServerName www.blog.com
DocumentRoot "G:/WebSite/Blog"

<Directory "G:/WebSite/Blog/">
    #Options FollowSymLinks (不顯示目錄列表)

    #顯示目錄列表
    Options Indexes FollowSymLinks
    AllowOverride None
    #允許自動(dòng)加載的文件
    DirectoryIndex index.html index.php index.htm index.jsp
    #請求權(quán)限設(shè)置 
    Require all granted
</Directory>

</VirtualHost>

當(dāng)開啟了pdo_mysqli擴(kuò)展時(shí) php無法加載擴(kuò)展 找了半天 結(jié)果是:
extension_dir 目錄寫錯(cuò)(英文引號寫成中文)

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI