当前位置: 技术问答>linux和unix
在linux下配的apache的服务,但是读documeroot下的html文件可以,但是.php文件就不行,为什么呢?
来源: 互联网 发布时间:2015-10-14
本文导语: 读php文件时报的错是 forbidden: you don't have promission to access/index.php on this server 请高手帮忙 | 权限问题 | 这是我机器上的php的设置 # # PHP is an HTML-embedded scripting languag...
读php文件时报的错是 forbidden:
you don't have promission to access/index.php on this server
请高手帮忙
you don't have promission to access/index.php on this server
请高手帮忙
|
权限问题
|
这是我机器上的php的设置
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php4_module modules/libphp4.so
#
# Cause the PHP interpreter handle files with a .php extension.
#
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php4_module modules/libphp4.so
#
# Cause the PHP interpreter handle files with a .php extension.
#
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php