Fa Cai CMS is a free X-site program produced by a programmer in the group with grand dreams (to have enough to eat). Yesterday, I personally tested it and completed the setup using Baota in ten minutes; the configuration is also very simple. Without further ado, let's get to the tutorial.
Update Record#
This tutorial will also be updated along with the updates of Fa Cai CMS.
- 2024/10/14 Fa Cai CMS updated to version 1.1.3
- 2024/10/24 Fa Cai CMS updated to version 1.1.4 (major update, all functions are free except for the removal of resource site advertisement feature)
Recommended Server Configuration#
- CPU 2-4 cores
- Memory 6-8G
- Disk 50G SSD
Fa Cai CMS can also run on 1H1G, but if based on Baota panel, it requires more server resources. I personally recommend using at least the above configuration; the wealthy can choose freely.
System Environment#
Linux 64-bit system, currently does not support 32-bit and Windows systems. If customization is needed, please contact the author separately: @qbl688
- CentOS 8 or above
- Ubuntu 18+
- Debian 10+
- glibc version 2.27+
Install Baota#
If you don't know how to install Baota yet, first look at the tutorial below.
Install a visual management interface for your server - Baota Panel International Version aaPanel Installation Tutorial
Tutorial Demonstration Environment#
- Server: 4H4G120G Thanks to the group administrator for providing the free testing server @macaoai
- CentOS 8
- Baota International Version
1. Install Basic Environment#
First, install the Baota panel (it is recommended to install the international version Baota aaPanel), then enter Baota to install nginx and MySQL 8.0.
I am using a machine with 4G memory for the demonstration. When installing MySQL 8.0, a prompt will pop up indicating at least 6GB of memory is required; you can skip this. If you find that MySQL is not installed properly, you can reinstall it from the Baota backend.
2. Install Fa Cai CMS#
Use SSH tool to connect to the server, and directly enter the following command to execute the installation:
sudo wget -qO- https://download.aifc.cc/1.2.0/install_1_2_0.sh | bash
Or go to the Fa Cai CMS TG channel to download the installation package: https://t.me/facaiCms/10
Successful installation will display as shown below:
3. Open Ports#
In the Baota panel, select "Security" on the left side, then in the pop-up window, enter the port "8880" in the second line of the Port section, and finally click the green button in the lower right corner to save.
4. Create Website#
Point the domain name to the server, then in the Baota panel, select Website on the left side, and click add site to create a website.
Enter the website domain name, select the MySQL database, and then save.
Copy the database username and password, as you will need them later.
5. Initialize Fa Cai CMS#
Use your server IP with the port and directory to access the Fa Cai CMS backend:
http://host:8880/admin/ (replace host with your server's IP address)
After entering, input the database username, database name, and password of the website we just created in Baota. Then set the password and click "Initialize Configuration".
6. Set Up Reverse Proxy#
Open Baota, and select Conf next to the website you created to set up the site.
On the left side, select Reverse proxy, then choose Add Reverse proxy.
Proxy name can be filled in freely; you can also fill it in as fccms.
Target URL should be filled in as http://127.0.0.1:8880.
No need to change anything else; just click the green button in the lower right corner to save.
The reverse proxy setup is successful as shown below.
7. Modify Website Configuration#
Copy the following code and paste it into Notepad, replacing all instances of "cs.aifc.cc" in the code with your own website.
server
{
listen 80;
server_name cs.aifc.cc;
index index.html;
root /www/wwwroot/cs.aifc.cc;
location / {
proxy_pass http://127.0.0.1:8880;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Add custom request header X-Language-Header Simplified Chinese
#proxy_set_header X-Language-Header zh-cn;
}
access_log /www/wwwlogs/cs.aifc.cc.log;
error_log /www/wwwlogs/cs.aifc.cc.error.log;
}
For example, if the website I am demonstrating uses the URL thepornwiki.org, just replace the URL directly in Notepad.
Select Config on the left side, paste the code with the replaced URL on the right, and then click Save to save.
Alright, at this point, Fa Cai CMS is fully installed. The backend address is your website/admin, and the demonstration site is (https://thepornwiki.org/admin).