Appearance
XMPlus on aapanel - LNMP (CentOS 7 NGINX)
WARNING
The installer needs to be run as root, either directly from the terminal or remotely, using SSH. If you do not do this, the installer will not proceed.
Requirements
| Minimum | Recommended | |
|---|---|---|
| CPU | 1 core, 64-bit | 4 cores |
| Memory | 1 GB | 4 GB |
| Disk | 10 GB HDD | 40 GB SSD |
| Operating System | CentOS 7 | CentOS 7 |
Install aapnel
Download the installation script for the latest release:
bash
yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.shReboot server
bash
rebootinstall php 8.1
App Store -> PHP-8.1
Remove php7.4
App Store -> PHP-7.4 uninstall
Install Ioncube, redis, fileinfo
App Store -> PHP-8.1 -> Setting -> Install extentions > Ioncube, redis, fileinfo
Delete disabled functions
App Store -> PHP-8.1 -> Setting -> Disabled functions -> remove from list (exec, putenv, proc_open)
Add Website
WARNING
Panel must be installed on main authorized domain eg, tld.com or www.tld.com.
Website -> Add site
Delete the files in the directory and upload XMPlus.zip
bash
cd /www/wwwroot/domain.com
rm -rf .htaccess 404.html index.html
unzip XMPlus.zipInstall required packages with composer
bash
php composer.phar install -nDownload applications
bash
php console downloadRename or delete .htaccess in the folloowing paths to
.htaccess.bak
storage/data/.htaccess.bak
public/.htaccess.bakCreate two database for XMPlus and Telegrammm bot
Databases -> Add database
Import sql/xmplus.sql to your xmplus database and sql/telegram.sql to the bot database.
Edit panel config file
bash
cd /www/wwwroot/domain.com
vi /www/wwwroot/domain.com/config/config.phpFill in your databases and redis server details.
Create XMPlus Admin account
bash
cd /www/wwwroot/domain.com
php console create:adminConfigure site directory and pseudo-static
Edit the Website -> added site -> Conf -> Site directory -> Running directory choose /public and save
Edit the Website -> added site > Conf -> URL rewrite
location / {
try_files $uri /index.php$is_args$args;
}Add SSL to website
Edit the Website -> added site > Conf > SSL
Check site domain and apply for certificate, Enable Force HTTPS
Adding cronjob for XMPlus
run ssh cron command
bash
crontab -eAdd cronjob
bash
* * * * * cd /www/wwwroot/domain.com && sudo /usr/bin/php console run:scheduler >> /dev/null 2>&1Login panel https://domain.com
XMPlus