Welcome to the RaGEZONE - MMORPG development forums.

[REPOST]How to fix xampp security concept[REPOST]

This is a discussion on [REPOST]How to fix xampp security concept[REPOST] within the Habbo Tutorials forums, part of the Habbo Hotel category; Hello , i am new to ragezone and thought id repost someones work so this tutorial was originally made by ...

LyncusMU
Results 1 to 2 of 2
  1. #1
    Newbie
    Rank
    Newbie
    Join Date
    May 2011
    Posts
    5
    Liked
    0

    [REPOST]How to fix xampp security concept[REPOST]

    Tabo Hotel
    Hello , i am new to ragezone and thought id repost someones work so this tutorial was originally made by iJak
    But reworded by me

    So this is for people who struggle with xampp and are little children new to this , i thought it would be appropriate to release this on behalf of my friend who doesn't know how to do this

    So go into xampp
    Click Apache
    Click Conf
    Open httpd-xampp

    Do not delete the file
    but delete whats in the notepad and copy this code

    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>
    This should work considering it worked for me
    Thanks for reading
    Credits
    99.8% to ijak for making the original thread
    0.1% for me reposting
    0.1% for the idea of my friend jake
    Last edited by Splatter; 29-05-11 at 08:02 AM.

  2. HostKey.com: Unmetered Dedicated servers in the Netherlands
  3. #2
    Member
    Rank
    Newbie
    Join Date
    Mar 2011
    Posts
    35
    Liked
    0

    Re: [REPOST]How to fix xampp security concept[REPOST]

    Quote Originally Posted by Splatter View Post
    Hello , i am new to ragezone and thought id repost someones work so this tutorial was originally made by iJak
    But reworded by me

    So this is for people who struggle with xampp and are little children new to this , i thought it would be appropriate to release this on behalf of my friend who doesn't know how to do this

    So go into xampp
    Click Apache
    Click Conf
    Open httpd-xampp

    Do not delete the file
    but delete whats in the notepad and copy this code

    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>
    This should work considering it worked for me
    Thanks for reading
    Credits
    99.8% to ijak for making the original thread
    0.1% for me reposting
    0.1% for the idea of my friend jake
    Realy not understanding what this is for ive got a problem with my v18 dcrs the loader only loads for me no one eles can u help?

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •