This article was written on 2022.06.09. Since I no longer use this panel or OLAINDEX, there are no recent updates. It might not be reproducible.
I don’t recommend using BT Panel (宝塔面板).
Requirements
PHP Extensions:
- PHP >= 7.4
- PHP OpenSSL Extension
- PHP PDO Extension
- PHP Mbstring Extension
- PHP Tokenizer Extension
- PHP XML Extension
- PHP Ctype Extension
- PHP JSON Extension
- PHP BCMath Extension
- PHP Fileinfo Extension
Minimum installation standard: nginx+php
Environment Setup
PHP
Search for and install PHP 7.4 in the BT Panel App Store.
Open the Settings for PHP 7.4, go to Disabled Functions.
Remove these three functions from the list: proc_open, proc_get_status, and putenv.
Composer
The default BT Panel composer source is Alibaba Cloud and usually doesn’t need modification. Other versions might require it:
| |
Deployment
Create a new website. Remember to select PHP-74 as the PHP version.
Enter the website root directory, open the Terminal, and run the following commands:
| |
If you need to skip the fileinfo check during step five:
| |
The admin username and password will be displayed after installation.
Configuration
In the Website section, click your domain and find Site Directory. Change the running directory to /public and save.
Click URL Rewrite (伪静态), select laravel5, and save.
Click Config:
| |
Admin Panel
The login URL is xxx.com/admin (replace xxx.com with your domain).
Default username: admin, password: 123456.