Setting Up a Video Website: For most individual webmasters, the mainstream solutions are Apple CMS, Ocean CMS, FeiFei CMS, Zanpian CMS, MaxCMS, and others. This article will detail how to use Apple CMS to build a video website.
- Preparation
If you want to build a video site accessible from the internet, you need to prepare a server (cloud server, VPS) and a domain name in advance:
- Server: This tutorial uses the VMRack premium server (4 cores, 8G RAM). The specific configuration you need depends on your intended use.
- Domain Name: Choose a domain name related to your video site’s brand. A domain is not strictly necessary; you can use your IP address directly for access.
Next, let’s begin the installation tutorial. Required source code packages:
- Apple CMS installation package download: maccms10.zip
- Apple CMS v10 template download: mb-1.zip
- Video Mengya (萌芽) content collection plugin download: 萌芽采集插件v10.7.5.tar.gz
1. Install BT Panel (宝塔)
Go to the official BT Panel website, copy the one-click installation command, log into the VMRack control console, and click to log into your server details. Choose SSH connection, enter your password, and log in.
Copy and paste the one-click BT (宝塔) install command and press enter to run:
if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ssl251104
Once the installation is complete, save your login information. Access the BT panel at:
https://154.53.75.73:10609/5913b2f2, enter your username and password, and click “Not bind for now.”
2. Install Running Environment
Apple CMS uses PHP, so you’ll need to install a PHP runtime. LNMP is recommended; select PHP 7.4 and click one-click install.
Wait for the installation to finish, and you’ll see everything running smoothly. Apple CMS requires the fileinfo extension—find it in the installed list under PHP settings and click install.
3. Create a Site
First, access the site through the IP address. The tutorial will explain domain access later.
4. Upload Apple CMS Source Code
Download the Apple CMS V10 source installation package provided above. In the website root directory, click Upload and select the zipped source code package.
Extract the zip file, and move the files from the extracted folder into your project’s root directory (for example: /www/wwwroot/154.53.75.73).
5. Install Apple CMS
Go to http://154.53.75.xx/install.php and fill in the database details as well as the admin username and password. You can find your database details under the database menu. After entering the information, click Install Now.
For security purposes, change the entry file for the admin backend. After modification, visit your admin backend, e.g.: http://154.53.75.xx/mac.php and enter your username, password, and verification code. With that, Apple CMS is installed! Go to your website homepage:
http://154.53.75.xx/
You’ll see a prompt to install a template.
6. Install Template
Download the simple responsive video template for Apple CMS v10 provided earlier. Go into the template directory, upload and extract the template zip.
Open Template Management in the backend, and select the just-uploaded template. Set your template under 【System】【Website Parameter Settings】/ “Site Template” and hit save. Refresh the backend page.
Visit your site homepage—template installation successful! Now you just need to collect videos to finish building your video site.
7. Install Video Collection Plugin
Download the Mengya Collection Plugin, upload and extract it. In the backend’s App Market, you’ll see the Mengya plugin; click Enable.
Refresh the backend—now the left menu includes Mengya Collection Resources. Inside, you’ll find numerous video resource sites. You can now begin collecting videos!
8. Manual Video Collection
Choose a source site and click to enter. First, bind categories: you’ll see many categories at the top—bound categories are marked red. Unbound ones can be bound with a click. If your local program doesn’t have the category yet, you can add it, or add all required categories by plugin with one click.
After binding, select the desired videos and click “Collect Selected”. You’ll see the selected videos were successfully collected. Under Video → Video Data you’ll spot your videos.
Check your homepage: click on a film and it plays normally.
The manual collection process ends here. Manual collection is clearly inefficient and hard to maintain daily. Next, let’s automate collection.
9. Automatic Video Collection
Automatic collection requires Mengya’s Python script—one-click install command:
curl -fsSL "https://down.mycj.pro/python/install.sh" -O && chmod +x install.sh && ./install.sh
Copy this command, return to the BT Panel terminal, paste, and execute.
After a successful install, test to confirm it works:
source /opt/miniconda3/bin/activate /opt/miniconda3/3.12.0/conda_env && cd /www/python/mengya_project && python app.py
You’ll see the Python script runs successfully—next, configure automated collection.
Back in the backend, go to Mengya Collection Resources → Settings, and enable the interface switch. Save the settings. Back in BT Panel, open the config.yaml file in the directory and configure Mengya’s auto-collection parameters:
- token
- import password (same as you set when enabling the interface)
After configuring, return to the backend, choose a resource site, and click schedule collection—here, select resources from the last hour.
In the scheduled tasks, you’ll see your new scheduled collection task. In BT Panel’s terminal, run the collection script again:
source /opt/miniconda3/bin/activate /opt/miniconda3/3.12.0/conda_env && cd /www/python/mengya_project && python app.py
You’ll see more videos appear in the backend as the script executes.
Now, just add this script as a scheduled task to run every hour, and your site will automatically collect videos. The automation process is done!
At this point, your video site is basically built, though there are still details to explore on your own.
After reading this far, you may still have questions such as:
- How to choose server configuration
- How to install other templates if you don’t like the default
- How to modify the current site template’s logo
- How to set the homepage cover
- How to access via domain name, etc.
This article is contributed by 站长破壁者!
A new article will soon address these issues to help you better familiarize yourself with Apple CMS. For details, see “Apple CMS V10 Setup Tutorial Part 2”.