php - XAMPP: Phpmyadmin doesn't work with FastCGI -


i have local installation of xampp. reasons (java-php-bridge) have use fastcgi. set using guide: http://www3.umoncton.ca/dashboard/docs/use-php-fcgi.html

this worked fine cannot access http://localhost/phpmyadmin/ error is:

access forbidden!

new xampp security concept:

access requested directory available local network.

this setting can configured in file "httpd-xampp.conf".

here "httpd-xampp.conf" file:

# # xampp settings #  <ifmodule env_module>     setenv mibdirs "c:/xampp/php/extras/mibs"     setenv mysql_home "\\xampp\\mysql\\bin"     setenv openssl_conf "c:/xampp/apache/bin/openssl.cnf"     setenv php_pear_sysconf_dir "\\xampp\\php"     setenv phprc "\\xampp\\php"     setenv tmp "\\xampp\\tmp" </ifmodule>  # # php-module setup # loadfile "c:/xampp/php/php5ts.dll" loadfile "c:/xampp/php/libpq.dll"  #loadmodule php5_module "c:/xampp/php/php5apache2_4.dll" loadmodule fcgid_module modules/mod_fcgid.so   #<filesmatch "\.php$"> #    sethandler application/x-httpd-php #</filesmatch> #<filesmatch "\.phps$"> #    sethandler application/x-httpd-php-source #</filesmatch> fcgidinitialenv phprc "c:/xampp/php" addhandler fcgid-script .php fcgidwrapper "c:/xampp/php/php-cgi.exe" .php   # # php-cgi setup # #<filesmatch "\.php$"> #    sethandler application/x-httpd-php-cgi #</filesmatch> #<ifmodule actions_module> #    action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe" #</ifmodule>   <ifmodule php5_module>     phpinidir "c:/xampp/php" </ifmodule>  <ifmodule mime_module>     addtype text/html .php .phps </ifmodule>  scriptalias /php-cgi/ "c:/xampp/php/" <directory "c:/xampp/php">     allowoverride none     options none     require denied     <files "php-cgi.exe">           require granted     </files> </directory>  <directory "c:/xampp/cgi-bin">     <filesmatch "\.php$">         sethandler cgi-script     </filesmatch>     <filesmatch "\.phps$">         sethandler none     </filesmatch> </directory>  <directory "c:/xampp/htdocs/xampp">     <ifmodule php5_module>         <files "status.php">             php_admin_flag safe_mode off         </files>     </ifmodule>     allowoverride authconfig </directory>  <ifmodule alias_module>     alias /licenses "c:/xampp/licenses/"     <directory "c:/xampp/licenses">         options +indexes         <ifmodule autoindex_color_module>             directoryindextextcolor  "#000000"             directoryindexbgcolor "#f8e8a0"             directoryindexlinkcolor "#bb3902"             directoryindexvlinkcolor "#bb3902"             directoryindexalinkcolor "#bb3902"         </ifmodule>         require granted    </directory>      alias /phpmyadmin "c:/xampp/phpmyadmin/"     <directory "c:/xampp/phpmyadmin">         allowoverride authconfig         require granted     </directory>      alias /webalizer "c:/xampp/webalizer/"     <directory "c:/xampp/webalizer">         <ifmodule php5_module>             <files "webalizer.php">                 php_admin_flag safe_mode off             </files>         </ifmodule>         allowoverride authconfig         require granted     </directory> </ifmodule>  # # new xampp security concept # <locationmatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">         #require local     require granted     errordocument 403 /error/xampp_forbidden.html.var </locationmatch> 

does have idea?

add httpd-xampp.conf

options execcgi

alias /phpmyadmin "d:/xampp/phpmyadmin/"     <directory "d:/xampp/phpmyadmin">     options execcgi         allowoverride authconfig         require granted     </directory> 

Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -