|
我刚装了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. |
|