基于LAMP平台搭建Discuz论坛
l 前面LAMP平台搭建已经详细说过,这里不再赘述!
安装论坛
创建bbs数据库和用户
# mysql –u root -p
mysql>create database bbsdb;
mysql>grant all on bbsdb * to runbbs@localhost identified by ‘sonic’;
mysql>quit
安装软件包
# unzip Discuz_6.1.0_SC_UTF8.zip –d discuz
# mv discuz/upload /usr/local/apache2/htdocs/bbs
# unzip UCenter_1.0.0_SCUTF8.zip –d ucenter
# mv ucenter/upload /usr/local/apache2/htdocs/ucenter
修改权限,让http能够写入数据到论坛
# cd /usr/local/apache2/htdocs/ucenter
# chown –R daemon ./data
# cd ../bbs
# chown –R daemon config.inc.php attachments/ forumdata/ uc_client/data/cache/
安装ucenter用户中心
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/13673073631800.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/13673073639511.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/13673073650482.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/13673073658873.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/13673073663644.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/13673073672815.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/13673073677956.jpg” border=”0″ alt=”” />
安装Discuz
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/13673073683597.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/13673073692358.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/13673073697129.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/136730737046710.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/136730737119911.jpg” border=”0″ alt=”” />
移除“install”安装目录
# cd /usr/local/apache2/htdocs/bbs
# mv install/ install.lock
# chmod –rx install.lock
# cd ../ucenter
# mv install/ install.lock
# chmod –rx install.lock
进入后台管理界面
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/136730737170212.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/136730737244113.jpg” border=”0″ alt=”” />
安装PhpMyAdmin数据库管理套件
安装配置phpmyadmin
# tar zxvf phpMyAdmin-2.11.9.5-all-languages.tar.gz
# mv phpMyAdmin-2.11.9.5-all-languages phpmyadmin
# mv phpmyadmin /usr/local/apache2/htdocs
# cd /usr/local/apache2/htdocs/phpmyadmin
# cp config.sample.inc.php config.inc.php
# vim config.inc.php
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/136730737291014.jpg” border=”0″ alt=”” />
访问phpamydmin的web管理页面
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/136730737343715.jpg” border=”0″ alt=”” />
650) this.width=650;” src=”http://cdn.verydemo.com/upload/2013_04_30/136730737417816.jpg” border=”0″ alt=”” />
Y小菜一碟
并且如此真实的活着——这,就是旅行的意义。