������PC�˴Ķ�����ɬ�פ����ä��Τ�Ŭ���˺��������κ�Ȳ����ܤ��������������ø����ݤˤʤäƤ��ޤ�����������make���٤��Ƥ�������κ�ȤʤΤ�¸�����֤����Ƥ��ޤ��ޤ�����̵ǰ��
�������¤δĶ����ۥ��Ȥ��ƻĤ��Ƥ����ޤ�������ˤ��Ƥ�䤿��ȥ��󥹥ȡ�����ˡ�Ф���񤤤Ƥ���֥����ˤʤäƤޤ��͡�
�Ķ���FreeBSD 6.0-RELEASE��
Apahce��MySQL���󥹥ȡ���
# cd /usr/ports/www/apache22/
# make install
# cd /usr/ports/databases/mysql51-server
# make install
# vi /etc/rc.conf
apache22_enable="YES"
mysql_enable="YES"
PHP5���󥹥ȡ���
# cd /usr/ports/lang/php5
# make install
phpMyAdmin���󥹥ȡ���
# cd /usr/ports/databases/phpmyadmin
# make install
httpd.conf���Խ�
# vi /usr/local/etc/apache22/httpd.conf
��<IfModule mime_module>����
AddHandler cgi-script .cgi
Addtype application/x-httpd-php .php
# vi /usr/local/etc/apache22/httpd.conf
��<IfModule alias_module>����
Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"
<Directory "/usr/local/www/phpMyAdmin">
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Apahce�Ƶ�ư
# /usr/local/etc/rc.d/apache22.sh restart
MySQL��root�ѥ���ɤ����ꡣ
# /usr/local/bin/mysqladmin -u root password 'hogehoge'
phpMyAdmin������
# cp /usr/local/www/phpMyAdmin/config.default.php /usr/local/www/phpMyAdmin/config.inc.php
# vi /usr/local/www/phpMyAdmin/config.inc.php
$cfg['PmaAbsoluteUri'] = 'http://192.168.0.250/phpmyadmin/';
$cfg['blowfish_secret'] = 'hogehoge';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
//$cfg['Servers'][$i]['user'] = 'root';
//$cfg['Servers'][$i]['password'] = '';
$cfg['DefaultLang'] = 'ja';
��config.inc.php�����ꡣauth_type��cookie�ˤ��Ƥ�����user/password�����ס�
MySQL������
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 29 to server version: 5.1.6-alpha
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> drop database test; # ���פʥǡ����١�������
Query OK, 1 row affected (0.00 sec)
mysql> create database hogehoge;
Query OK, 1 row affected (0.00 sec)
mysql> grant select,insert,delete,update,create,drop,file,alter,index on *.* to myuser@localhost identified by 'password'; # ���̥桼����myuser�פ������
Query OK, 1 row affected (0.00 sec)
mysql> exit
Bye