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"

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

在Python的開發過程中,常常會遇到找不到模組的錯誤。這個錯誤的具體表現就是Python在導入模組的時候報出ModuleNotFoundError或ImportError這兩個錯誤之一。這種錯誤很困擾,會導致程式無法正常運作,因此在這篇文章裡,我們將會探討這個錯誤的原因及其解決方法。 ModuleNotFoundError和ImportError在Pyth

在Java9版本中Java語言引入了一個非常重要的概念:模組(module)。如果對javascript程式碼模組化管理比較熟悉的小夥伴,看到Java9的模組化管理,應該會有似曾相識的感覺。一、什麼是Javamodule?與Java中的package有些類似,module引入了Java程式碼分組的另一個層級。每個這樣的分組(module)都包含許多子package套件。透過在一個模組的原始碼檔案package的根部,加入檔案module-info.java來聲明該資料夾及其子資料夾為一個模組。該文件語法

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

1.先確認Linux系統核心[root@localhost~]#uname-r-p2.6.18-194.el5i6862.到http://sourceforge.net/projects/linux-ntfs/files/下載對應核心的rpm包如果找不到完全一致的,可以找最相近的。我的沒有找到完全一致的,我下載的是:kernel-module-ntfs-2.6.18-128.1.1.el5-2.1.27-0.rr.10.11.i686.rpm3.安裝rpm包rpm-ivhkernel -m

vuex主要包含以下五個部分:State、Getter 、Mutation 、Action 、Module ,以下就跟大家介紹Vuex Module-狀態倉庫分割,希望對需要的朋友有幫助!

Python的os模組是用於與作業系統互動的標準函式庫之一,它提供了許多有用的函數和變量,以便處理檔案和目錄。以下是一些常見的os模組函數的用法:1.取得目前工作目錄:importoscwd=os.getcwd()print(cwd)2.切換目前工作目錄:importosos.chdir('/path/to/new/directory' )3.列出目錄中的所有檔案和子目錄: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'

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