2014-09-23 353 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