phpMyAdminのインストール
topへ
おすすめ記事
emyuu cms Freebsd12.0LAMP Freebsd10.0LAMP

2014-07-29 22:43:45

phpMyAdminのインストール

pkg search phpMyAdmin

pkg install phpMyAdmin-4.2.5

 

 

Please edit config.inc.php to suit your needs.

To make phpMyAdmin available through your web site, I suggest
that you add something like the following to httpd.conf:

For Apache versions earlier than 2.4:

    Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"

    <Directory "/usr/local/www/phpMyAdmin/">
        Options none
        AllowOverride Limit

        Order Deny,Allow
        Deny from all
        Allow from 127.0.0.1 .example.com
    </Directory>

For Apache version 2.4.x or above:

    Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"

    <Directory "/usr/local/www/phpMyAdmin/">
        Options None
        AllowOverride Limit

        Require local
        Require host .example.com
    </Directory>

 


だそうですよ。


vi /usr/local/apache2/conf/httpd.conf
    <Directory "/usr/local/www/phpMyAdmin/">
        Options None
        AllowOverride Limit

        Require local
        Require ip 192.168.1
    </Directory>


/usr/local/apache2/bin/apachectl restart


ln -s /usr/local/www/phpMyAdmin/ /usr/local/apache2/htdocs/himitu

http://192.168.1.30/himitu/index.php

あ、一覧表示されんじゃん
vi /usr/local/apache2/conf/httpd.conf

 

 

 

 

/usr/local/apache2/bin/apachectl restart
せきゅもok


cp -pr /usr/local/www/phpMyAdmin/config.sample.inc.php /usr/local/www/phpMyAdmin/config.inc.php

http://192.168.1.30/himitu/index.php

ほらできた。

楽ちん。