php+apache2部署-可以访问txt但是fastcgi的php却403访问不了?解决办法
php+apache2部署--可以访问txt但是fastcgi的php却403访问不了??
java比较熟悉、php写过helloworld而已、 部署方面是弱项!!! (帮人家修改项目、代码用的是php)
httpd测试说配置正常!! httpd.exe \t
手动查我的几个目录都好像权限正常:包括web跟文件夹目录、php安装目录和可执行文件、apache2.2的文件夹权限好像也正常;
##第一种情况,服务器已经启动;
##可以访问txt和html,但是访问不了php,提示403;
##httpd.conf的配置如下:
- PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--># install php handlerLoadModule php5_module "E:/PHP/php5apache2_2.dll" AddType application/x-httpd-php .phpAddType application/x-httpd-php .html ServerRoot "E:/Program Filesn/Apache2.2"Listen 10086LoadModule actions_module modules/mod_actions.soLoadModule alias_module modules/mod_alias.soLoadModule asis_module modules/mod_asis.soLoadModule auth_basic_module modules/mod_auth_basic.soLoadModule authn_default_module modules/mod_authn_default.soLoadModule authn_file_module modules/mod_authn_file.soLoadModule authz_default_module modules/mod_authz_default.soLoadModule authz_groupfile_module modules/mod_authz_groupfile.soLoadModule authz_host_module modules/mod_authz_host.soLoadModule authz_user_module modules/mod_authz_user.soLoadModule autoindex_module modules/mod_autoindex.soLoadModule cgi_module modules/mod_cgi.soLoadModule dir_module modules/mod_dir.soLoadModule env_module modules/mod_env.soLoadModule include_module modules/mod_include.soLoadModule isapi_module modules/mod_isapi.soLoadModule log_config_module modules/mod_log_config.soLoadModule mime_module modules/mod_mime.soLoadModule negotiation_module modules/mod_negotiation.soLoadModule setenvif_module modules/mod_setenvif.so<ifmodule><ifmodule>User daemonGroup daemon</ifmodule></ifmodule>ServerAdmin [email protected]DocumentRoot "G:/etone_www"<directory></directory> Options FollowSymLinks AllowOverride None Order deny,allow allow from all<directory> Options Indexes FollowSymLinks ExecCGI Includes AllowOverride None Order allow,deny Allow from all</directory><ifmodule dir_module> DirectoryIndex index.php default.php index.html</ifmodule><filesmatch> Order allow,deny Deny from all Satisfy All</filesmatch>ErrorLog "logs/error.log"LogLevel warn<ifmodule log_config_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common <ifmodule logio_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </ifmodule> CustomLog "logs/access.log" common</ifmodule><ifmodule alias_module> ScriptAlias /cgi-bin/ "E:/Program Filesn/Apache2.2/cgi-bin/"</ifmodule><ifmodule cgid_module></ifmodule><directory filesn> AllowOverride None Options None Order allow,deny Allow from all</directory>DefaultType text/plain<ifmodule mime_module> TypesConfig conf/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz</ifmodule><ifmodule ssl_module>SSLRandomSeed startup builtinSSLRandomSeed connect builtin</ifmodule>
##第二种情况使用handler、这个比较诡异:服务器已经启动:
##php可以访问helloworld、txt也可以访问 、但是我真正要访问的“大多数php文件”都好像没经过这个handler的处理;
##logs\errors.log也没记录是什么问题;
# install php handler
#LoadModule php5_module "E:/PHP/php5apache2_2.dll"
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php .html
# install php fastcgi 我已经复制和下载到apache的modules文件夹
LoadModule fcgid_module modules/mod_fcgid.so
FcgidInitialEnv PHPRC "E:/php"

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

During the development process of Python, we often encounter module not found errors. The specific manifestation of this error is that Python reports one of two errors: ModuleNotFoundError or ImportError when importing the module. This error is very annoying and can cause the program to not run properly, so in this article, we will explore the causes of this error and how to solve it. ModuleNotFoundError and ImportError in Pyth

In the Java9 version, the Java language introduced a very important concept: module. If you are familiar with the modular management of JavaScript code, you should feel familiar when you see the modular management of Java 9. 1. What is Javamodule? Somewhat similar to packages in Java, modules introduce another level of grouping of Java code. Each such group (module) contains many sub-packages. Declare the folder and its subfolders as a module by adding the file module-info.java to the root of a module's source code file package. The file syntax

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code

1. First confirm the Linux system kernel [root@localhost~]#uname-r-p2.6.18-194.el5i6862. Go to http://sourceforge.net/projects/linux-ntfs/files/ to download the rpm package of the corresponding kernel. If you can't find the exact same one, you can find the closest one. I couldn't find the exact same one. What I downloaded is: kernel-module-ntfs-2.6.18-128.1.1.el5-2.1.27-0.rr.10.11.i686.rpm3. Install the rpm package rpm-ivhkernel -m

Vuex mainly consists of the following five parts: State, Getter, Mutation, Action, and Module. Below I will introduce Vuex Module-state warehouse segmentation. I hope it will be helpful to friends in need!

Python's os module is one of the standard libraries used for interacting with the operating system. It provides many useful functions and variables for working with files and directories. The following are the usage of some common os module functions: 1. Get the current working directory: importoscwd=os.getcwd()print(cwd) 2. Switch the current working directory: importosos.chdir('/path/to/new/directory' )3. List all files and subdirectories in the directory: importosfiles=os.listdir('/path/to/dire

不用数据库来实现用户的简单的下载,代码如下,但是却不能下载,请高手找下原因,文件路劲什么的没问题。

图片消失如何解决先是图片文件上传$file=$_FILES['userfile']; if(is_uploaded_file($file['tmp_name'])){$query=mysql_query("INSERT INTO gdb_banner(image_src ) VALUES ('images/{$file['name'
