9、测试PHP与APACHE的协同工作
[root@localhost php-5.2.10]# cd /usr/local/apache2/htdocs/crazylinux/
[root@localhost crazylinux]# cat testdb.php
[root@localhost crazylinux]# cat testdb.php
在APACHE本机测试:(在client测试的话需要mysql授权,比较麻烦)需要先安装firefox浏览器
10、架设Discuz论坛
[root@localhost media]# cp Discuz_7.2_FULL_SC_UTF8.zip /home/
[root@localhost media]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 63
Server version: 5.0.75-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.01 sec)
mysql> grant all on bbsdb.* to runbbs@localhost identified by '123456';
Query OK, 0 rows affected (0.01 sec)
mysql> quit
Bye
[root@localhost media]# cd /home/
[root@localhost home]# unzip Discuz_7.2_FULL_SC_UTF8.zip -d discus
[root@localhost home]# mv discuz/upload/ /usr/local/apache2/htdocs/google/bbs
[root@localhost bbs]# chown -R daemon config.inc.php attachments forumdata/ uc_client/data/cache/
[root@localhost media]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 63
Server version: 5.0.75-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.01 sec)
mysql> grant all on bbsdb.* to runbbs@localhost identified by '123456';
Query OK, 0 rows affected (0.01 sec)
mysql> quit
Bye
[root@localhost media]# cd /home/
[root@localhost home]# unzip Discuz_7.2_FULL_SC_UTF8.zip -d discus
[root@localhost home]# mv discuz/upload/ /usr/local/apache2/htdocs/google/bbs
[root@localhost bbs]# chown -R daemon config.inc.php attachments forumdata/ uc_client/data/cache/