JimiPower Self-Service Website Builder System Installation Instructions
JimiPower Installation Guide
Version: 1.0.2
Applicable installation package: Customer installation package downloaded from the official website (already includes `vendor`, `public/build`, `public/admin`)
Technical support: 695189060@qq.com
After uploading, open the installation wizard in a browser.
Pre-installation Checklist
| Item | Requirement |
| PHP | 8.1 or 8.2 |
| Database | MySQL 5.7 or above, charset `utf8mb4` |
| PHP extensions | `pdo_mysql`, `mbstring`, `openssl`, `curl`, `gd`, `fileinfo`, `xml`, `bcmath`, `json` |
| Website running directory | Must point to the `public` directory in the program |
| Writable directories | `storage`, `bootstrap/cache`, `public/uploads`, `public/storage` |
After extraction, the program root directory should contain `artisan`, `vendor`, `app`, and `public`. The `public` directory should contain `install`, `admin`, and `build`. Uploading only `public` will not allow installation.
The database account must have permission to create databases. The installation wizard will create the database; if it does not exist, it will be created automatically. If the virtual host prohibits database creation, the wizard will stop at "Database connection failed." Please create a database with the same name in the hosting control panel first; if it still fails, the host does not allow the program to create databases, and you will need to switch to a cloud server or BaoTa.
Choosing Among Three Environments
| Environment | Suitable? |
| BaoTa Panel (cloud server) | Suitable; install following the BaoTa steps below |
| Alibaba Cloud virtual host | Only suitable when PHP 8.1, the running directory can be changed to `public`, and the database account can create databases |
| Other virtual hosts | Same conditions as Alibaba Cloud virtual host |
Do not install on hosts where the running directory cannot be changed to `public`. Otherwise, `.env` and program files will be exposed in the website root directory.
Installation Wizard (Same for All Three Environments)
After preparing the running directory and database:
1. Open `https://your-domain/install` in a browser.
2. Agree to the license agreement and proceed to environment detection. Both `public/build` and `public/admin` should show "Included."
3. Fill in the website address, database, and administrator. The website address should be the full address, e.g., `https://www.example.com`. The administrator requires an email and a password of at least 6 characters. The admin account is this email; there is no fixed default account.
4. Click Start Installation and wait for migrations and initial data to complete. Do not close the page midway.
5. After seeing "System Installed," open the front-end homepage and `/admin`, and log in with the email you just entered.
6. Delete the `public/install` directory on the server.
The trial period starts after the first visit via the official domain. `localhost` and intranet addresses are not registered for trials.
The installation wizard will write `PUBLIC_DISK_DIRECT=true`, so uploaded files are stored directly in `public/storage`. If the virtual host prohibits creating symbolic links, images can still be uploaded as long as this directory exists and is writable.
BaoTa Panel Installation
Applicable to cloud servers with BaoTa installed.
1. In the BaoTa "App Store," install Nginx, MySQL 5.7 or 8.0, and PHP 8.1 or 8.2.
2. In "Websites," add a site and note the website root directory, e.g., `/www/wwwroot/www.example.com`.
3. Extract the installation package to this root directory, located at `/www/wwwroot/www.example.com/`.
4. In the website settings, change the "Running Directory" to `/public`.
5. Select PHP 8.1 or 8.2 as the PHP version in the website settings. In that PHP's "Install Extensions," confirm the extensions listed above are installed.
6. Open that PHP's "Disabled Functions" and remove `putenv` and `symlink`. If `proc_open` is in the list, remove it as well. Save and restart PHP.
7. Change the owner of the following directories to the website user (typically `www` in BaoTa) and set permissions to writable:
`storage` Set www ownership for this directory 775
`bootstrap/cache`
`public/uploads`
`public/storage` (create if it does not exist)
8. In "Databases," add a database, grant the account full privileges on that database, and allow connections from `localhost`. Select `utf8mb4` as the charset. The installation wizard can also create the database itself, but creating it in the panel first is more reliable.
9. Go to "Website" → "Settings" → "Pseudo-static" and select Laravel, or paste:
```nginx
location / {
try_files $uri $uri/ /index.php?$query_string;
}
```
10. Open `https://your-domain/install` and complete the wizard as described in the previous section. Fill in the database host as `127.0.0.1`, port as `3306`, and the database name, username, and password as created in BaoTa.
11. After successful installation, delete `public/install`.
If anti-cross-site protection is enabled on the BaoTa site, the website directory must include the entire program root directory, not just allow access to `public`; otherwise, the program cannot read `vendor` and `.env` from the parent level.
Alibaba Cloud Virtual Host Installation
First, verify these four items in the Alibaba Cloud virtual host control panel. If any one is not met, do not proceed:
- PHP version can be switched to 8.1 or 8.2. Packages with only PHP 7.x cannot install.
- The website root directory or running directory can be pointed to `public`. The root directory is usually called `htdocs` or `wwwroot`.
- A MySQL database can be created, and the host address, database name, username, and password are visible. The host address is often not `localhost`; use what the control panel displays.
- The single-file upload limit is greater than the installation package size, or the control panel supports online extraction. The installation package is approximately 27MB.
Steps:
1. In the control panel, switch PHP to 8.1 or 8.2 and enable the extensions listed in this document. Disabled functions must not include `putenv`.
2. Use FTP or the file manager to upload all extracted files to the directory where the host allows programs to be placed. Do not upload only `public`.
3. Change the website root directory to `public` under the program. After changing, visiting the domain in a browser should show the installation page, not a file list.
4. Create a database in the control panel with charset `utf8mb4`. Note the host address, port, database name, username, and password.
5. Grant write permissions to `storage`, `bootstrap/cache`, `public/uploads`, and `public/storage`. Virtual hosts typically set directory permissions to `755` or `777` in the file manager. After installation, if the host allows, change `777` back to `755`.
6. Confirm that `.htaccess` in the `public` directory has been uploaded. Most Alibaba Cloud virtual hosts use it for pseudo-static. If pages return 404, add the following to the host's "Pseudo-static" or "Rewrite Rules":
```apache
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
```
7. Open `https://your-domain/install`. Fill in the database host, port, database name, and password exactly as shown in the control panel; do not change them to `localhost` on your own.
8. After successful installation, delete `public/install`.
Virtual hosts typically cannot execute `php artisan storage:link`, nor is it needed. The installation wizard already makes uploads write directly to `public/storage`. Please confirm this directory exists and is writable.
If the wizard reports a database connection failure containing `1044` or `Access denied`, it means this database account cannot create databases. The database name in the control panel must exactly match what is entered in the wizard. If it still fails, the host is not suitable for the current installation wizard.
Other Virtual Host Installation
For cPanel, DirectAdmin, Plesk, and other domestic virtual hosts, judge based on the conditions for Alibaba Cloud virtual hosts.
1. In the panel, set PHP to 8.1 or 8.2 and enable `pdo_mysql`, `mbstring`, `openssl`, `curl`, `gd`, `fileinfo`, `xml`, `bcmath`.
2. Upload the complete program. Change the website root directory to `public`. In cPanel's domain settings, you can change the Document Root; DirectAdmin and Plesk also have corresponding website directory settings.
3. Create a MySQL database and user in the panel, add the user to the database, and grant full privileges. Use `utf8mb4_unicode_ci` as the charset.
4. Set the directories `storage`, `bootstrap/cache`, `public/uploads`, and `public/storage` as writable.
5. For Apache hosts, keep `public/.htaccess`. For Nginx hosts, add the `try_files` rule from the BaoTa section to the site configuration.
6. Open `/install` to complete the wizard. Use the database host shown in the panel, commonly `localhost` or the intranet address provided by the panel.
7. Delete `public/install`.
If `open_basedir` is enabled, the allowed scope must include the entire program root directory, not just `public`.
Post-installation Checks
- The front-end homepage opens.
- `https://your-domain/admin` can be logged into with the email entered during installation.
- Upload an image in the admin panel and it displays on the front end. If it does not display, check whether `public/storage` is writable.
- `public/install` no longer exists on the server.
- Directly visiting `https://your-domain/.env` in a browser should return 404. If file contents are visible, the running directory is not pointed to `public` and must be corrected immediately.
FAQ
**Environment detection reports missing `public/build` or `public/admin`**
The uploaded package is not the complete installation package, or these two directories were missed during upload. Re-extract the complete installation package and upload again. Do not run `npm install` on the server.
**Opening the domain returns 404 or downloads `index.php`**
The running directory is not `public`, or pseudo-static is not working. First change the running directory, then add the rewrite rules according to the corresponding environment.
**Database connection failed**
Verify the host, port, database name, username, and password. The database name can only contain letters, digits, and underscores. If `1044` appears on a virtual host, the account does not have database creation permission.
**Installation stops midway with a directory not writable error**
Grant write permissions to `storage`, `bootstrap/cache`, `public/uploads`, and `public/storage`. In BaoTa, also confirm these directories belong to `www`.
**Admin panel opens but front-end styles are broken**
`public/build` was not fully uploaded. Overwrite the same-named directory on the server with `public/build` from the installation package.