phpMyAdmin über localhost hinaus erreichbar machen

ts7622

Ensign
Registriert
Aug. 2012
Beiträge
237
guten Abend,

es gibt zwar einige Suchergebnisse zu meiner Frage, aber die bringen mich alle nicht weiter. Ich habe das Gefühl, dass die Antworten wegen zwischenzeitlichen XAMPP-Updates nicht mehr relevant sind. Jedenfalls bekomme ich es nicht hin.

Ich habe XAMPP auf einen anderen Computer laufen und möchte phpMyAdmin über meinen Browser erreichbar machen. Momentan werde ich abgewiesen durch die Sicherheitskonzept-Seite und mir wird gesagt, dass ich mir die httpd-xammp.conf anschauen soll. Da komme ich aber nicht weiter ...

Code:
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
		Order deny,allow
		Deny from all
		Allow from 192.168.0.4
	ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

Dies macht es auf dem Server nicht mal mehr unter localhost verfügbar.
 
Aktuell darf nur 192.168.0.4 zugreifen. Da muss 127.0.0.1 hin.

Mein Tipp, wenn dir die Grundlagen fehlen, dann lass es bitte, bitte sein, irgendwelche Dienste auf deinem Computer dem Internet zu öffnen!
 
Es wird ja auch nicht übers Internet errecihbar sein. Es soll nur ein bestimmer Computer im LAN darauf zugreifen können.

Die 192.168.0.4 ist übrigens mein Computer über dem ich eben kein Zugriff bekomme.
 
Probier trotzdem mal da 127.0.0.1 einzutragen und greif dann auf diese IP Adresse zu
 
Code:
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
		Order Deny,Allow
		Deny from all
		Allow from localhost
		Allow from ::1
		Allow from 127.0.0.1
		Allow from 192.168.0.4
	ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

So bekomme ich kein Zugrif durch localhost. Von meinem Computer erst recht nicht. Irgendwas mache ich falsch. Wenn ich "require local" als einzige Anweiseung einfüge kann ich wieder über localhost zugreifen (so habe ich es in der Datei auch vorgefunden).

Meine ganze httpd-xampp.conf sieht jetzt so aus:
Code:
#
# 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"

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

#
# 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 all denied
    <Files "php-cgi.exe">
          Require all 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 all granted
   </Directory>

    Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
	<Directory C:/xampp/htdocs/phpmyadmin> 
		Options Indexes FollowSymLinks MultiViews
		AllowOverride all
		Order Deny,Allow
		require local
	</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 all granted
    </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 localhost
		Allow from ::1
		Allow from 127.0.0.1
		Allow from 192.168.0.4
	ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
Ergänzung ()

Hat keiner eine Lösung für mich?
 
Zurück
Oben