phpMyAdmin? インストール

pkg install -y phpmyadmin
pkg install -y mod_php56
pkg install -y mysql56-server

apache24

echo 'apache24_enable="YES"' >> /etc/rc.conf
echo 'apache24_http_accept_enable="YES"' >> /etc/rc.conf

cp /usr/local/etc/apache24/httpd.conf /usr/local/etc/apache24/httpd.conf.orig

211c211
< ServerAdmin info@zenno.com
---
> ServerAdmin you@example.com
220c220
< ServerName P2.zenno.net:80
---
> #ServerName www.example.com:80

mysql-server

echo 'mysql_enable="YES"' >> /etc/rc.conf
/usr/local/etc/rc.d/mysql-server start
rehash
mysqladmin -u root password PASS
mysql -pPASS
use mysql;
delete from user where password = "";
DROP USER ''@'%';
DROP DATABASE `test`;
exit

mod_php

vi /usr/local/etc/apache24/Includes/php.conf

<FilesMatch "\.php$">
   SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
   SetHandler application/x-httpd-php-source
</FilesMatch>
echo '<? phpinfo(); ?>' > /usr/local/www/apache24/data/info.php
/usr/local/etc/php.ini
date.timezone = "Asia/Tokyo"
session.save_path = "/var/tmp"
mbstring.language = Japanese

phpmyadmin

vi /usr/local/etc/apache24/Includes/phpmyadmin.conf

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

<Directory "/usr/local/www/phpMyAdmin/">
   DirectoryIndex index.php
   Options None
   AllowOverride Limit

   Require local
   Require ip 192.168.
</Directory>
cd /usr/local/www/phpMyAdmin
mysql -pPASS < sql/create_tables.sql

cp /mnt/src/config.inc.php.4.4.2 config.inc.php

FreeBSD/インストール9.3


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2015-05-06 (水) 09:50:17 (2360d)