服务器开关上的内部服务器错误

时间:2014-09-23 14:38:07

标签: 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 "/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 strang类错误我已经切换我的服务器错误行了 服务器要求错误:PHP配置中禁用了register_globals。这可以在php.ini配置文件或catalog目录中的.htaccess文件中启用。 有人可以帮我解决这个错误

1 个答案:

答案 0 :(得分:0)

register_globals = "on”

在php.ini文件中设置上面的内容然后重启apache。请务必更改此行,而不是仅将其添加到顶部,否则当它再次设置在其下方时会被覆盖。

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