Discuz Getting Started
Discuz is the best Forum & Community software in China, 200 million users in the world
If you have installed Websoft9 Discuz, the following steps is for your quick start
Preparation
- Get the Internet IP of your Server on Cloud
- Check your Inbound of Security Group Rule of Cloud Console to ensure the TCP:80 is allowed
- Get default username and password of Discuz
- Complete Five steps for Domain if you want to use Domain for Discuz.
Discuz Initialization
Steps for you
-
Using local Chrome or Firefox to visit the URL https://domain or https://Internet IP, start to install
-
Click "我同意",accept the liecense to the next step
-
Requirement check,then Click "下一步"
-
Select "全新安装 Discuz!X(含 UCenter Server)" and Click "下一步"
-
Then configure the database connection information(Don't know password?)
-
Complete the installation, you can access the Discuz now
-
In the index page of Discuz, you can see the log in area
-
Discuz provides a very powerful function of installing templates and plug-ins online. you log in to the background of Discuz and connect your application center account, you can purchase (free or charged) plugin templates online through the background and install them online.
Having trouble?
Below is for you to solve problem, and you can contact Websoft9 Support or refer to Troubleshoot + FAQ to get more.
Discuz! Database Error
If you database configuration is incorrect,you can receive the message "Discuz! Database Error"
- Using phpMyAdmin to check you database account
- Connect in Cloud Server, delete the file: /data/wwwroot/discuz/data/install.lock
- Visit URL https://Internet IP or Domain/install to start re-installation
Discuz QuickStart
下面以 使用 Discuz 构建论坛系统 作为一个任务,帮助用户快速入门:
Discuz Setup
Configure SMTP
-
Get SMTP related parameters in the mailbox management console
-
Log in Discuz Console, open 【Manage Discuz】>【Configure System】, set you SMTP
- 选择第二项
- 根据你的 SMTP 邮箱选择 SMTP服务器域名,前面的”ssl://“一定不能省略
- 端口栏输入 SMTP 服务器提供的端口号,一般为 465 ,具体的可根据自己的邮箱地址到官网查看
- 发件人邮件地址输入你自己的邮箱(需要与SMTP身份验证用户名所填的邮箱地址一致)
- 输入提供 SMTP 服务的邮箱地址
- 输入 SMTP 服务验证码(和邮箱登陆密码不一样)
-
在 Discuz 后台,打开【全局】>【站点信息】,设置全局管理员邮箱,尽量和 SMTP 发件人邮箱保持一致
-
测试,如出现如图所示的对话框则证明 SMTP 设置正确,另外,如果出现该对话框却在收件箱内没有邮件,请到垃圾邮件列表查看
Discuz Change domain
Refer to discuz! X3 更改域名全程记录
Discuz 模板/主题/应用中心使用
Discuz 有非常强大生态,大量在线安装模板、插件,您通过登录到 Discuz 后台,并连接您的【应用中心】账号,你就可以通过后台在线购买(免费或收费)插件模板,并在线安装就可以使用了。
声明:Websoft9 不擅长 Discuz 具体功能的使用,更无法提供此类问题指出。请自行参阅 Discuz 官方论坛 完成你要做的吧
Discuz modify database connection
In your Discuz installation directory, there are three database-related configuration files
Once you have modified the database information used to initialize the installation, you will need to modify the above three files to apply the new database configuration.
Discuz recover administrator password
-
Use SFTP to login Server, edit the uc_server/data/config.inc.php file in the root directory of Discuz
-
Replace two items below with
define('UC_FOUNDERPW','047099adb883dc19616dae0ef2adc5b6');
define('UC_FOUNDERSALT','311254'); -
Then, your Ucenter administrator password is:
123456789
-
Visit URL http://Internet IP/uc_server, us
123456789
as your password to login Ucenter -
Modify adminitrator password from 【用户管理】
Discuz change Logo
Refer to Discuz forum 如何替换程序默认Logo
Discuz 设置伪静态
Discuz论坛安装完成后,想使连接里面显示文章名,应怎么开启它的伪静态功能?
-
网站安装完成后,登录进入后台,在全局>SEO优化设置>将要设置的页面勾选上,然后提交;
-
重新回到上图页面,点击【查看当前的 Rewrite 规则】
-
页面会列出多种规则,请选择【Apache Web Server(虚拟主机用户)】模板(内容如下)
# 将 RewriteEngine 模式打开
RewriteEngine On
# 修改以下语句中的 /discuz 为您的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 / 对于websoft9提供的镜像,如果服务器内只有一个dicuz网站,则改成如下即可
RewriteBase /
# Rewrite 系统规则请勿修改
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1 -
在 Discuz 的根目录下,新建一个
.htaccess
文件,将上面的模板内容拷贝进去,保存 如果是Windows服务器,请选择【另存为】,文件类型选择【所有文件】,否则无法命名 -
重启服务 后生效