How to fix Xampp Security Concept Error!

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    How to fix Xampp Security Concept Error!

    Hello RaGEZONE users.. Ive saw how some people have been in the help section asking how to fix the security concept error so i decided to make a thread on how to fix it.


    Ok open up your xampp folder then go to apache then conf then extra then open up httpd-xampp.conf then replace it with this:

    Code:
    #
    # XAMPP settings
    #
    
    <IfModule env_module>
        SetEnv MIBDIRS "C:/xampp/php/extras/mibs"
        SetEnv MYSQL_HOME "C:\\xampp\\mysql\\bin"
        SetEnv OPENSSL_CONF "C:/xampp/apache/bin/openssl.cnf"
        SetEnv PHP_PEAR_SYSCONF_DIR "C:\\xampp\\php"
        SetEnv PHPRC "C:\\xampp\\php"
        SetEnv TMP "C:\\xampp\\tmp"
        UnsetEnv PERL5LIB
    </IfModule>
    
    #
    # PHP-Module setup
    #
    LoadFile "C:/xampp/php/php5ts.dll"
    LoadModule php5_module modules/php5apache2_2.dll
    
    <IfModule php5_module>
        <FilesMatch "\.php$">
            SetHandler application/x-httpd-php
        </FilesMatch>
        <FilesMatch "\.phps$">
            SetHandler application/x-httpd-php-source
        </FilesMatch>
    
        PHPINIDir "C:/xampp/php"
    </IfModule>
    
    #
    # PHP-CGI setup
    #
    <IfModule !php5_module>
        <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>
    
    
    <IfModule mime_module>
        AddType text/html .php .phps
    </IfModule>
    
    ScriptAlias /php-cgi/ "C:/xampp/php/"
    <Directory "C:/xampp/php">
        AllowOverride None
        Options None
        Order deny,allow
        Deny from all
        <Files "php-cgi.exe">
            Allow from all
        </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 /security "C:/xampp/security/htdocs/"
        <Directory "C:/xampp/security/htdocs">
            <IfModule php5_module>
        		<Files "xamppsecurity.php">
        			php_admin_flag safe_mode off
        		</Files>
            </IfModule>
            AllowOverride AuthConfig
       </Directory>
    
        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>
       </Directory>
    
        Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
        <Directory "C:/xampp/phpMyAdmin">
            AllowOverride AuthConfig
        </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
        </Directory>
    </IfModule>
    
    #
    # New XAMPP security concept
    #
    <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Order deny,allow
        Allow from all
        Allow from All
    
        ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
    </LocationMatch>
    Ok once you have done that save it and reboot apache and your done!

    If i helped please press the thanks button


  2. #2
    Account Upgraded | Title Enabled! No0b is offline
    MemberRank
    Jul 2010 Join Date
    Michigan, USLocation
    1,426Posts

    Re: How to fix Xampp Security Concept Error!

    Wow thanks I use this code. and it fixed my problem also.

    ---------- Post added at 06:18 PM ---------- Previous post was at 06:18 PM ----------

    #
    # XAMPP settings
    #

    <IfModule env_module>
    SetEnv MIBDIRS "C:/xampp/php/extras/mibs"
    SetEnv MYSQL_HOME "C:\\xampp\\mysql\\bin"
    SetEnv OPENSSL_CONF "C:/xampp/apache/bin/openssl.cnf"
    SetEnv PHP_PEAR_SYSCONF_DIR "C:\\xampp\\php"
    SetEnv PHPRC "C:\\xampp\\php"
    SetEnv TMP "C:\\xampp\\tmp"
    UnsetEnv PERL5LIB
    </IfModule>

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

    <IfModule php5_module>
    <FilesMatch "\.php$">
    SetHandler application/x-httpd-php
    </FilesMatch>
    <FilesMatch "\.phps$">
    SetHandler application/x-httpd-php-source
    </FilesMatch>

    PHPINIDir "C:/xampp/php"
    </IfModule>

    #
    # PHP-CGI setup
    #
    <IfModule !php5_module>
    <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>


    <IfModule mime_module>
    AddType text/html .php .phps
    </IfModule>

    ScriptAlias /php-cgi/ "C:/xampp/php/"
    <Directory "C:/xampp/php">
    AllowOverride None
    Options None
    Order deny,allow
    Deny from all
    <Files "php-cgi.exe">
    Allow from all
    </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 /security "C:/xampp/security/htdocs/"
    <Directory "C:/xampp/security/htdocs">
    <IfModule php5_module>
    <Files "xamppsecurity.php">
    php_admin_flag safe_mode off
    </Files>
    </IfModule>
    AllowOverride AuthConfig
    </Directory>

    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>
    </Directory>

    Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
    <Directory "C:/xampp/phpMyAdmin">
    AllowOverride AuthConfig
    </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
    </Directory>
    </IfModule>

    #
    # New XAMPP security concept
    #
    <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    #Deny from all
    Allow from all
    #::1 127.0.0.0/8 \
    #fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
    #fe80::/10 169.254.0.0/16

    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
    </LocationMatch>

    ---------- Post added at 06:20 PM ---------- Previous post was at 06:18 PM ----------

    sorry that I didn't put it in 1 of those thingy forgot :p

  3. #3
    Apprentice Yugi is offline
    MemberRank
    Jun 2010 Join Date
    23Posts

    Re: How to fix Xampp Security Concept Error!

    For me dont work still the tut is good but dont help me

  4. #4
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: How to fix Xampp Security Concept Error!

    It should work Yugi And im glad i helped No0b.. Please press the thanks button :)

  5. #5
    Account Upgraded | Title Enabled! No0b is offline
    MemberRank
    Jul 2010 Join Date
    Michigan, USLocation
    1,426Posts

    Re: How to fix Xampp Security Concept Error!

    yugi, try my code to l0l.

  6. #6
    Apprentice Orichalcos is offline
    MemberRank
    Sep 2010 Join Date
    10Posts

    Re: How to fix Xampp Security Concept Error!

    Cheers TheJigsaw :P Helped Quite A Lot As I Was Having A Problem With Xampp And That Exact Error :)) Thanks Will Press The Thanks Button.

  7. #7
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: How to fix Xampp Security Concept Error!

    Im Glad it helped mate..

  8. #8
    Proficient Member Xega is offline
    MemberRank
    Jan 2009 Join Date
    172Posts

    Re: How to fix Xampp Security Concept Error!

    this is kinda common sense as it says where to change the settings in the error....anyway nice release....

  9. #9
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: How to fix Xampp Security Concept Error!

    Thanks and some noobs dont read what it says so i just made the tutorial for noobs.

  10. #10
    Account Upgraded | Title Enabled! GrandCoder is offline
    MemberRank
    Jul 2010 Join Date
    BramptonLocation
    413Posts

    Re: How to fix Xampp Security Concept Error!

    Good tut Its perfectlly understandable

  11. #11
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: How to fix Xampp Security Concept Error!

    Thanks GrandCoder..

  12. #12
    Garry's Mod is addictive! Law is offline
    MemberRank
    Dec 2009 Join Date
    NorwayLocation
    993Posts

    Re: How to fix Xampp Security Concept Error!

    Nice, good rel/guide/tut :p
    10/10

  13. #13
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: How to fix Xampp Security Concept Error!

    Thanks , Hope it helped.

  14. #14
    Account Upgraded | Title Enabled! Milw0rm is offline
    MemberRank
    Jul 2007 Join Date
    660Posts

    Re: How to fix Xampp Security Concept Error!

    If i have to be honest it fails.
    When you do this you open your /server-info and /server-status to the public, and those can be pretty darn useful for hackers. You also enable everyone to see your XAMPP folder which should only be accessable by localhost. I would advise you to delete those folders first.

  15. #15
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: How to fix Xampp Security Concept Error!

    Well im going to make a tutorial to show people how to patch there retro up.



Page 1 of 2 12 LastLast

Advertisement