Apache設定問題請教 - PCZONE 討論區

返回   PCZONE 討論區 > ▲ -- 電 腦 軟 體 討 論 區 > -- FreeBSD & Linux 討 論 版


PCZONE 討論區



通知

-- FreeBSD & Linux 討 論 版 因為本站採用 FreeBSD 作業系統,所以自己本身也多學了一些技巧,希望各位在這裡互相討論 Unix 作業系統及程式等相關問題。

8591 ~ 591 ~twbbs
Apache設定問題請教
有人能幫忙 DEBUG一下嗎
httpd.conf 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


回覆
會員
回覆: Apache設定問題請教
引用:
作者: juangyh 觀看文章
有人能幫忙 DEBUG一下嗎
httpd.conf 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>
回覆
會員
回覆: Apache設定問題請教
我在猜
引用:
# Options FileInfo AuthConfig Limit Indexes#<--這個應該是下一行的
AllowOverride None
把它註記掉應該就ok了
回覆
8591 ~ 591 ~twbbs
回覆: Apache設定問題請教
感謝大家 錯誤訊息沒有了 還想請教一下
我在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?1930...d914d4913c11e7
回覆
會員
回覆: Apache設定問題請教
引用:
作者: juangyh 觀看文章
會出現
語法:
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?1930...d914d4913c11e7
ls -l /usr/local/apache2/phpbin/php 有沒有存取權
回覆
8591 ~ 591 ~twbbs
回覆: Apache設定問題請教
-rwxr-xr-x 1 root root 15528196 Sep 24 12:03 /usr/local/apache2/phpbin/php有耶@@

回覆
主題工具







 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。