本笔记只记录安装配置phpmyadmin部份,本笔记虽然是在FreeBSD系统上测试通过,其中多数内容也适合各个Linux发行版本以及各个BSD分支,在其他系统上只需要做少量调整。
cd /usr/ports/databases/phpmyadmin
make install clean
[X] BZ2 bzip2 library support
[X] GD GD library support
[X] MYSQLI Improved MySQL support
[X] OPENSSL OpenSSL support
[X] PDF PDFlib support (implies GD)
[X] ZLIB ZLIB support
[X] MCRYPT MCrypt library support
[X] MBSTRING Multi-byte character-set string support
vi /usr/local/www/phpMyAdmin/libraries/config.default.php
$cfg[‘PmaAbsoluteUri’] = ‘https://www.itkylin.com/mysqladmin’;
$cfg[‘Servers’][$i][‘auth_type’] = ‘http’;
:wq!
cd /usr/local/www/phpMyAdmin/libraries
cat config.default.php > ../config.inc.php
chown -R vmail:vmail /usr/local/www/phpMyAdmin
vi /usr/local/etc/apache2/httpd.conf
add:
Alias /mysqladmin/ “/usr/local/www/phpMyAdmin/”
<Directory “/usr/local/www/phpMyAdmin/”>
Options Indexes
AllowOverride ALL
#AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
/usr/local/etc/rc.d/apache2.sh restart