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

2019-08-12 03:11:03

FreeBsd12.0 phpMyAdminインストール
pkg search phpMyAdmin
phpMyAdmin-php73-4.9.0.1

 
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>
    
   ln -s /usr/local/www/phpMyAdmin/ /usr/home/ユーザー名/public_html/himitu
    
こうしとけばローカルからしかアクセスできない

/usr/local/etc/rc.d/apache24 restart



http://192.168.1.30/himitu/index.php
でアクセスできる。