CentOS phpmyadmin Ordner ist verboten

4739
rakcode

installierte php5, apache2, LAMP, PHPMyAdmin, aber wenn ich meine IP und PHPMyAdmin wie folgt eingebe : http: // __ my_IP __ / phpmyadmin, wird der Fehler angezeigt

Verboten
Sie haben keine Berechtigung zum Zugriff auf / PHPMyAdmin / auf diesem Server.

Ich bearbeitete /etc/httpd/conf.d/phpmyadmin.conf. Diese Datei fügte auch meine IP-Adresse hinzu und erlaubte meiner IP-Adresse, dennoch wird der obige Fehler angezeigt.

meine phpmyadmin.conf -Datei ist jetzt so

# phpMyAdmin - Web based MySQL browser written in php # # Allows only localhost by default # # But allowing phpMyAdmin to anyone other than localhost should be considered # dangerous unless properly secured by SSL  Alias /phpMyAdmin /usr/share/phpMyAdmin Alias /phpmyadmin /usr/share/phpMyAdmin  <Directory /usr/share/phpMyAdmin/> AddDefaultCharset UTF-8  <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require ip 27.34.248.3 #Require ip ::1 </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow 

Wie kann ich auf den PHPMyAdmin-Ordner zugreifen, damit ich die Datenbank problemlos verwalten kann? Ich verwende Redhat Linux 7.3, alle Pakete werden aktualisiert!

Bitte hilf mir!

0
Welcher Benutzer läuft Apache? Hat der Benutzer Zugriffsrechte auf `/ usr / share / phpMyadmin`? Patrick R. vor 7 Jahren 0
Ich habe das Problem behoben, Sir, danke rakcode vor 7 Jahren 0

3 Antworten auf die Frage

0
Azfar Ullah Khan

Versuchen Sie diese Konfiguration:

 <Directory /usr/share/phpMyAdmin/> AddDefaultCharset UTF-8  <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require ip 127.0.0.1 Require ip ::1 Require ip 27.34.248.3 </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from 127.0.0.1 Allow from ::1 Allow from 27.34.248.3 </IfModule> </Directory> 

Starten Sie den Apache-Dienst neu:

systemctl restart httpd 
Nein, derselbe Fehler! Ich habe das auch versucht rakcode vor 7 Jahren 0
0
Pankaj Jackson

Sie müssen die Apache-Konfigurationsdatei von phpmyadmin ändern

Speicherort ist /etc/httpd/conf.d/phpMyAdmin.conf

Die Standardkonfiguration lautet:

<Directory /usr/share/phpMyAdmin/> AddDefaultCharset UTF-8  <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require ip 127.0.0.1 Require ip ::1 </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from 127.0.0.1 Allow from ::1 </IfModule> </Directory> 

Ändern Sie es in:

<Directory /usr/share/phpMyAdmin/> AddDefaultCharset UTF-8  <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require all granted </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Allow from All </IfModule> </Directory> 

und starten Sie den Apache mit dem Befehl neu

# service httpd restart 

ODER

# systemctl restart httpd.service 
Kommentare sind nicht für eine erweiterte Diskussion vorgesehen. Diese Konversation wurde [zum Chat verschoben] (http://chat.stackexchange.com/rooms/52974/discussion-on-answer-by-pankaj-jackson-centos-phpmyadmin-folder-forbidden). Journeyman Geek vor 7 Jahren 0
0
Digitalwolfca

Das funktioniert. Centos 7.

 <Directory /usr/share/phpMyAdmin/> AddDefaultCharset UTF-8  <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require all granted </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Allow from All </IfModule> </Directory>