phpMyAdminが403Forbiddenになる(CentOs6.5)
Windows7とLinux(CentOS6.5)のDualBootマシンで
Linux(CentOS6.5)上に、phpMyAdminのインストール&設定した後、
[root@pc ~]# /etc/rc.d/init.d/httpd start
httpd を起動中: [ OK ]
[root@pc ~]# /etc/rc.d/init.d/httpd reload
httpd を再読み込み中:
とした後に、
URL:http://ホスト名(または127.0.0.1)/phpmyadmin
としましたが、
403forbiddenとなって下記エラーでアクセス不可。(参考:http://ufuso.jp/wp/?p=10366)
----------------------------------
Forbidden
You don't have permission to access /phpmyadmin/ on this server.
Apache/2.2.15 (CentOS) Server at 127.0.0.1 Port 80
----------------------------------
次に、phpmyadmin.confの設定を書き変え、httpdを再起度しているのですが変わりません。
<Directory /usr/share/phpMyAdmin/>
<IfModule !mod_authz_core.c>
# Apache 2.2
#Order Deny,Allow
#Deny from All
Order Allow,Deny
Allow from 127.0.0.1
Allow from All
Allow from ::1
さらにhttp://qiita.com/daikiichikawa/items/fe0542399fed29811b2c
を参考に /etc/phpMyAdmin/config.inc.phpを編集し、
$cfg['Servers'][$i]['host'] = '127.0.0.1'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = '3306'; // MySQL port -
としてhttpdを再起度しているのですが、変わりません。
間違いの箇所がお分かりになる方、ご指導よろしくお願い致します。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。