Trinitycore Series Deployment World of Warcraft Trinitycore 3.3.5 Registration Website
本文最后更新于 283 天前,其中的信息可能已经有所发展或是发生改变,如有失效可到评论区留言。

In the previous article (see:World of Warcraft Trinitycore 3.3.5 for Dummies), we built our own wlk World of Warcraft server based on Trinitycore 3.3.5 version, and after the worldserver program successfully ran, in the command prompt of its corresponding terminal session, we ranaccount createCommand to create a game account. If you are just playing by yourself, you can just create one once. But if the server is going to be put on the public Internet for many people to play together, do you have to create one for each person who comes? This is really tiring and uncool.

Fortunately, there is a great solution, WoWSimpleRegistration:

image.png

The project address is as follows:
https://github.com/TrinityCore/WoWSimpleRegistration
The key is that it can support:AzerothCoreTrinityCoreAshamaneCoreCMangos.

I won't go into too much detail, but generally speaking, you can download the zip package or the entire git directory and then drop it into the corresponding directory on the web server.

Zip package download address:
https://github.com/TrinityCore/WoWSimpleRegistration/archive/refs/heads/master.zip

If GitHub is not accessible, you can also visit the following link to download:Unrivaled file sharing, the access password is: "blog.tangwudi.com", download the "WoWSimpleRegistration-master.zip" file.

Of course, this is just a general statement. In fact, it still requires some settings, one is PHP, one is the configuration file, and the last is nginx.

For PHP, the official has clear requirements:

image.png

I am using 7.4.

Next, it depends on how you deploy PHP:
1. Source code deployment
If it is source code deployment, various panels are recommended for newcomers. I am used to the Baota Linux panel. In the software store of the Baota panel, find the installed PHP version and click Settings:

image.png

image.png

Install the extension here according to the official requirements:
Friendly reminder, the gmp extension cannot be installed by default. At this time, go to the terminal and run the following command:
apt install libgmp-dev
Then gmp can be installed normally.

2. Docker php7.4-fpm deployment
This is the single PHP container method mentioned in my other article. If you want to install the extension in this way, refer to the following (need to run in the PHP container):

apt update apt-get install -y \ libfreetype6-dev \ libjpeg62-turbo-dev \ libpng-dev \ libwebp-dev \ zlib1g-dev Add gd library compilation options: docker-php-ext-configure gd \ --enable-gd \ --with-freetype \ --with-jpeg \ --with-webp Then install the gd extension module: docker-php-ext-install -j$(nproc) gd apt-get install -y libgmp-dev Install gmp extension docker-php-ext-install gmp Install mysql client docker-php-ext-install pdo_mysql

Next is the configuration file. After decompressing the downloaded zip file, you will find the WoWSimpleRegistration-master folder. The configuration file is WoWSimpleRegistration-master/application/config/config.php.sample. Copy it and rename it to config.php. Then open it with a text editor. The key configurations are as follows:

$config['baseurl'] = "https://yourdomain"; // The IP or domain name corresponding to your server (must be the same as the content corresponding to the address item in the realmlist table in the auth library in mariaDB). If it is not the standard port 443, add :port after your domain name, for example https://abc.com:12345
config['page_title'] = "Invincible Azeroth"; // Description on the label when the browser visits the websiteconfig['language'] = "chinese-simplified"; //Default language of the website. If not specified, the default language is English==============================================================================*/ Select your server expansion. If you want to use advance template, Your images and backgrounds will be changed for your expansion. 0 = Classic 1 = The Burning Crusade (TBC) 2 = Wrath of the Lich King (WotLK) 3 = Cataclysm 4 = Mist of Pandaria (MOP) 5 = Warlords of Draenor (WOD) 6 = Legion 7 = BFA (I'm not sure about this one!) =======================================================================*/
config['expansion'] = '2'; //Website style, can be various versions, because we are wlk here, so we choose 2 /*==============================================================================*/ Core Type: 0 = TrinityCore 1 = AzerothCore 2 = AshamaneCore 3 = Skyfire Project 4 = OregonCore 5 = CMangos 10 = etc === ...config['server_core'] = 0; //Which core does the game use? Because I deployed the TC version, I chose 0 === ...
config['smtp_host'] = 'smtp.163.com'; //Administrator's SMTP email address. If you want users to be able to send emails to reset their passwords, this information must be filled in. I use 163 email, so I will use 163 email as an example.config['smtp_port'] = 587;
config['smtp_auth'] = true;config['smtp_user'] = '[email protected]'; \\Administrator's email address
config['smtp_pass'] = 'xxx'; Administrator 163 email authorization codeconfig['smtp_secure'] = 'ssl';
config['smtp_mail'] = '[email protected]'; \\The administrator's receiving mailbox, which is usually the same as the sending mailbox============================================================================================*/config['db_auth_host'] = 'xxxx'; \\The IP address of the database server where auth is located. In the previous article, we mentioned three libraries. auth is responsible for the account data for logging into the game, similar to the Battle.net pass. Characters is the role database. The characters created by the account are all in this library. World is NPC, boss, copy, world items and the like. These libraries can be stored separately in different database servers.
config['db_auth_port'] = '3306'; \\The port of the database server where auth is locatedconfig['db_auth_user'] = 'root'; \\The database administrator where auth is located. You can also use trinity
config['db_auth_pass'] = 'xxx'; \\The database administrator password of the auth databaseconfig['db_auth_dbname'] = 'auth'; \\This library in TC is called auth ========================================================================*/ $config['realmlists'] = array( "1" => array( 'realmid' => 1, // Realm ID 'realmname' => "xxxx", // Server name 'db_host' => "xxxx", // IP address of the database server where the Characters library is located, usually the same as auth'db_port' => "3306", // Database server where the Characters library is located, usually the same as auth'db_user' => "root", // Database administrator where Characters is located. Usually the same as auth'db_pass' => 'xxx', // The database administrator password of the database where Characters is located is usually the same as auth'db_name' => "characters" // This database is called characters in TC ) );

The database part depends on the relationship between your database server and the server where you set up the registration website. If they are the same cloud host, the IP address is 127.0.0.1. If they are not the same, then it is the IP address of the database server, and you must set up remote access permissions for the root user (or trinity user) on the database in advance.

After the above, PHP and configuration files are set up. The rest is to set up the website. The source code method of the panel is different from the docker method. I will not talk about the panel source code method. There are many tutorials on the Internet. Search for Baota Linux panel to set up a website. The whole network is full of them. Here I will mention the docker method. Please refer to my other article:Docker series single container nginx, single container php (one version) multi-site deploymentIf you follow my way, you only need to put the unzipped folder WoWSimpleRegistration-master (the name is too long, I suggest you shorten it, I changed it to wow) in the folder /docker/nginx/html, and then create a wow.conf configuration folder in the folder /docker/nginx/conf/conf.d (the content is the same as in the article mentioned above). Isn't it very simple? So I wrote a separate article first to save some trouble here.

After completing the above steps, the website has been set up. There are some technical things left, such as how to change the corresponding pages and how to add the registration number to the website. These are actually very simple. I will write a special article about them when I have the chance.

Let’s take a look at my results:
Invincible Azeroth

The content of the blog is original. Please indicate the source when reprinting! For more blog articles, you can go toSitemapUnderstand. The RSS address of the blog is:https://blog.tangwudi.com/feed, welcome to subscribe; if necessary, you can joinTelegram GroupDiscuss the problem together.
No Comments

Send Comment Edit Comment


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠(ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ°Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
Emoticons
Emoji
Little Dinosaur
flower!
Previous
Next
       

This site has disabled the right mouse button and various shortcut keys. The code block content can be copied directly by clicking the copy button in the upper right corner

en_US
春节
快乐