juangyh
2008-09-23, 02:56 PM
有人能幫忙 DEBUG一下嗎:heart:
httpd.conf (http://www.zshare.net/download/192570927c6cc8cb/) http://www.zshare.net/download/192570927c6cc8cb/
[root@localhost ~]# /usr/local/apache2/bin/apachectl restart
Syntax error on line 372 of /usr/local/apache2/conf/httpd.conf:
AllowOverride not allowed here
line 372
## AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit Indexes#
AllowOverride None
贊助商連結
bx2aa
2008-09-23, 07:10 PM
有人能幫忙 DEBUG一下嗎:heart:
httpd.conf (http://www.zshare.net/download/192570927c6cc8cb/) http://www.zshare.net/download/192570927c6cc8cb/
[root@localhost ~]# /usr/local/apache2/bin/apachectl restart
Syntax error on line 372 of /usr/local/apache2/conf/httpd.conf:
AllowOverride not allowed here
line 372
## AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit Indexes#
AllowOverride None
看不出問題.
若有就是沒包在
<Directory ??????>
</Directory>
裏
D2K8X8
2008-09-23, 08:24 PM
我在猜
# Options FileInfo AuthConfig Limit Indexes#<--這個應該是下一行的
AllowOverride None
把它註記掉應該就ok了
juangyh
2008-09-24, 11:05 AM
感謝大家 錯誤訊息沒有了 還想請教一下
我在htdos放了phpinfo.php 不過RUN不起來
會出現
Forbidden
You don't have permission to access /phpinfo.php on this server.
PHP配置應該沒問題
PHP 5.1.6 (cli) (built: May 24 2008 14:07:53)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
httpd.conf
http://www.zshare.net/info.html?19307855-cf3ed355ffb79d434ad914d4913c11e7
bx2aa
2008-09-24, 01:24 PM
會出現
Forbidden
You don't have permission to access /phpinfo.php on this server.
PHP配置應該沒問題
PHP 5.1.6 (cli) (built: May 24 2008 14:07:53)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
httpd.conf
http://www.zshare.net/info.html?19307855-cf3ed355ffb79d434ad914d4913c11e7
ls -l /usr/local/apache2/phpbin/php 有沒有存取權
juangyh
2008-09-24, 01:38 PM
-rwxr-xr-x 1 root root 15528196 Sep 24 12:03 /usr/local/apache2/phpbin/php有耶@@