raksmart活动促销

分享

写回答

发帖

紧急求急,空间上所有的网站都不能登录.

回答|共 30 个

bizsource

发表于 2007-11-2 14:59:27 | 显示全部楼层

唉,我的还没搞掂,无从下手,小调你的Q 号是多少?我加你.我的QQ75263632,我让你帮我看看我的空间!

bizsource

发表于 2007-11-2 16:52:50 | 显示全部楼层

小调在不在啊,能不能帮个忙啊?

bizsource

发表于 2007-11-2 23:18:49 | 显示全部楼层

原帖由 忧伤b小调 于 2007-11-2 11:11 AM 发表
好了,恢复正常了.有个文件夹是777,我没注意看到,现在改成755,问题全部解决.

不知小调是否可以把问题解决的过程写出来,?
我是真真正正在等着你的回复.
我也真的佩服和感谢你那种热情和助人为乐的精神.

大漠孤狼

发表于 2007-11-2 23:23:55 | 显示全部楼层

如果是因为第一个帖子说的原因,把.htaccess里面添加的内容注释掉就没问题了

如果文件夹权限不对要全部修改掉,然后检查下属住对不对

忧伤b小调

发表于 2007-11-2 23:32:09 | 显示全部楼层

原帖由 bizsource 于 2007-11-2 11:18 PM 发表

不知小调是否可以把问题解决的过程写出来,?
我是真真正正在等着你的回复.
我也真的佩服和感谢你那种热情和助人为乐的精神.


过奖了.希望的回答对你有用.

你先这样检查:

  1,进入"File Manager"查看"public_html"权限是不是"755"如果不是,请修改成"755"  然后浏览看看能不能打开,如果打不开,在看下面.
  2,然后进入"public_html"目录,看看有没有".htaccess"文件,如果有,删掉它.(记得先备份).

  刚开始我的"public_html"文件属性是 "777"(我没注意是777权限),结果,导致主域名下网站无法浏览,添加的网站竟然可以浏览..后来我修改成"755"(我还没注意到.htaccess,文件),结果可以浏览".html"文件,但是目录下".php"文件无法浏览,最后我检查".htaccess"文件,我干脆就直接删了它,然后空间就完全恢复正常了.

  你试一下,看看对你的有没有用.

[ 本帖最后由 忧伤b小调 于 2007-11-2 11:36 PM 编辑 ]

bizsource

发表于 2007-11-3 01:04:35 | 显示全部楼层

我的"public_html"权限是不是"755".问题在于.htaccess"文件,删掉它之后,原来所有的网站都正常访问了(狂喜,也特别感谢小调).
可是.htaccess"文件,删掉它之后,安装OSC程序就不行了,LP自动安装OSC后,运行出现如下错误提示.
Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

我是不是应该把.htaccess文件重新传到空间吗,真担心又出现内部错误.我的.htaccess 文件如下
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.sourcingchina.net(主站)
AuthUserFile /home/sourc11/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/sourc11/public_html/_vti_pvt/service.grp
suPHP_ConfigPath /home/sourc11/public_htmlAddHandler x-httpd-php5 .php
RAKSmart

忧伤b小调

发表于 2007-11-3 09:43:41 | 显示全部楼层

原帖由 bizsource 于 2007-11-3 01:04 AM 发表
我的"public_html"权限是不是"755".问题在于.htaccess"文件,删掉它之后,原来所有的网站都正常访问了(狂喜,也特别感谢小调).
可是.htaccess"文件,删掉它之后,安装OSC程序就不行了,LP自动安装OSC后,运行出现如下错误提 ...



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

The .htaccess file is automatically generated by the system, if it is delete, it will be reproduced again on your account.


理解上面这段话.
LP客服给我的答案.

bizsource

发表于 2007-11-3 17:33:17 | 显示全部楼层

Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

请问小调,上面这段话如何理解?
这是我空间里原来的网站全部恢复正常后,新增加一个CMS程序到根目录下一个文件夹里,在浏览器输入URL之后出现这段话的.

bizsource

发表于 2007-11-3 17:35:12 | 显示全部楼层

是不是php.ini 和.htaccess 这两个文件当中那个配置不当引起吗 ?

忧伤b小调

发表于 2007-11-3 21:36:09 | 显示全部楼层

抱歉,刚刚才看到此帖回复.

你去检查 "php.ini "文件里的"register_globals ",这应该是关闭的,即"register_globals = Off" 先 检查一下,你的根目录下"php.in"文件.
您需要登录后才可以回帖 登录 | 注册

本版积分规则