Php + apache2 deployment -- attackers can access txt, but fastcgi's php cannot access 403 ?? Java is familiar, php has written helloworld, and deployment is weak !!! (Php is used to help users modify projects and code.) The httpd test says the configuration is normal !! Http php + apache2 deployment -- txt access is allowed, but php of fastcgi cannot be accessed by 403 ??
Java is familiar, php has written helloworld, and deployment is weak !!! (Php is used to help users modify projects and code)
In the httpd test, the configuration is normal !! Httpd.exe \ t
The permission for manually checking several directories seems to be normal: including the web and folder directories, php installation directories, executable files, and apache2.2 folder permissions also seem to be normal;
# First, the server has been started;
# If you can access txt and html, but cannot access php, the error 403 is displayed;
# Httpd. conf configuration:
PHP code
# 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
User daemonGroup daemon
ServerAdmin yangzhijiang675@gmail.comDocumentRoot "G:/etone_www"
Options FollowSymLinks AllowOverride None Order deny,allow allow from all
Options Indexes FollowSymLinks ExecCGI Includes AllowOverride None Order allow,deny Allow from all
DirectoryIndex index.php default.php index.html
Order allow,deny Deny from all Satisfy All
ErrorLog "logs/error.log"LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
CustomLog "logs/access.log" common
ScriptAlias /cgi-bin/ "E:/Program Filesn/Apache2.2/cgi-bin/"
AllowOverride None Options None Order allow,deny Allow from all
DefaultType text/plain
TypesConfig conf/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz
SSLRandomSeed startup builtinSSLRandomSeed connect builtin
# Handler is used in the second case. this is strange: the server has been started:
# Php can access helloworld and txt, but the "most php files" that I really want to access do not seem to have been processed by this handler;
# What is the problem that logs \ errors. log does not record;
# 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 I have copied and downloaded it to the modules folder of apache
LoadModule fcgid_module modules/mod_fcgid.so
FcgidInitialEnv PHPRC "E:/php"