- Purchase a server.
- Parse the domain name and open the port. Visit Cloudflare's official website: [cloudflare.com]
firewall-cmd --zone=public --add-port=port number/tcp --permanent
For this setup, CentOS system is used. For Debian and Ubuntu systems, please refer to the official website for corresponding installation commands.
yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh aapanel
Required installed plugins:
Nginx 1.17
MySQL 5.6
PHP 7.4
Supervisor
Panel settings:
Install Redis and fileinfo.
aaPanel > App Store > Find PHP 7.4 and click on Setting > Install extensions > Install redis and fileinfo.
Remove prohibited functions.
aaPanel > App Store > Find PHP 7.4 and click on Setting > Disabled functions > Remove putenv, proc_open, pcntl_alarm, and pcntl_signal from the list.
Add a website.
aaPanel > Website > Add site.
- Install V2Board.
aaPanel > Website > Click on the website root directory - Delete the four files in the root directory:
Four files: .htaccess, 404.html, index.html, .user.ini (delete this one twice).
Download V2Board project files.
Click on Website > Click on the website root directory > Click on Remote download > Open [https://github.com/v2board/v2board/releases?page=1] > Find version 1.73 > Right-click and copy the link address > Paste it into URL address > Click Confirm > After the download is complete, click on Extract > Then select all > Cut > Paste into the root directory.
Go to the website root directory and execute the command to install the dependency package and V2Board.
sh init.sh
- Configure the website directory, rewrite rules, and SSL certificate.
After adding, edit the added website > Site directory > Running directory: select /public and save.
After adding, edit the added website > URL rewrite: enter the rewrite information.
location /downloads {
}
location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}
location ~ .*\.(js|css)?$
{
expires 1h;
error_log off;
access_log /dev/null;
}
Apply for a security certificate.
aaPanel > Website > Click on Conf > Click on SSL.
-
Configure scheduled tasks.
aaPanel > Cron
Select Shell Script for Type of Task.
Enter v2board (can be customized) for Name of Task.
Select N Minutes 1 Minute for Period.
Enter php /www/wwwroot/path/artisan schedule for Script content.
Add a scheduled task to run every 1 minute based on the above information. -
Start the queue service.
aaPanel > App Store > Tools
Find Supervisor and install it. After installation, click on Settings > Add Daemon and fill in the following:
Enter V2board (can be customized) for Name.
Select www for Run User.
Select the website directory for Run Dir.
Enter php artisan horizon for Start Command.
Enter 1 for Processes.
Click Confirm to add and run.