How to setup V2board - waheedsabir/v2ray-poseidon GitHub Wiki
Site Reference
How to Install V2board on DebianThe minimum configuration requirement is
1Core/512M RAM (Debian server is Best option for this php >=7.3 nginx >=1.17 mysql 5.x
1. Install aaPanel or Pagoda (bt.cn)
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh
after installation the pancel login with credentials which created in shell . also install lets encrypt within the shell
after login install LNMP with above req. Please note that if you install wrong Req its make issue when you install V2board
2. Install Redis
aaPanel panel> App Store> find PHP 7.3 and click Setting> Install extentions > redis to install.
3.Lift the banned function in PHP 7.3
You need to disable some Php 7.3 functions which is available in below path .
aaPanel panel> App Store> find PHP 7.3 Click Setting> Disabled functions will be putenv
proc_open
pcntl_alarm
pcntl_signal
from the list.
4. Add Site
In this point you have to add a domain , you can add subdomain as well , Before adding domain make sure your domain pointing to the IP . you can test
pointing using ping example.com
. we are going to use this domain for v2board panel.
aaPanel> Website> Add site
-
In Domain, fill in the domain name you point to the server.
-
In Database, select MySQL,
-
in PHP Verison, select PHP-73.
5. Install V2Board
Log in to the server via SSH and access the site path such as: /www/wwwroot/your
site domain name .your = this is the name when you add the website.
You can change root using
cd /www/wwwroot/your
Note : The following commands need to be executed in the site directory.
chattr -i .user.ini
rm -rf .htaccess 404.html index.html .user.ini
Note : The following commands need to be executed in the site directory.
git clone https://github.com/v2board/v2board.git ./
Run the command to download composer.phar to the current directory.
wget https://getcomposer.org/download/1.9.0/composer.phar
Run the command to install the package.
php composer.phar install
Note If an error is reported during installation or the installation cannot be continued, please allocate swap. For how to allocate swap, please refer to google.
6 Run the command to install V2board
php artisan v2board:install
**if database connection failed occure than you have to allow permission "everyone" from database Database > choose database > permission allow to everyone
** after installation you have to visit the site using (htpps or http)yoursitename.com/admin
One more error maybe occur that is 404 Not Found this is because you didnt give directory point you must follow the step 7
7. Configure site directory and pseudo-static
After adding, edit the added site> Site directory> Running directory and select /public to save.
After the addition is complete, edit the added site > URL rewrite
and fill in the pseudo-static 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; }
++++++++++++++++++++++++++++++++++++++++++++++++++
8. Configure scheduled tasks
aaPanel> Cron.
- In Type of Task select Shell Script
- in Name of Task fill in v2board
- in Period select N Minutes 1 Minute
- in Script content fill in
php /www/wwwroot/DIRECTORY PATH/artisan
schedule:run (path = your v2board dirtector path likephp /www/wwwroot/v2board/artisan
)
According to the above information, add a scheduled task that is executed every 1 minute
9. Start the queue service (optional for Email services)
V2board's mail system relies heavily on the queue service. If you want to use mail verification and mass mailing, you must start the queue service. The following uses the PM2 service of nodejs in aaPanel to guard the queue service as a demonstration.
aaPanel panel> App Store> Deployment
Find PM2 Manager 4.2.2 to install, after the installation is completed, fill in as follows
In the Project root directory, select the site directory, in the Startup file name, fill in pm2.yaml in the project name, fill in v2board
After filling in, click Add to run. Of course, you can also use the supervisor to guard.
aaPanel may cause problems when installing PM2, you can not install it, you can manually install PM2. How to install can refer to Google
common problem
Q: 500 error A: Check the permissions of the root directory of the site, recursively 755, to ensure that the directory has permission to write files, it may also be caused by the Redis extension is not installed or Redis is not followed. You can troubleshoot errors or enable debug mode by checking the logs under stroage/logs.
Q: 403 Not found Please follow the Step # 7 if you face this type error
**Q: Cron error **
Most of time in installation cron job does not work due to incorrect path in Step 8 . php /www/wwwroot/path/artisan
here path mean that you have to place with your own directory path like php /www/wwwroot/v2board/artisan
**Q: 500 error ** This error probably happened due to permission issue if above permission does not work than apply these command
Change the root dir to /www/wwwroot/
and apply these command
chmod 755 -R v2board
here v2board is website directly name
chown www:www -R v2board