天天看點

運維 PHP問題彙總

1、Dede(織夢)發表文章時,内容自動添加關鍵字顯示空白頁

解決方法:

背景>系統>系統基本參數>核心設定>關鍵字替換(是/否),這裡選擇“是”。

背景>系統>系統基本參數>其他選項>自動提取關鍵字,這裡選擇“是”。

2、解決PHP168超級管理者上傳圖檔提示你的空間不足

網站是用PHP168做的,反映使用管理者在背景無法上傳圖檔,提示“你的空間不足,上傳失敗,你可以聯系管理者幫你增大空間”,檢查空間并無不足的現象,而使用管理者帳号admin登入釋出圖檔則一切正常,用admin登入背景檢查超級會員背景權限一切正常,怎麼回事呢?

解決的方法:使用admin登入背景,進入會員管理,點選前台權限管理,修改權限,把空間大小修改一下,預設有的是0M。

3、Discuz論壇首頁打開出現空白的原因及解決辦法

原因分析及處理方法:

原因:可能空間超了導緻的。

解決辦法:增加空間或删除一些沒用的檔案使空間處于不超的狀态,然後删除以下兩個檔案夾下所有檔案 forumdata/cache 和 /forumdata/templates或把這兩個檔案夾改名重新建立出來。

之後出現提示:

Cache List: settings index ipbanned usergroup_7 style_ Caches successfully created, please refresh.

重新整理,恢複正常

4、Php程式報錯 Using call-time pass-by-reference which has been deprecated

站點出現: Using call-time pass-by-reference which has been deprecated 等類型的報錯。

解決辦法:修改etc/php.ini将allow_call_time_pass_reference 中的OFF修改成TRUE

5、Linux虛拟主機打開報“Internal Server Error”500錯誤的解決方法

具體報錯如下:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

解決方法:檢查資料庫連接配接檔案是否正确。

6、linux作業系統301重定向

在網站根目錄建立僞靜态規則檔案.htaccess (需要伺服器支援僞靜态)

加入如下内容,即可實作将yourdomain.com跳轉到www.yourdomian.com

Options +FollowSymLinks

RewriteEngine on

RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]

RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]

7、行業建站程式安裝通不過驗證

對于伺服器均已經禁用了fsockopen  行業建站程式在安裝的時候會提供無法通過驗證

隻需要将/base/nusoap/nusoap.php把裡面的fsockopen 改成pfsockopen即可