我们在使用LunarPages空间时,有时在安装程序时可能经常出现500错误这一般是由于服务器内部出现的错误引起的,那么导致500错误原因有哪些呢?又该如何解决呢?下面来说说500错误常见原因及解决办法?

1、上传的文件权限设置不正确,如某些文件夹或文件权限是777或666,如果是这种情况,可能需要更改它们属性为755或644。我们可以通过控制面板中的文件管理器或者使用FTP客户端软件进行权限设置。

2、查看.htaccess文件参数设置是否正确,在.htaccess文件中不能包含php_values和php_flags,否则会出现500错误,需要移动到php.ini文件中,最后在.htaccess文件中添加"suPHP_ConfigPath/home/username/public_html"语句。

3、数据库参数是否正确,如果使用Access数据库,可以查看连接路径以及ODBC驱动程序有没有设置正确,如果使用MYSQL数据库,查看数据库是否正确连接,当然可以借助web.config文件显示详细错误信息。

4、程序自身错误,出现500错误,有可能是程序自身编写错误,因此我们必须对程序进行检查,确保程序代码完整性和正确性。

5、其它未知错误,如果按照上述方法设置后,仍然不能解决出现的问题,可以查看错误日志上出现的具体错误或者联系官方客服检查。

以下是LunarPages官方关于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空间常见500错误原因及解决办法,仅供广大新站长朋友参考,更多知识,可以访问美国主机侦探进行交流学习。

转载于:https://blog.51cto.com/wendeshuju/1135372

LunarPages空间500错误原因及解决办法相关推荐

  1. nginx 502错误原因和解决办法总结

    nginx 502错误原因和解决办法总结 一.NGINX 502错误排查 二.Nginx 413错误的排查:修改上传文件大小限制 三.Nginx 400错误排查:HTTP头/Cookie过大 一.NG ...

  2. 暗黑3服务器维护能登录,暗黑3登陆错误原因及解决办法详解

    暗黑3登陆错误原因及解决办法详解 2012-10-15 09:06:03来源:游戏下载编辑:评论(0) 暗黑3报错ERROR解决方法,全部暗黑3报错汇总,全部报错汇总解答.小编将玩家遇到的各种暗黑3安 ...

  3. Non-numeric box dimensions - simulation unstable 错误原因及解决办法

    大家好,我是小马老师. 本文继续介绍lammps常见的错误及解决办法:Non-numeric box dimensions - simulation unstable 最近几天,好几个培训班学员遇到这 ...

  4. uni-app浏览器、iPhone手机显示轮播图,微信、支付宝小程序中不显示的错误原因及解决办法

    源码: index.vue: <template><view class="main"><swiper :indicator-dots="t ...

  5. 服务器出现 HTTP 400、404、500、502 错误原因以及解决办法

    目录 一.基本包含了所有问题 1.HTTP 403 – 禁止访问 2.无法找到 Web 站点 3.HTTP 500 – 内部服务器错误 二.日志文件的位置 1.这类状态代码表明服务器成功地接受了客户端 ...

  6. Nginx显示500错误原因和解决方法

    文章目录 1.背景 2.Nginx 常见的几种报错 3. 解决500错误 1.背景 最近在操作nginx 的时候出现了 Nginx 500 内部错误,在此记录一下原因,项目采用的是前后端分离方式,后端 ...

  7. oracle创建表空间出错的原因和解决办法

    相信很多人在创建表空间的时候遇到过这样问题. 问题原因:这是因为oracle数据库是在虚拟机或者是服务器上安装的. 你在本地创建文件的时候自然会找不到文件夹.就会造成图上的错误 解决办法:1.打开虚拟 ...

  8. 【C/C++】“std::basic_ios _Elem,_Traits:无法访问private变量在类中的声明”错误原因与解决办法

    C++工程出现如下错误: c:\program files (x86)\microsoft visual studio 8\vc\include\fstream(675) : error C2248: ...

  9. provider:SQL Network Interfaces,error:26 - 定位指定的服务器/实例时出错--错误原因及解决办法

    问题截图: 错误 错误原因一 未启动SQL服务 错误原因二 数据库和VS自带的LocalDB有冲突: 导致远程过程调用失败:(需要卸载VS中的LocalDB) 方法 解决办法一 启动SQL Serve ...

最新文章

  1. SAP有用的NOTE(持续更新)
  2. Android、Java验证手机号是否合法
  3. 获得TADIR-OBJECT全部的entry list
  4. 护卫神怎么增加php版本_护卫神php套件 php版本升级方法(php5.5.24)
  5. 数据库实例服务被误删后
  6. ai电磁组属于什么组_星巴克的“气氛组”究竟是一个什么样的神秘组织?
  7. Android性能优化 笔记
  8. 5分钟快速了解区块链中的哈希值Hash(用户密码存储举例说明)?
  9. GDK7+NanoCode调试学习系列1--环境搭建
  10. 清华大学计算机相关夏令营,夏令营报名
  11. [bzoj1022] [SHOI2008]小约翰的游戏John
  12. 12.账号和权限管理
  13. 多媒体计算机维修记载,多媒体教学计划(精选3篇)
  14. Linux系统运维必备技能
  15. java版停车系统(纯数据结构,无数据库)
  16. 小福利,巧用excel的if函数制作乘法口诀表以及if函数嵌套使用
  17. 用jquery-easyui的布局layout写后台管理页面
  18. 光线追踪技术的理论和实践(面向对象)【转载】
  19. android 方向传感器Sensor或指南针罗盘研究
  20. 知识分享||PCB线路板六层板的的常规叠层结构

热门文章

  1. 这个AI“大师级”简笔画水平,惊艳到了网友:竟然不用GAN
  2. 特斯拉大半夜「见鬼」!空无一人的路上,它却看见「幽灵」秒刹车
  3. 阿里洛神云网络这局妥了!集齐“软硬结合、创新NFV、智能管理”三张牌
  4. 只用2页纸,北大数学校友攻破计算机30年难题!过程浅显直白,看懂仅需线性代数基础...
  5. 各类操作系统的TTL字段值
  6. 从地址字符串获取省市区信息
  7. PageRank的基本原理以及个性化PageRank在推荐系统的应用
  8. maven创建webapp项目
  9. 解决linux中Kipmi0进程对CPU使用率很高问题
  10. DataBinder