PHP+APACHE2 deployment-can access TXT but fastcgi PHP is 403 inaccessible? Solutions

Source: Internet
Author: User
PHP+APACHE2 deployment--access to TXT but fastcgi PHP is 403 inaccessible??
Java is familiar, PHP written HelloWorld only, deployment is weak!!! (Help others to modify the project, the Code is PHP)
HTTPD Test said the configuration is normal!! Httpd.exe \ t
Manually check my several directories as if the permissions are normal: including the Web and folder directory, PHP installation directory and executable files, apache2.2 folder permissions seem to be normal;

# #第一种情况, the server has been started;
# #可以访问txt和html, but can not access PHP, prompt 403;
# #httpd. conf is configured as follows:
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 [Email protected]documentroot "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 any 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, this is weird: the server has started:
# #php可以访问helloworld, TXT can also be accessed, but I really want to access the "most PHP file" seems to have not been processed by this handler;
# #logs \errors.log also did not record what the problem was;

# 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 to Apache's modules folder
LoadModule Fcgid_module modules/mod_fcgid.so
Fcgidinitialenv PHPRC "e:/php"
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.