To build a "Discuz! X" website, the site is Sing company launched a community platform, including community forums, social networks, social games, etc.
1. In the Linux system / usr / local directory, create ucenter folder ( mkdir ucenter ) and into the folder , we will pass the FTP Discuz_X3.4_SC_UTF8.zip upload folder to unzip ucenter
Mounting the unzip: yum the install -Y the unzip ZIP
extracting installation package: unzip Discuz_X2.5_SC_UTF8.zip -d ./discuzx
2. enter after extracting discuzx catalog, the entire upload directory to / usr / local / apache2 / htdocs directory, and renamed discuzx
Run: CP -R & lt Upload / usr / local / apache2 / the htdocs / discuzx
Back to Windows visit the website: virtual machine IP / discuzx / install install
After the consent agreement, the next step is to check the installation environment, we find this step to check a lot of non-conformity:
我们回到liunx里,进到/usr/local/apache2/htdocs/discuzx/目录下 将这些目录和文件增加可写权限
执行命令:cd /usr/local/apache2/htdocs/discuzx/ 执行命令:chmod -R go+w config data uc_client uc_server
改完后我们刷新下网页,可以看到这些不符合项都修正了
3.下一步设置运行环境,我们选择全新安装
下一步创建数据库,我们只需要填上正确的数据库root 账号密码就行了。后面一路继续即可完成安装,成功后我们可以看到discuzx论坛首页。
通过FileZila工具将UChome文件传到ucenter下,进入到ucenter目录中,在当前目录下解压UCenter_Home_2.0_SC_UTF8.zip
执行命令:unzip UCenter_Home_2.0_SC_UTF8.zip -d ./uchome
5. 进到uchome下,将这个upload目录 复制到/usr/local/apache2/htdocs目录下,并改名为uchome
执行命令:cp -R upload /usr/local/apache2/htdocs/uchome
6.进到uchome目录,cd /usr/local/apache2/htdocs/uchome/
将 config.new.php改名为 config.php 并增加写权限
执行命令:mv config.new.php config.php
chmod go+w config.php
7.回到Windows下,访问:IP/discuzx/uc_server/,进入UCenter后台管理端:
选择应用管理-添加新应用-URL安装
输入:http://IP/uchome/install/index.php(uchome目录下的install目录下的index.php)
8.开始安装,第一步是检查权限,我们发现有三个权限不正确:
9. 进入到uchome目录下:cd /usr/local/apache2/htdocs/uchome/
将这三个目录包括里面包含的内容全部加上可写权限
执行命令:chmod -R go+w attachment data uc_client/data
10.刷新页面进行安装,数据库用户名:root,密码:123123,数据库名:uch
一路按提示操作完即安装完成,可以看到管理员个人空间