2014-09-23 217 views
-1

我有一个网站,这个.htaccess文件内部服务器错误

**# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp 
# 
# This is used with Apache WebServers 
# 
# For this to work, you must include the parameter 'Options' to 
# the AllowOverride configuration 
# 
# Example: 
# 
# <Directory "/usr/local/apache/htdocs"> 
# AllowOverride Options 
# </Directory> 
# 
# 'All' with also work. (This configuration is in the 
# apache/conf/httpd.conf file) 

# The following makes adjustments to the SSL protocol for Internet 
# Explorer browsers 

<IfModule mod_setenvif.c> 
    <IfDefine SSL> 
    SetEnvIf User-Agent ".*MSIE.*" \ 
      nokeepalive ssl-unclean-shutdown \ 
      downgrade-1.0 force-response-1.0 
    </IfDefine> 
</IfModule> 

# If Search Engine Friendly URLs do not work, try enabling the 
# following Apache configuration parameter 
# 
# AcceptPathInfo On 

# Fix certain PHP values 
# (commented out by default to prevent errors occuring on certain 
# servers) 
# 
#<IfModule mod_php5.c> 
# php_value session.use_trans_sid 0 
# php_value register_globals 1 
#</IfModule>** 

现在它geerating斯特朗样的错误我转我的服务器错误行的是 服务器要求错误:register_globals的是关闭你的PHP配置。这可以在您的php.ini配置文件或目录目录中的.htaccess文件中启用。 可以有一个人帮助我弄清楚这个错误

+0

是什么不清楚或者错误信息? – PeeHaa 2014-09-23 14:41:01

+0

这不是一个PHP的问题在将来你应该使用Apache的这个问题。 – mschuett 2014-09-23 15:16:03

回答

0
register_globals = "on” 

设置以上在php.ini文件,然后重新启动Apache。确保改变这一行,而不是仅仅将它添加到顶部,或者当它再次设置在它下面时它会被覆盖。

php.ini文件通常位于/etc/php.ini中

+0

register_globals = on的 了allow_url_fopen =在 safe_mode设置为禁用该代码的的public_html/x_php.ini – vicky 2014-09-23 15:11:45

+0

但还是同样的问题,里面写有 – vicky 2014-09-23 15:12:46

+0

玉以及那么对你来说,我们真的不能做任何事情,直到你给我们一些更多的信息。唯一需要尝试的是取消注释代码块,看看是否出于某种奇怪的原因。 – mschuett 2014-09-23 15:13:45