Selasa, 22 Maret 2016

New xampp security concept: Access Forbidden Error 403 - Windows 7 - phpMyAdmin

I have downloaded and installed XAMPP 1.8.1 for Windows on Windows 7 Ultimate. I have set up XAMPP to run together with IIS as per these instructions
All good so far, my PHP sites run locally and everything except phpMyAdmin is available from the XAMPP menu.
However when I try to access phpMyAdmin I get this error:
Access forbidden!
New XAMPP security concept:
Access to the requested directory is only available from the local network.
This setting can be configured in the file "httpd-xampp.conf".
I've found several answers via Google and some on this site. However, so far, none of the solutions I've tried have resolved the issue.
Here is my httpd-xampp.conf file:
 
ini scripnya
 
 
    
 
sumber :
http://stackoverflow.com/questions/21161908/new-xampp-security-concept-access-forbidden-error-403-windows-7-phpmyadmin 
 #
# XAMPP settings
#


    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"


#
# PHP-Module setup
#
LoadFile "C:/xampp/php/php5ts.dll"
LoadModule php5_module "C:/xampp/php/php5apache2_4.dll"


    SetHandler application/x-httpd-php


    SetHandler application/x-httpd-php-source


#
# PHP-CGI setup
#
#
#    SetHandler application/x-httpd-php-cgi
#
#
#    Action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe"
#



    PHPINIDir "C:/xampp/php"



    AddType text/html .php .phps


ScriptAlias /php-cgi/ "C:/xampp/php/"

    AllowOverride None
    Options None
    Require all denied
    
          Require all granted
    



    
        SetHandler cgi-script
    
    
        SetHandler None
    



    
        
            php_admin_flag safe_mode off
        
    
    AllowOverride AuthConfig



    Alias /security "C:/xampp/security/htdocs/"
    
        
            
                php_admin_flag safe_mode off
            
        
        AllowOverride AuthConfig
        Require all granted
   

    Alias /licenses "C:/xampp/licenses/"
    
        Options +Indexes
        
            DirectoryIndexTextColor  "#000000"
            DirectoryIndexBGColor "#f8e8a0"
            DirectoryIndexLinkColor "#bb3902"
            DirectoryIndexVLinkColor "#bb3902"
            DirectoryIndexALinkColor "#bb3902"
        
        Require all granted
   

    Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
    
        AllowOverride AuthConfig Limit
        Order allow,deny
        Allow from all
        Require all granted
    

    Alias /webalizer "C:/xampp/webalizer/"
    
        
            
                php_admin_flag safe_mode off
            
        
        AllowOverride AuthConfig
        Require all granted
    


#
# New XAMPP security concept
#

    Order deny,allow
    Allow from all
    Require all granted

    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

Tidak ada komentar: