- CPU: 1 core or above
- Memory: 2GB or above
- Storage: 10GB+ available space
- Operating System: Ubuntu 20.04+ / Debian 10+ (
⚠️ CentOS 7 is not recommended) - Latest version of aaPanel
- PHP 8.2
- MySQL 5.7+
- Redis
- Nginx (any version)
URL=https://www.aapanel.com/script/install_6.0_en.sh && \
if [ -f /usr/bin/curl ];then curl -ksSO "$URL" ;else wget --no-check-certificate -O install_6.0_en.sh "$URL";fi && \
bash install_6.0_en.sh aapanelIn the aaPanel dashboard, install:
- Nginx (any version)
- MySQL 5.7
- PHP 8.2
Required PHP extensions:
- redis
- fileinfo
- swoole
- readline
- event
- mbstring
Functions that need to be enabled:
- putenv
- proc_open
- pcntl_alarm
- pcntl_signal
- Navigate to: aaPanel > Website > Add site
- Fill in the information:
- Domain: Enter your site domain
- Database: Select MySQL
- PHP Version: Select 8.2
# Enter site directory
cd /www/wwwroot/your-domain
# Clean directory
chattr -i .user.ini
rm -rf .htaccess 404.html 502.html index.html .user.ini
# Clone repository
git clone https://github.com/cedar2025/Xboard.git ./
# Install dependencies
sh init.sh- Set running directory to
/public - Add rewrite rules:
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;
}- Install Supervisor
- Add queue daemon process:
- Name:
Xboard - Run User:
www - Running Directory: Site directory
- Start Command:
php artisan horizon - Process Count: 1
- Name:
- Type: Shell Script
- Task Name: v2board
- Run User: www
- Frequency: 1 minute
- Script Content:
php /www/wwwroot/site-directory/artisan schedule:run
- Name: Octane
- Run User: www
- Running Directory: Site directory
- Start Command:
/www/server/php/82/bin/php artisan octane:start --port 7010 - Process Count: 1
location ~* \.(jpg|jpeg|png|gif|js|css|svg|woff2|woff|ttf|eot|wasm|json|ico)$ {
}
location ~ .* {
proxy_pass http://127.0.0.1:7010;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-PORT $remote_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header Scheme $scheme;
proxy_set_header Server-Protocol $server_protocol;
proxy_set_header Server-Name $server_name;
proxy_set_header Server-Addr $server_addr;
proxy_set_header Server-Port $server_port;
}# Enter site directory
cd /www/wwwroot/your-domain
# Execute update script
git fetch --all && git reset --hard origin/master && git pull origin master
sh update.sh
# If Octane is enabled, restart the daemon process
# aaPanel > App Store > Tools > Supervisor > Restart Octane- Regular log checking
- Monitor system resource usage
- Regular backup of database and configuration files
- Empty Admin Dashboard: If the admin panel is blank, run
git submodule update --init --recursive --forceto restore the theme files. - Changes to admin path require service restart to take effect
- Any code changes after enabling Octane require restart to take effect
- When PHP extension installation fails, check if PHP version is correct
- For database connection failures, check database configuration and permissions
WebSocket enables real-time synchronization of configurations and user changes to nodes.
Add a WebSocket daemon process in aaPanel Supervisor:
- Name:
Xboard-WS - Run User:
www - Running Directory: Site directory
- Start Command:
php artisan ws-server start - Process Count: 1
Add the WebSocket location before the main location ^~ / block in your site's Nginx configuration:
location /ws/ {
proxy_pass http://127.0.0.1:8076;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 60s;
}Restart the Octane and WS Server processes in Supervisor.
The node will automatically detect WebSocket availability during handshake. No extra configuration is needed on the node side.