Skip to content

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

alt text

FunctionDescribe
Add siteCreate 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.
StatusDisplays the running status of the current website. Click the running status of the current site to disable the current site.
Back upDisplays 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.
QuotaDisplays the current site quota, click to modify the current site quota. (Only supports XFS filesystem)
Expired dateDisplays the effective time of the current site, click to set the expiration time of the current site (default is permanent).
NoteThe Remark is used to record the current site information, such as the purpose of the site, etc.
PHPDisplays the PHP version number of the current site, click to change the PHP version number of the current site
SSLDisplays the SSL status of the current site, click to bind SSL to the current site
AttackThe scanning website log displays the attack status of the current website. Click to view the attack scanning details.
StatsUse Website statistics-v2 to view the current site’s traffic, connections, etc.
WAFSet the WAF configuration of the current site
ConfSet the configuration of the current site
DeleteDelete 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 alt text

  • Subdirectory binding: Bind to the specified directory under the site using a new subdomain alt text

  • Site directory
    1. Site directory: Set the deployment directory of the current website

    2. Running directory: Specify the secondary directory as the running directory, such as Laravel

    3. Anti-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 files

    4. Write access log: Turn on/off the log of the current site and add access logs

    5. Password access: Turn on/off account and password access to the entire current site alt text


  • Limit access
    1. Limit access: Specifying the site directory requires an account and password alt text
    2. Deny access: Disable access to files in the specified directory of the site alt text

  • Traffic control: Limit traffic control for the current site alt text

  • 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.

    alt text


  • Default indexes: Set the default homepage of the current website, that is, the index file of the site alt text

  • Config: View and modify the configuration of the current site.

Note that if there is a # comment, please do not delete or modify it.

alt text


  • SSL
    1. Curr, other Certs: View, disable, save (enable) the SSL certificate of the current site, or paste the SSL certificate content settings alt text

    2. Business Certificate: aaPanel commercial certificates for cooperation with SSL providers

      If purchased Business Certificate, can check out this tutorial on how to verify it:

      alt text

    3. Let's Encrypt:

      • File verification: Let's Encrypt servers verify domain ownership by accessing this website's files alt text

        1. If an error occurs, please troubleshoot first and then verify. Multiple errors will be limited Let's Encrypt Rate Limits.

        2. 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.
        3. If file verification is not available, use DNS verification

        4. 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. alt text

        1. If the domain name is in CloudFlare, you can use the DNS API, otherwise you can only manually add the TXT record according to the prompts.

        2. 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

        3. 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

    4. Certificate holder: The SSL certificate that has been set will be saved here alt text


  • 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 Storealt text

  • 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. alt text

  • Redirect: Set the current site's specified domain name or directory 301/302 jump specified address alt text

  • Reverse proxy: Set the current website proxy to access resources of other sites alt text

  • 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. alt text

  • Response log:
    1. Access log: Access log of current site alt text
    2. Error log: Error log for current site alt text
    3. Log Security Analysis: Scan the log files of the current site for requests containing attack types (types include: xss, sql, san, php) alt text

Add site -- Create site

FunctionDescribe
Domain name
Fill in the domain name and port to be bound.(www hostname is not automatically created)
DescriptionDescribe the role of the website
Website PathThe path of the current website file, you can choose the creation point yourself, try to use the default path /www/wwwroot/ for easy management.
FTPWhen creating a website, you can choose whether to also create an FTP account when creating a website
DatabaseWhen creating a website, you can choose whether to create a Mysql database at the same time when creating a website
PHP versionChoose 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

alt text

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

    alt text

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.

FunctionDescribe
Default pageThe site creates a prompt page generated by default.
404 pageThe 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 pagea page used to feed back site stop information. If there is no related requirement, please do not modify it.

alt text

Default WebSite

After setting the default site, all unbound domain names and IPs are directed to the default site. Can effectively prevent malicious analysis.

alt text

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.

alt text

Web program management

Manage the web program support Nginx or Apache or OpenLiteSpeed

alt text

All categories

Add, Settings, Delete website categories

alt text

How to use categories

First select the site and then select Set category in the lower left corner to set the category.
alt text

Back up

View, restore, backup, delete, download backup files of the specified site

alt text

Quota

View and modify the space quota of the specified site

alt text

Expired date 

View and modify the expiration date of the specified site

alt text

  • Quickly find websites through Domain or Remarks

Batch operation

Can be used when selecting one or more websites

FunctionDescribe
Enable websiteEnable sites in batches
Disable websiteStop sites in batches
Backup websiteBackup sites in batches
Set expired dateSet site expiration time in batches
Set php versionSet site PHP version in batches
Set categorySet site categories in batches
Delete websiteDelete sites in batches

alt text

Usage example

  • If own the domain testphpbb.com and want to deploy a phpBB website in aaPanel using the subdomain: www.testphpbb.com?
  1. In the domain provider, point the IP of the A record of www.testphpbb.com to the server IP of aaPanel, such as 1.2.3.4alt text

  2. Add the www.testphpbb.com domain to aaPanel, create a database, and record the created database account and password. alt textalt text

  3. Check out phpBB’s deployment software requirements: alt text

    • 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
  4. Downloaded phpBB package file

    • Download directly from the Files interface of aaPanel Software package linkalt text
    • You can first download it from the official website to your local computer and then upload it to /www/wwwroot/
  5. Select phpBB-3.3.13.zip and unzip the file to /www/wwwroot/www.testphpbb.com alt text

  6. Find the www.testphpbb.com directory, click it to enter the directory, and view the decompressed directory structure alt text

  7. 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. alt text

  8. Set SSL for the site. If SSL is not set, it can only be accessed using httpalt text

  9. Use a browser to visit http://www.testphpbb.com

  10. Click Install and enter the information as prompted.

    • Enter administrator information alt text
    • Enter database information alt text
      1. If you have not recorded the database account and password, you can view them in the Databases interface. alt text
    • Continue to follow the prompts to complete the installation until it is complete alt text
  11. After the installation is complete, visit again http://www.testphpbb.comalt text

    • 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 provide screenshots)
  1. Forum: https://www.aapanel.com/forum
  2. Email: [email protected]