PHP Project
Here can manage php project, support the use of Nginx and Apache Openlitespeed.
It is recommended to use Cron to automatically back up website every day
PHP Project Overview
Function | Describe |
---|---|
Add site | Create new website, Can be created in batches |
Display the default page of the new site , click to configure the default page | |
Setting the default site , all unbound domain names and IPs are directed to the default site. Can effectively prevent malicious analysis. | |
Set the PHP version used when running PHP from the command line . | |
The domain name bound to the site. Click the site name of the current site to configure and modify the current site. | |
Status | Displays the running status of the current website. Click the running status of the current site to disable the current site. |
Back up | Displays the backup status of the current site, click the current site backup status, can View, Restore , Download and backup the current site file. |
Document Root | Displays the current site directory path , click the current site directory, it will directly jump to the current directory of Files management. |
Quota | Displays the current site quota, click to modify the current site quota. (Only supports XFS filesystem) |
Expired date | Displays the effective time of the current site, click to set the expiration time of the current site (default is permanent). |
Note | The Remark is used to record the current site information, such as the purpose of the site, etc. |
PHP | Displays the PHP version number of the current site, click to change the PHP version number of the current site |
SSL | Displays the SSL status of the current site, click to bind SSL to the current site |
Attack | The scanning website log displays the attack status of the current website. Click to view the attack scanning details. |
Stats | Use Website statistics-v2 to view the current site’s traffic, connections, etc. |
WAF | Set the WAF configuration of the current site |
Conf | Set the configuration of the current site |
Delete | Delete current site, after deletion, the website directory will be moved to the recycle bin of the Files interface. |
Site name
or Conf
When clicking Site name or Conf, can modify the site configuration, SSL, log, etc.
- Domain Manager: Add, delete domain/IP
- Subdirectory binding: Bind to the specified directory under the site using a new subdomain
- Site directory
Site directory: Set the deployment directory of the current website
Running directory: Specify the secondary directory as the
running directory
, such as LaravelAnti-XSS attack: Anti-cross-site attack (open_basedir), prevent hackers from conducting intrusion attacks through other site directories, that is, add and delete
.user.ini
filesWrite access log: Turn on/off the log of the current site and add
access logs
Password access: Turn on/off account and
password access
to the entire current site
- Limit access
- Limit access: Specifying the site directory requires an account and password
- Deny access:
Disable
access to files in the specified directory of the site
- Traffic control:
Limit traffic
control for the current site
URL rewrite: create or use an existing template. Through conversion, you can convert dynamic web pages into static pages to enhance the friendliness of the search engine
If replace Apache with Nginx, you need to reset the URL rewrite to the Nginx configuration.
- Default indexes: Set the default homepage of the current website, that is, the index file of the site
- Config: View and modify the
configuration
of the current site.
Note that if there is a # comment, please do not delete or modify it.
- SSL
Curr, other Certs: View, disable, save (enable) the SSL certificate of the current site, or paste the SSL certificate content settings
Business Certificate: aaPanel commercial certificates for cooperation with SSL providers
If purchased Business Certificate, can check out this tutorial on how to verify it:
Let's Encrypt:
File verification: Let's Encrypt servers verify domain ownership by accessing this website's files
If an error occurs, please troubleshoot first and then verify. Multiple errors will be limited Let's Encrypt Rate Limits.
If you encounter verification failure, please troubleshoot according to the prompts
- Maybe the domain name resolution has not taken effect and no resolution has been added.
- Let's Encrypt cannot access your website. You can check redirection and proxy issues. Try to access and see if the display is normal. Apply again after it is normal.
If file verification is not available, use DNS verification
If restrictions appear, use third-party website SSL
DNS verification (Wildcard support): Let's Encrypt server verifies domain name ownership by parsing DNS records. If DNS records are added manually, they will not be automatically renewed.
If the domain name is in
CloudFlare
, you can use theDNS API
, otherwise you can only manually add the TXT record according to the prompts.Adding a txt record takes a certain amount of time to take effect. During this period, do not close the txt recording window prompted by aapanel
Manually adding a txt record will not automatically renew the Let's Encrypt SSL certificate.
Click to view How to apply for a pan-domain name certificate
Certificate holder: The SSL certificate that has been set will be saved here
- PHP version: Set the PHP version of the current site, according to the version required by the current site, if you need to add the PHP version, you can add in the
App Store
- Composer: Composer is the mainstream dependency package manager for PHP. If your project uses Composer to manage dependency packages, you can upgrade or install the dependencies here.
- Redirect: Set the current site's specified domain name or directory
301/302
jump specified address
- Reverse proxy: Set the current website
proxy
to access resources of other sites
- Hotlink Protection: Only the specified domain name can be used to access the resources of the current site. If it is not the specified domain name, an error will be returned.
- Response log:
- Access log: Access log of current site
- Error log: Error log for current site
- Log Security Analysis: Scan the log files of the current site for requests containing attack types (types include: xss, sql, san, php)
Add site -- Create site
Function | Describe |
---|---|
Domain name | Fill in the domain name and port to be bound.(www hostname is not automatically created) |
Description | Describe the role of the website |
Website Path | The path of the current website file, you can choose the creation point yourself, try to use the default path /www/wwwroot/ for easy management. |
FTP | When creating a website, you can choose whether to also create an FTP account when creating a website |
Database | When creating a website, you can choose whether to create a Mysql database at the same time when creating a website |
PHP version | Choose your website needs to be executed with a version of PHP, need to get more PHP version can be installed in the app store of the panel |
Site category | Used to classify websites to make management more convenient |
Add site -- Batch create
Create sites in batches
Batch format: Domain|Document Root|FTP|Database|PHP version
Example:
aapanel.com|/www/wwwroot/aapanel.com|1|1|83 aapanel.store|/www/wwwroot/aapanel.store|1|1|83
Add site -- Wordpress deploy
CAUTION
Deprecated, Old Wordpress deploy, Please use WP Toolkit
Default Page
The default page for newly created sites. Existing sites will not be modified.
Function | Describe |
---|---|
Default page | The site creates a prompt page generated by default. |
404 page | The status code is 404, the error prompt page returned by the server. |
Unbound domain page | Nginx blank page / Apache blank page: The server cannot find the corresponding site, the error page prompted. |
Stop page | a page used to feed back site stop information. If there is no related requirement, please do not modify it. |
Default WebSite
After setting the
default site
, all unbound domain names and IPs are directed to the default site. Can effectively prevent malicious analysis.
PHP CLI version
Set the PHP version used when running PHP from the
command line
. This needs to be reset after installing a new PHP version.
Web program management
Manage the web program support Nginx or Apache or OpenLiteSpeed
All categories
Add, Settings, Delete website categories
How to use categories
First select the site and then select Set category in the lower left corner to set the category.
Back up
View, restore, backup, delete, download backup files of the specified site
Quota
View
andmodify
the spacequota
of the specified site
Expired date
View and modify the
expiration date
of the specified site
Search box
- Quickly find websites through Domain or Remarks
Batch operation
Can be used when selecting one or more websites
Function | Describe |
---|---|
Enable website | Enable sites in batches |
Disable website | Stop sites in batches |
Backup website | Backup sites in batches |
Set expired date | Set site expiration time in batches |
Set php version | Set site PHP version in batches |
Set category | Set site categories in batches |
Delete website | Delete sites in batches |
Usage example
- If own the domain
testphpbb.com
and want to deploy a phpBB website in aaPanel using the subdomain:www.testphpbb.com
?
In the domain provider, point the IP of the A record of
www.testphpbb.com
to the server IP of aaPanel, such as1.2.3.4
Add the www.testphpbb.com domain to aaPanel, create a database, and record the created database account and password.
Check out phpBB’s deployment software requirements:
- Find the deployment requirements from Official Documentation. This example uses PHP 8.3, mysql 5.7
- If the corresponding software is not installed in your aaPanel, you can install it in the App Store
Downloaded phpBB package file
- Download directly from the
Files
interface of aaPanel Software package link - You can first download it from the official website to your local computer and then upload it to /www/wwwroot/
- Download directly from the
Select phpBB-3.3.13.zip and unzip the file to /www/wwwroot/www.testphpbb.com
Find the www.testphpbb.com directory, click it to enter the directory, and view the decompressed directory structure
After decompression, the directory of the website program is under phpBB3, so the default directory of the site needs to be modified to phpBB3
The software package directory of different programs may be different, please modify it according to the actual situation.
Set SSL for the site. If SSL is not set, it can only be accessed using
http
Use a browser to visit http://www.testphpbb.com
Click Install and enter the information as prompted.
- Enter administrator information
- Enter database information
- If you have not recorded the database account and password, you can view them in the
Databases
interface.
- If you have not recorded the database account and password, you can view them in the
- Continue to follow the prompts to complete the installation until it is complete
After the installation is complete, visit again http://www.testphpbb.com
- At this point, the deployment of phpBB has been completed. For more usage settings of phpBB, please refer to the official documentation.
Feedback or Suggestions
If you encounter problems or suggestions during use, please contact us through the following methods:
- (Please describe in
detail
or providescreenshots
)
- Forum: https://www.aapanel.com/forum
- Email: [email protected]