Php 服务器交换机上的内部服务器错误

Php 服务器交换机上的内部服务器错误,php,Php,我有一个带有这个.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 "

我有一个带有这个.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>**
**$Id:.htaccess版本1.3 2003/06/12 10:53:20 hpdl Exp
#
#这用于Apache Web服务器
#
#要使其工作,必须将参数“Options”包含到
#AllowOverride配置
#
#例如:
#
# 
#允许超车选项
# 
#
#“所有”也都有工作。(此配置位于
#apache/conf/httpd.conf文件)
#下面对Internet的SSL协议进行了调整
#浏览器浏览器
SetEnvIf用户代理“*MSIE.*”\
nokeepalive ssl不干净关闭\
降级-1.0力响应-1.0
#如果搜索引擎友好的URL不起作用,请尝试启用
#以下是Apache配置参数
#
#上的AcceptPathInfo
#修复某些PHP值
#(默认情况下注释掉,以防止在某些
#服务器)
#
#
#php_值session.use_trans_sid 0
#php_值寄存器_全局1
#**
现在它是一种错误,我已经切换了我的服务器,错误行是 服务器要求错误:在PHP配置中禁用了register_globals。这可以在php.ini配置文件或目录目录中的.htaccess文件中启用。 有人能帮我解决这个错误吗

register_globals = "on”
在php.ini文件中设置上述内容,然后重新启动apache。请确保更改此行,而不是仅将其添加到顶部,否则在其下方再次设置时,它将被覆盖


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

错误消息是否不清楚?这不是php的问题,无论如何,在将来,您应该使用apache解决此问题。register\u globals=On allow\u url\u fopen=On safe\u mode=Off此代码是在公共\u html/x\u php.ini中编写的,但仍然存在相同的问题那么在你给我们提供更多信息之前,我们真的无法为你做任何事情。唯一需要尝试的另一件事是取消对代码块的注释,看看这是否是出于某种奇怪的原因。为了安全起见,停止并启动apache,就像刚刚运行重新启动一样。我们有一个htaccess文件和一条错误消息,它不是正确的错误消息。如果您所说的关于php.ini的内容是正确的,那么您就不会得到这个错误。我刚刚注意到你在htaccess之前和结尾有两个*,这是真的还是打字错误?