raksmart活动促销

分享

写回答

发帖

不知何故忽然出现500错误

回答|共 25 个

bbs.ilzp.com

发表于 2009-6-12 16:35:42 | 显示全部楼层

我的后台可以访问,会不会是LP官方对这个网站的权限做了限制?

一路同行

发表于 2009-6-12 16:43:52 | 显示全部楼层

这不是权限问题,是.htaccess规则有问题,shopex以前测试过是没有问题的,你安装的是哪个版本?

bbs.ilzp.com

发表于 2009-6-12 16:50:18 | 显示全部楼层

当前版本4.8.4.24282,应该是最新版本的。

bbs.ilzp.com

发表于 2009-6-12 20:36:50 | 显示全部楼层

重新装了,还是不行。
被清空的.htaccess在shopex重新安装之后,仍然是一个空白的文件。

[ 本帖最后由 bbs.ilzp.com 于 2009-6-12 08:41 PM 编辑 ]

bbs.ilzp.com

发表于 2009-6-12 23:26:00 | 显示全部楼层

看来只有向官方寻求解决了。

bbs.ilzp.com

发表于 2009-6-13 00:58:04 | 显示全部楼层

官方给予的回复,烦请社区版主或路过站长帮忙分析翻译一下,感激不尽!

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.

Best regards,
Flora Lui
support@lunarpages.com

Phone: 1-714-521-8150
Fax: 1-714-521-8195
24 hour Network Status Line: 1-562-697-8106
Website - http://lunarpages.com
Online Community - http://lunarforums.com
Online Tutorials - http://lunarpages.com/tutorials

一路同行

发表于 2009-6-13 09:12:41 | 显示全部楼层

跟这里是一样的
http://bbs.idcspy.com/thread-5539-1-1.html

bbs.ilzp.com

发表于 2009-6-13 09:37:54 | 显示全部楼层

谢谢斑竹一路同行,但按照第二种方法,仍然无法解决。

“在.htaccess文件中不能包含php_values 和 php_flags,否则会出现500错误,如果有这样的语句,需要移动到php.ini,然后在.htaccess文件中添加
suPHP_ConfigPath /home/username/public_html”

在.htaccess文件中没有包含php_values 和 php_flags两个文件,我尝试在.htaccess文件中添加那一条语句,仍然不见恢复。奇怪的是,删除掉.htaccess文件可以访问网站首页,及后台的全部页面,这般看来,确实是.htaccess文件配置出现严重错误。还请斑竹指点迷津。

一路同行

发表于 2009-6-13 09:56:33 | 显示全部楼层

如果可以,你把账户发给我,我帮你测试一下

bbs.ilzp.com

发表于 2009-6-14 00:29:29 | 显示全部楼层

回复 19# 的帖子

已发短消息给你。
另,我正在向LP的support提交Ticket,亦希望尽快解决此问题。
他们帮助删除了.htaccess里面的错误程序,但似乎问题并没有得到进一步解决,除了首页和后台可以访问,网站其他页面都出现404错误。

我在查询Shopex网店系统安装环境说明里看到:
[http://help.shopex.cn/help_shopex48-1235796723-11378.html]
2、Linux/Unix 平台
在此平台下,需要安装的软件一般为:
Apache + PHP + MySQL + Zend Optimizer
软件版本要求如下:
Apache2以上 版本
PHP 4.3及以上版本(非安全模式下运行)
Zend Optimizer2.5.7 及以上版本
MySQL 4.0以上版本


但是LP的虚拟主机Apache version  1.3.41 (Unix),是否与这个版本的差异性有直接关系?
如果是这样的话,先前怎么没出现任何问题呢?关键是后台的访问一切正常。

[ 本帖最后由 bbs.ilzp.com 于 2009-6-14 12:32 AM 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则