- 資訊首頁(yè) > 互聯(lián)網(wǎng) > 經(jīng)驗分享 >
- LunarPages空間500錯誤原因及解決辦法
我們在使用LunarPages空間時(shí),有時(shí)在安裝程序時(shí)可能經(jīng)常出現500錯誤這一般是由于服務(wù)器內部出現的錯誤引起的,那么導致500錯誤原因有哪些呢?又該如何解決呢?下面來(lái)說(shuō)說(shuō)500錯誤常見(jiàn)原因及解決辦法?
1、上傳的文件權限設置不正確,如某些文件夾或文件權限是777或666,如果是這種情況,可能需要更改它們屬性為755或644。我們可以通過(guò)控制面板中的文件管理器或者使用FTP客戶(hù)端軟件進(jìn)行權限設置。
2、查看.htaccess文件參數設置是否正確,在.htaccess文件中不能包含php_values和php_flags,否則會(huì )出現500錯誤,需要移動(dòng)到php.ini文件中,最后在.htaccess文件中添加”suPHP_ConfigPath/home/username/public_html”語(yǔ)句。
3、數據庫參數是否正確,如果使用Access數據庫,可以查看連接路徑以及ODBC驅動(dòng)程序有沒(méi)有設置正確,如果使用MYSQL數據庫,查看數據庫是否正確連接,當然可以借助web.config文件顯示詳細錯誤信息。
4、程序自身錯誤,出現500錯誤,有可能是程序自身編寫(xiě)錯誤,因此我們必須對程序進(jìn)行檢查,確保程序代碼完整性和正確性。
5、其它未知錯誤,如果按照上述方法設置后,仍然不能解決出現的問(wèn)題,可以查看錯誤日志上出現的具體錯誤或者聯(lián)系官方客服檢查。
以下是LunarPages官方關(guān)于500錯誤的回復內容:
Hello!
At Lunarpages, our servers are setup to use suPHP to parse php pages as CGI instead of an Apache module. If you are running a PHP-based script on your site and are receiving a 500 and/or 404 errors on your pages, it is likely you have one or more of the following occurring:
1. The permissions on some of the folders or files are 777 or 666. If this is the case, change them to either 755 or 644 in Cpanel’s File Manager (or using your local FTP client).
2. The files and/or folders are not owned by you. Certain applications having been run under php as an apache module may have files owned by the apache user of nobody. An indication that you don’t own the files would be if you are unable to change their file permissions. To correct this, please provide your username or domain name, and provide the location of the folder or files that need to have your ownership.
3. Your .htaccess file has php_values or php_flags in it. This causes a 500 Internal server error when attempting to execute the script. The php_values and php_flags will need to be removed from your .htaccess file (please make a backup of the .htaccess by copying its contents and saving it on your desktop as htaccess.txt). Take the contents removed from .htaccess and place it into a file you create called php.ini. Remember to remove the php_flag and php_value part before the directives as php.ini files do not require those in front of the values. You can always make the changes and ask us if the changed files are correct. Because php.ini values are not shared across directories, you would need a separate php.ini file in each folder that has .htaccess or that requires the php_values or php_flags. In order to avoid doing this, you can place a line in the .htaccess file in your public_html folder to have all values in your public_html php.ini to be shared across all folder. This line would be the following: suPHP_ConfigPath /home/username/public_html.
Please let us know if you have any questions or require further assistance. Daniel McCall Lunarpages Support support@lunarpages.com.
以上就是Lunarpages空間常見(jiàn)500錯誤原因及解決辦法,僅供廣大新站長(cháng)朋友參考,更多知識,可以訪(fǎng)問(wèn)美國主機偵探進(jìn)行交流學(xué)習。
來(lái)源鏈接:https://www.idcspy.com/lunarpages-500-error.html
本站聲明:網(wǎng)站內容來(lái)源于網(wǎng)絡(luò ),如有侵權,請聯(lián)系我們,我們將及時(shí)處理。
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng )、來(lái)自本網(wǎng)站內容采集于網(wǎng)絡(luò )互聯(lián)網(wǎng)轉載等其它媒體和分享為主,內容觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如侵犯了原作者的版權,請告知一經(jīng)查實(shí),將立刻刪除涉嫌侵權內容,聯(lián)系我們QQ:712375056,同時(shí)歡迎投稿傳遞力量。
Copyright ? 2009-2022 56dr.com. All Rights Reserved. 特網(wǎng)科技 特網(wǎng)云 版權所有 特網(wǎng)科技 粵ICP備16109289號
域名注冊服務(wù)機構:阿里云計算有限公司(萬(wàn)網(wǎng)) 域名服務(wù)機構:煙臺帝思普網(wǎng)絡(luò )科技有限公司(DNSPod) CDN服務(wù):阿里云計算有限公司 百度云 中國互聯(lián)網(wǎng)舉報中心 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證B2
建議您使用Chrome、Firefox、Edge、IE10及以上版本和360等主流瀏覽器瀏覽本網(wǎng)站