分享

写回答

发帖

[经验] 两段代码,godaddy空间完全加速!

回答|共 98 个

smmiracle

发表于 2011-6-27 10:36:59 | 显示全部楼层

原帖由 lwbo1987 于 2011-6-27 09:30 AM 发表
php5.ini里面添加内容了吗?楼主你的php版本是php5吗,不是的不需要修改为php5的



我的控制中心显示是php5版本的,但是根目录里只有php.ini 没有php5.ini,于是我就把名字直接改了。
然后在里面加上了代码,具体如下 现在测试也是压缩了。但是就是没办法看REPORTS。报500错误,我跟客服联系,他说他们没有这个问题,我又详细的描述了一遍,现在正在等回复呢。


register_globals = off
allow_url_fopen = on

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
output_buffering = Off
output_handler =
zlib.output_compression = On
zlib.output_compression_level = 6  

; Only uncomment zend optimizer lines if your application requires Zend Optimizer support

;[Zend]
;zend_optimizer.optimization_level=15
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so


; -- Be very careful to not to disable a function which might be needed!
; -- Uncomment the following lines to increase the security of your PHP site.

;disable_functions = "highlight_file,ini_alter,ini_restore,openlog,passthru,
;                      phpinfo, exec, system, dl, fsockopen, set_time_limit,
;                     popen, proc_open, proc_nice,shell_exec,show_source,symlink"
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2011-6-27 10:41:02 | 显示全部楼层

回复 61# 的帖子

这个还没有遇到过,等待客服回复吧
回复 支持 反对

使用道具 举报

smmiracle

发表于 2011-6-27 12:46:13 | 显示全部楼层

原帖由 lwbo1987 于 2011-6-27 10:41 AM 发表
这个还没有遇到过,等待客服回复吧


understand you are unable to check your free web stats and are getting a 500 Internal Server Error when trying to do so.  I found that you have 3 controls file in your hosting account.  A .htaceess, php.ini, and a php5.ini.  I disabled all the files and I was able to access your free web stats without an issue.  Unfortunately we do not provide any type of support for customer scripting so you will need to go through these three files to determine which one is conflicting with the web stats and preventing your access.  

这就是客服的回复,为什么别人的可行,我的就不行呢。。。我再试试
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2011-6-27 13:50:58 | 显示全部楼层

回复 63# 的帖子

客服说你的网站下存在3个配置文件,.htaceess, php.ini, and  php5.ini,从而导致500错误
RAKSmart
回复 支持 反对

使用道具 举报

smmiracle

发表于 2011-6-27 14:14:22 | 显示全部楼层

对,我去掉.htaceess,and  php5.ini,就好了,但是也没有压缩了啊
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2011-6-27 14:46:45 | 显示全部楼层

回复 65# 的帖子

你就这2个文件吗,怎么godaddy说你还存在php.ini 文件
RAKSmart
回复 支持 反对

使用道具 举报

smmiracle

发表于 2011-6-27 16:49:44 | 显示全部楼层

那个PHP.INI 是系统自带的,我是PHP5的系统 ,不知道为什么只有PHP.INI而不是 PHP5.INI,我把PHP.INI删除后,也还是有问题,只要把.htaceess,删了 就没有问题了,不管你是留下哪个.ini文件。
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2011-6-27 16:53:18 | 显示全部楼层

回复 67# 的帖子

应该是你的.htaccess里面的代码有问题的,是不是在根目录下
回复 支持 反对

使用道具 举报

smmiracle

发表于 2011-6-27 21:59:07 | 显示全部楼层

是在根目录下,里面的代码是直接拷的。 我是用记事本编辑的,内容如下:
addhandler x-httpd-php5-cgi .php .html .htm .js
回复 支持 反对

使用道具 举报

bluebad

发表于 2011-6-27 23:09:31 | 显示全部楼层

不知道你网站用的什么程序,看你说的应该是.htaccess
先设代码为addhandler x-httpd-php5-cgi .php
试试,
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则