|
我刚装了FEDROA CORE 4.0,包括了APACHE SERVER 2.0和PHP.我试运行了APACHE SERVER,可以成功的看到测试页,但是无法识别PHP文件.我写了一个短的INDEX.PHP文件,内容如下:
<?php
phpinfo();
?>
但系统显示如下:
403 Forbidden
You don't have permission to access /index.php on this server.
Apache/2.0.54 (Fedora) Server at zhang-linux Port 80
我检查了/etc/httpd/conf/httpd.conf,for php,文件中包含一行:
Include conf.d/*.conf
在/etc/httpd/conf.d/php.conf中,内容包括:
LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php
AddType application/x-httpd-php-source .phps
请各位老大帮我看一下,哪里有问题.我已经disable firewall and SElinux.
index.html和index.php都在/var/www/manual目录下,有同样的权限.
#ls -l index*
-rwxrwxrwx 1 root root 603 2005-02-20 index.html
-rw-r--r-- 1 root root 7517 2005-02-20 index.html.de
-rw-r--r-- 1 root root 7434 2005-02-20 index.html.en
-rw-r--r-- 1 root root 7815 2005-03-31 index.html.es
-rw-r--r-- 1 root root 7624 2005-02-27 index.html.fr
-rw-r--r-- 1 root root 7431 2005-02-20 index.html.ja.euc-jp
-rw-r--r-- 1 root root 7164 2005-02-20 index.html.ko.euc-kr
-rw-r--r-- 1 root root 7487 2005-02-20 index.html.ru.koi8-r
-rwxrwxrwx 1 root root 20 3月 8 00:26 index.php |
|