[root@www ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 83
Server version: 5.0.56 -log Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE bbsdb;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT all ON bbsdb.* TO runbbs@localhost IDENTIFIED BY '123.com';
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
[root@www ~]#
|
[root@www ~]# unzip Discuz_ 6.1.0 _SC_UTF8.zip -d discuz
[root@www ~]# mv discuz/upload /usr/local/apach2/htdocs/bbs
[root@www ~]# unzip UCenter_ 1.0.0 _SC_UTF8.zip -d ucenter
[root@www ~]# mv ucenter/upload/ /usr/local/apach2/htdocs/ucenter
|
[root@www ~]# cd /usr/local/apach2/htdocs/ucenter/
[root@www ucenter]# chown -R daemon ./data/
[root@www ucenter]# cd ../bbs/
[root@www bbs]# chown -R daemon config.inc.php attachments/ forumdata/ uc_client/data/cache/
[root@www bbs]#
|
[root@www ~]# cd /usr/local/apach2/htdocs/bbs/
[root@www bbs]# mv install install.lock
[root@www bbs]# chmod o-rx install.lock/
[root@www bbs]# cd ../ucenter/
[root@www ucenter]# mv install install.lock
[root@www ucenter]# chmod o-rx install.lock/
|
[root@www ~]# tar zxf phpMyAdmin- 2.11.9 .5-all-languages.tar.gz
[root@www ~]# mv phpMyAdmin- 2.11.9 .5-all-languages phpMyAdmin
[root@www ~]# mv phpMyAdmin /usr/local/apach2/htdocs/
|
[root@www ~]# cd /usr/local/apach2/htdocs/phpMyAdmin/
[root@www phpMyAdmin]# cp config.sample.inc.php config.inc.php
[root@www phpMyAdmin]# vi config.inc.php
… …
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'zpp.com'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/*
… …
|