鍍金池/ 問答/Linux/ apache 2.4.29 編譯安裝后403

apache 2.4.29 編譯安裝后403

[root@test_c12 bin]# ./apachectl -v
Server version: Apache/2.4.29 (Unix)
Server built: Dec 19 2017 18:36:2

編譯安裝apache2.4.19,訪問頁面,403

網(wǎng)上搜了一些方法
修改了httpd-vhost.conf http.conf
最后還是無效

You don't have permission to access / on this server.

回答
編輯回答
舊酒館

修改文件沒成功,把權(quán)限修改下.chmod 命令

2017年10月22日 21:47
編輯回答
苦妄
#AddType下面追加    
AddType application/x-httpd-php .php




<Directory "your directory here">
   Order allow,deny
   Allow from all #這句話
   # New directive needed in Apache 2.4.3: 
   Require all granted #加上這句話
</Directory>
2017年11月22日 06:32