AdminsForum

Paste the error. Find the fix.

Step-by-step guides and community answers for Linux servers, VPS and hosting control panels.

New threads

The latest guides and questions from every forum.

aaPanel PHP & Extensions Guides

Understand PHP-FPM Settings in aaPanel

Quick answer
Open App Store → Installed → the PHP version your site uses → Setting → Optimization. Review the process mode and worker limits before changing them. More PHP workers do not automatically mean a faster website: they must fit available memory and the workload.

What was verified
We inspected PHP 8.5's Optimization screen in the AdminsForum aaPanel 8.0.6 lab and ran the version-specific PHP-FPM configuration test successfully. We did not change the worker settings or run a performance benchmark. The values in the screenshot describe the lab, not a universal recommended setup.

1. Select the right runtime
Check your website's PHP version in Website settings. Then open that same version in App Store → Installed. Different installed PHP versions can have separate PHP-FPM services and worker pools. Count their combined memory demands when sizing the server.

2. Open Optimization and record current values
Choose Optimization in the PHP manager. Before making a change, record Connection, Information, Running mode, max_children and the startup/spare-worker settings. Save a copy of the relevant configuration through your normal backup process too.

   
AdminsForum lab: the PHP-FPM settings screen. The displayed preset and numbers are not a benchmarked recommendation for other servers.

The lab used a UNIX socket and Dynamic mode. Its displayed worker values were max_children=50, start_servers=5, min_spare_servers=5 and max_spare_servers=20. We retained these settings for the inspection.

3. Understand the worker controls
  • max_children: the worker limit. It constrains how many PHP requests can be handled simultaneously.
  • start_servers: workers created initially in Dynamic mode.
  • min_spare_servers: desired minimum number of idle workers in Dynamic mode.
  • max_spare_servers: desired maximum number of idle workers in Dynamic mode.
Idle workers and busy workers are different. A site with a few long-running requests can exhaust its available workers despite a modest visitor count.

4. Understand the process modes
  • Static: maintains a fixed worker count.
  • Dynamic: adjusts worker numbers using startup and spare-worker settings, within max_children.
  • On-demand: creates workers when requests need them.
Choose a mode from the workload and memory constraints, not from its name alone. A change can affect responsiveness and resource use; compare actual behavior before and afterward. The lab's current mode was inspected, rather than switching modes to claim an unmeasured improvement.

5. Plan a realistic memory budget
Reserve RAM for the operating system, database, web server, panel, mail services and other processes first. Only the remaining budget can be assigned to PHP workers.

For illustration, if you reserve 1 GB for a PHP pool and measure representative busy workers at about 80 MB each, 1024 ÷ 80 is roughly 12 workers before extra headroom. Those numbers are a calculation example, not measurements from this lab. Real worker memory depends on your application, plugins and requests. Measure under representative activity and leave room for larger requests.

The PHP memory_limit setting controls a script's permitted memory; it is not the same as the total resident memory of each FPM process. Avoid multiplying a generic per-worker estimate by a large worker count and calling it guaranteed safe. Also include other active PHP versions and pools.

6. Keep the web-server connection aligned
The lab used the local UNIX socket /tmp/php-cgi-85.sock. Do not change the connection address simply while experimenting with worker limits: the web server must point to the matching PHP-FPM endpoint, or requests can fail with 502 errors. Keep FastCGI endpoints private.

See the Nginx 502 troubleshooting guide if the site fails after switching PHP versions.

7. Validate before reloading
If you decide a change is justified, change one aspect at a time and use Save. On this PHP 8.5 installation, the read-only configuration test is:
Code:
/www/server/php/85/sbin/php-fpm -t
Our lab returned that its php-fpm.conf test was successful. The version-specific path matters; use the executable belonging to the runtime you changed. This checks configuration validity, not website performance or memory capacity.

If validation fails, correct the error or restore the recorded configuration before reloading. When valid, use Service → Reload and confirm the service is On. Then test the website. We verified the existing configuration but did not apply a tuning change in this walkthrough.

8. Compare the same workload
Watch CPU, memory, response time, errors and PHP-FPM logs while repeating a representative workload. A quiet homepage request is not a load test. Use aaPanel monitoring to compare the same period of activity.

If the pool reaches max_children, investigate slow PHP requests and database queries as well as capacity. Adding workers can increase simultaneous database work and make an already overloaded server slower. If memory pressure worsens after a change, restore the previous settings and review the budget.

When to roll back
If errors, swapping, service failures or response times worsen, return to your recorded values. Save, validate and reload the correct runtime. Do not keep stacking unrelated changes while trying to diagnose one issue.

Completion checklist
  • Website PHP version and corresponding PHP-FPM service identified.
  • Original settings and configuration preserved.
  • Worker budget includes other services and PHP versions.
  • Connection endpoint kept aligned with the web server.
  • Configuration validation passes before reload.
  • Any change is compared against the same workload and has a rollback plan.

Reference: PHP official FPM configuration manual.
DEV 10-12-2026, 03:18 AM Read thread
aaPanel Backups & Migration Guides

Schedule Automatic MySQL Database Backups in aaPanel

Quick answer
Open Cron → Backup Database, choose the MySQL database type and your specific database, then set a daily time, destination and retention count. Click Add Task, use Execute for the first test, and read the Log. Check the resulting SQL archive before trusting future runs.

Tested result
On the AdminsForum lab with aaPanel 8.0.6 and MariaDB 10.11, we created Backup Database[af_wordpress]--mysql. The daily schedule was 02:25 on the server's clock, with Local Disk and three retained copies. The first manual run exported a 2.11 MB database and produced a 193.33 KB .sql.gz file. The log reported Successful, and gzip integrity checking passed. We paused this tutorial-only task after testing. The next unattended daily trigger and restoration of this particular dump were not tested.

1. Find the correct database
Open Databases and identify the database used by your application. Do not assume its name matches the domain. For WordPress, the DB_NAME value in its configuration identifies the database, but keep that file private because it also contains credentials.

If your application uses more than one database, include each required database in the backup plan. Our example selects af_wordpress only. It does not back up the other databases on the server.

2. Open the backup task form
Click Cron in the left-hand menu. Under Add Task, set Task type to Backup Database. In Backup database, select MySQL for this MySQL/MariaDB example. The lab runs MariaDB but aaPanel presents this engine family as MySQL in the task form.

Use Database to select the required database instead of leaving ALL selected unless every listed database should be included. The task name is generated from your selection.

3. Choose a time and destination
Set Execute cycle to Daily and enter the hour and minute. We used 02:25 so it did not start at the same time as the website-file job. Check the server clock and time zone first. Staggering jobs helps avoid simultaneous compression and database activity, but does not guarantee that file and database backups represent the same instant.

For this first test we selected Local Disk and kept the latest three copies. Choose a retention count based on available space and how far back you need to recover. Repeated manual executions can also create copies; retention is not automatically equivalent to a number of days.

   
AdminsForum lab: the selected WordPress database, daily schedule, local destination and copy count.

The Backup reminder setting was left at non-receipt. No notification delivery was tested. If you enable alerts later, test the notification channel rather than assuming it works.

4. Create the task and run it once
Click Add Task. Check the new row's database name, Running status, time and destination. Click Execute in that exact row and confirm the prompt. Wait for the export and compression to finish, then read Log or use Refresh log.

   
AdminsForum lab: successful database export, compressed size, output path and retention result.

A successful result should identify the database you intended and the location of a non-empty archive. A task being present in the list does not prove a backup was produced.

Our archive was placed under:
Code:
/www/backup/database/mysql/crontab_backup/af_wordpress/
The log provided its exact timestamped filename. Your version or storage configuration may use a different path; follow your own log.

5. Verify the compressed SQL file
Find the file using aaPanel Files or your normal secure server-access method. Keep it outside public website directories. A database dump can contain member information, application settings and other private data.

If you use the terminal, verify gzip integrity without extracting the dump:
Code:
gzip -t /path/to/your-database.sql.gz && echo 'Compressed backup integrity OK'
Replace the example path with the real file from your log. We ran this successfully on the lab dump. It confirms that the compressed stream is intact; it does not prove the SQL will import successfully or that every application component can be restored.

A much smaller compressed file can be normal. Compare with the logged database size and inspect its structure privately when needed. Do not publish SQL contents in a support thread.

6. Plan an isolated restore test
The strongest check is to import a copy into a separate test database and confirm the expected tables and application content. Avoid overwriting the live database just to test a backup. Record the original application configuration and use a separate test site if you need to point an application at the restored database.

The database backup and restore guide covers the separate restore workflow. This article tests creation and archive integrity, rather than claiming a restore of the new cron archive.

7. Keep website files and database backups together
A database dump does not include WordPress uploads, themes, plugins or website configuration files. Pair it with a scheduled website-file backup.

For a busy store or other frequently changing application, consider application-supported consistent backups or a brief maintenance period. Two independently timed backup jobs do not automatically guarantee a consistent recovery point.

8. Keep an off-server copy and check the next run
Transfer a copy to protected off-server storage and confirm it can be retrieved. A same-server copy is not enough if the VPS disk or account is lost. Limit who can access the dump and avoid public download links.

After the first scheduled time passes, inspect Last execute time and Log and confirm a fresh archive exists. A manual Execute test verifies the backup operation, while the scheduled trigger still needs its own check.

After the lab test, we selected the task checkbox, chose Stop task in the list action menu, clicked Execute and confirmed. The task now shows Stopped. The dump remains available. Enable your real schedule when you intend to keep it operating, and review the results regularly.

Troubleshooting
  • Access denied during export: check the database connection and the relevant task log. Do not paste passwords into a forum post.
  • No database in the selector: confirm it is managed by the appropriate aaPanel database connection and review support for that connection type.
  • Empty or missing archive: inspect the export/compression error and available disk space; a last-execution timestamp alone is insufficient.
  • Remote database: verify the actual capabilities shown by your aaPanel version. The lab UI warns that remote databases do not support backup tables; our test used a local database.
  • Scheduled run missed: check Running status, server time, cron service and task logs.

Completion checklist
  • Correct application database selected.
  • Schedule, destination and retention reviewed.
  • First manual export completed with a successful log.
  • Compressed SQL archive exists and passed integrity checking.
  • Website-file coverage and protected off-server storage included.
  • Isolated restore and first unattended run planned and checked.

Reference: aaPanel official Cron documentation.
DEV 10-12-2026, 03:10 AM Read thread
aaPanel Backups & Migration Guides

Schedule Automatic Website Backups in aaPanel

Quick answer
Open Cron, choose Backup Site, select the website, set a daily time and a backup destination, then click Add Task. Run the task once with Execute and check its Log before trusting the schedule. Website files and the database need separate backup coverage.

Tested on the AdminsForum lab
We created Backup Site[adminslab.com] in aaPanel 8.0.6, scheduled it for 02:10 using the server's clock, selected Local Disk and retained three copies. We manually executed the new task. The log reported Successful and created a 45.78 MB archive from a 119.08 MB document root. The archive passed a tar readability check. We paused the tutorial-only schedule after testing; the archive was preserved. An overnight scheduled execution and a restore of this specific archive were not tested.

1. Decide what you need to protect
For a WordPress or other database-driven website, keep both the document-root files and its database. Files include application code, uploads and configuration. Database content such as posts, settings and accounts is separate.

Check the site you want to back up, its document-root path and the available disk space first. Keep backup archives outside the public document root. A same-server backup helps with accidental file changes but cannot protect you from losing the entire server.

2. Select Backup Site
Click Cron in the left-hand menu. In the Add Task section, open Task type and choose Backup Site. Select your particular website in Backup site. The lab's task name changed automatically to Backup Site[adminslab.com]. Choose ALL only when you actually want every listed site included.

3. Set the schedule and retention
Choose Daily in Execute cycle, then enter the hour and minute. Our example is 02:10. These fields use the server's clock; check its time zone before treating the value as your local time. Choose a quiet period and avoid overlapping with other large backups or imports.

For this first test, select Local Disk in Backup to and set Retain the latest to 3. This is a number of copies, not a guaranteed number of days. Extra manual executions can also consume retained copies. Use a retention count that covers your recovery needs and fits your storage capacity.

   
AdminsForum lab: the website backup settings before creating the task.

If you later configure a remote storage integration, verify that a complete archive actually reaches that destination. Selecting a destination is not proof that its credentials, permissions or connectivity work.

4. Review exclusions carefully
The Exclusion rules field can omit unwanted paths. We left it blank for the first test so the website document root was covered. Excluding uploads or a configuration file without a separate backup can prevent a complete recovery. Do not place your backup destination inside the site and then accidentally include old backups in every new archive.

The Backup reminder field was left at non-receipt in our test. No failure notification was configured or tested. Configure and test notifications separately if you depend on them.

5. Create and run the task
Click Add Task. Check the new row's site name, status, execution time, copy count and destination. It should show Running when enabled for future executions.

In that row, click Execute and confirm the prompt. Wait for the run to finish. Use Log or Refresh log to read the outcome. A task row or last-execution timestamp alone does not prove that the backup succeeded.

   
AdminsForum lab: successful first backup, including the archive path, size and retention setting.

Our completed archive was saved under:
Code:
/www/backup/site/adminslab.com/
Use the exact filename shown in your own log rather than copying a timestamped name from a tutorial.

6. Verify the archive
Check that the file exists and has a plausible size. A compressed archive is usually smaller than the source directory, so compare with the actual content rather than expecting matching sizes.

If you use the terminal, this read-only check verifies that tar can read the archive listing:
Code:
tar -tzf /path/to/your-backup.tar.gz > /dev/null && echo 'Archive readable'
Replace the path with the real archive path from your log. We ran this check successfully on the lab archive. It does not prove that the application's database is included or that the website will recover correctly.

For stronger recovery assurance, test extraction and application recovery in an isolated directory or separate test site. Avoid overwriting a live website simply to test a backup. See the website file backup and restore guide for the separate restore workflow.

7. Keep a copy away from the server
Transfer an archive to protected off-server storage and verify that it can be downloaded again. Treat it as sensitive: website configuration files can contain database credentials. Do not attach backup archives to a public forum post or place them at a public download URL.

Pair the file backup with a database backup from a compatible point in time. A rapidly changing site may need coordinated backups or a brief maintenance window for consistency.

8. Check future runs
After the next scheduled time, inspect Last execute time and Log. Confirm a new archive appeared and that retention behaves as expected. We tested the task manually; you should still verify its first unattended execution on your server.

To pause a task, select its checkbox, choose Stop task in the list action menu, click Execute and confirm. Reload the list and verify Stopped. We used this explicit stop action for the lab task. We preserved it for reference instead of leaving an unnecessary tutorial schedule running.

Troubleshooting
  • No archive: read the task log, check the selected website and document root, and confirm free disk space and permissions.
  • Unexpectedly small backup: review exclusions and the actual source directory. Verify archive contents before relying on it.
  • Missed scheduled run: check task status, server clock, cron service and logs. A manual Execute success does not prove the scheduled trigger ran.
  • Storage fills up: review retention, other backup jobs and whether archives are being copied into the source site. Preserve needed recovery copies before changing cleanup behavior.

Completion checklist
  • Correct website and document root selected.
  • Schedule checked against the server clock.
  • Destination, retention and exclusions reviewed.
  • First Execute run has a successful log and an archive.
  • Archive readability checked and off-server storage planned.
  • Database backup and an isolated recovery test included in the plan.
  • First unattended run checked afterward.

Reference: aaPanel official Cron documentation.
DEV 10-12-2026, 03:08 AM Read thread
aaPanel PHP & Extensions Guides

Install PHP Fileinfo in aaPanel and Verify It Works

Quick answer
Open App Store → Installed → your website's PHP version → Setting → Install extensions. Find fileinfo, click Install and confirm. Wait for the installer to finish, refresh the list, then verify fileinfo from the website using that PHP version.

What we tested
On the AdminsForum lab, we installed fileinfo for PHP 8.5 through aaPanel 8.0.6. The row changed from Install to Uninstall. A command-line check reported fileinfo loaded=yes. More importantly, an HTTPS request to the lab website returned:
Code:
PHP 8.5.11 fileinfo=yes sample=text/plain
The temporary test page was removed after checking. This is a completed installation and website-side function test, not just an installer screenshot.

What fileinfo does
Fileinfo helps PHP identify a file's content type. An application can use it when checking uploaded images or documents. It is useful when an error mentions a missing finfo class, finfo_open function or the fileinfo extension. It is not a complete upload-security solution, and installing it does not fix every upload error.

1. Check the website's PHP version first
Open Website, select your website and review its PHP version. The version installed most recently is not necessarily the version assigned to this website. If the website uses PHP 8.4, install the extension for PHP-8.4. Our test website was assigned PHP 8.5.

Check the application's requirements too. Only install the extensions it needs. Before changing a busy production runtime, have a current backup and consider the other websites using the same PHP version.

2. Open Install extensions
Go to App Store and choose Installed. Find the correct PHP row, click Setting, then choose Install extensions in the PHP manager's left-hand menu. Locate fileinfo in the table; you can use the extension search field when available.

   
AdminsForum lab: the extension manager before installation. Locate the fileinfo row and its Install action.

3. Start the installation
Click Install on the fileinfo row and confirm the prompt. aaPanel adds the job to its installer queue. Leave the job running rather than submitting it repeatedly. Compilation can take several minutes, depending on the server and downloads.

An Installing status means the job is still in progress; it is not a successful completion result. If the job fails, read the installation log and retain the exact error for troubleshooting.

4. Check the finished state
After the installer finishes, use Refresh List. On our lab, fileinfo showed Uninstall, which indicated it was installed for this PHP version.

   
AdminsForum lab: fileinfo now has an Uninstall action. The runtime test below also confirmed it was actually loaded.

Return to Service and confirm the runtime is On. If the installer did not reload the service, use Reload after checking the installation result. Recheck your website afterward.

5. Verify the website runtime
Prefer the application's own server-information page if it reports extensions. For a narrowly scoped test, create a temporary PHP file in your website's document root with the following content. Use a unique filename and restrict access if your environment requires it.
Code:
<?php header('Content-Type: text/plain; charset=utf-8'); header('X-Robots-Tag: noindex'); echo 'PHP ' . PHP_VERSION . PHP_EOL; echo 'fileinfo=' . (extension_loaded('fileinfo') ? 'yes' : 'no') . PHP_EOL; if (class_exists('finfo')) {     echo 'sample=' . (new finfo(FILEINFO_MIME_TYPE))->buffer("Tutorial test text ") . PHP_EOL; }
Open that file through the website's HTTPS address. A working result should include fileinfo=yes and sample=text/plain. Remove the test file immediately afterward. This small test avoids publishing the much broader information exposed by a full phpinfo page.

6. Compare with the command-line runtime when needed
For the aaPanel PHP 8.5 installation, use its version-specific executable:
Code:
/www/server/php/85/bin/php -r 'echo extension_loaded("fileinfo") ? "fileinfo loaded " : "fileinfo missing ";'
The 85 path corresponds to PHP 8.5. Do not blindly copy it for PHP 8.4 or a distribution-installed PHP. The plain php command may invoke another installation.

A command-line success alone is not proof that the website runtime loads the same extension. Always keep the website-side check.

7. Retest the original problem
Repeat the upload or application action that failed. Check the exact new result. If fileinfo works but an upload still fails, compare the file's actual content with its filename extension and declared MIME type. A JPEG saved with a .png name can be rejected even with fileinfo working correctly. Do not bypass image validation to accept mislabeled files.

Also investigate upload size, temporary storage, disk space, permissions and allowed file types if appropriate. These are separate causes.

Common problems
  • Install action still appears: refresh the list after the job completes and check the installation log. A queued job is not yet installed.
  • Class finfo not found: verify the PHP version actually assigned to the site and its effective extension configuration.
  • CLI works but website fails: compare PHP versions and loaded configuration files, then reload the correct PHP-FPM runtime.
  • A different extension is missing: install the named requirement for the correct version. Do not install the entire list just in case.
  • Installer compile error: preserve the full relevant error and check extension compatibility with that PHP version before retrying.

Completion checklist
  • The site's PHP version was checked before installation.
  • The installation job completed successfully.
  • The extension manager and service state were checked.
  • The website returned fileinfo=yes and detected the sample MIME type.
  • The temporary diagnostic file was removed.
  • The original application action was retested.

Reference: PHP official fileinfo manual.
DEV 10-12-2026, 03:06 AM Read thread
aaPanel Guides & Tutorials

Monitor CPU, RAM and Disk Usage in aaPanel

Quick answer
Use Home for a current resource overview, then Monitor for historical activity. Enable Monitoring Status before relying on historical charts. Compare the time when the website was slow with CPU, memory, disk and network activity; a single high reading does not identify the cause by itself.

What was checked
We opened Home and Monitor on the AdminsForum lab running aaPanel 8.0.6. Monitoring was initially off. We enabled it and received the successful status message, leaving the existing 30-day retention unchanged. Newly enabled monitoring initially showed No Data; that is shown honestly in the screenshot. This guide does not claim that an alert or a simulated overload was tested.

1. Start with the Home overview
Sign in to aaPanel and click Home. Note the CPU core count, CPU usage, RAM usage and the used/total space on the root filesystem. Write down the time of the problem before refreshing or changing anything.

[Image: server-home-resources-20261011.png?v=copyright1]
AdminsForum lab resource overview. These readings are a momentary sample from the lab, not performance targets.

Our lab has two CPU cores, around 3.82 GB of RAM and a root filesystem of around 38.3 GB. Its low load and available disk space at this moment do not prove that it was healthy during an earlier slowdown. That is why history matters.

2. Enable historical monitoring
Click Monitor in the left-hand menu. Check the Monitoring Status switch. If it is off, turn it on and wait for the success message. Keep collection enabled when you need to investigate recurring problems.

[Image: monitor-enabled-20261011.png?v=copyright1]
AdminsForum lab: monitoring enabled with 30-day retention. The charts initially have no historical samples.

The Number of days to save box controls retention. If you change it, click Modify and check the resulting status. Choose a period that covers the pattern you are investigating, while watching the Monitor Log Size. We left the lab's value at 30 days; we did not test a retention change.

3. Select the time of the problem
Each chart has Yesterday, Today, Last 7 days and Custom controls. Use Today for a current issue and a longer range for recurring daily spikes. Keep the same time range across the charts so you compare the same incident. Remember that server time and your local time may differ.

When monitoring has only just been enabled, older activity cannot be reconstructed from those new samples. Allow collection to run, return later and refresh the relevant chart. If No Data persists, verify the switch is still on and inspect the panel logs rather than repeatedly clearing data.

4. Read CPU and load together
A short CPU spike during installation, a backup or a scheduled job can be expected. Sustained high CPU during normal traffic deserves investigation. Load average and CPU percentage are different measurements. Check trends and the server's core count rather than assuming any non-zero load is a fault.

Record which operation was running at that time. If a backup overlaps a busy period, move the job to a quieter window after confirming the relationship. If slow pages and high CPU recur together, investigate PHP requests, database queries or unexpected processes. Do not increase PHP workers blindly: that can increase contention.

5. Check memory without guessing
Look for memory pressure that persists during the slowdown. Linux can use spare RAM for cache, so a high used-memory figure alone is not enough to diagnose a shortage. Compare available memory, swap activity and the workload. Repeated swapping or processes being killed is more actionable evidence than one graph reading.

If a PHP error says Allowed memory size exhausted, that is also a per-script limit issue. It does not automatically mean the whole VPS needs more RAM. Conversely, increasing every script's memory limit on a small server can make total memory pressure worse. Review the PHP limit and concurrent worker count together.

6. Separate disk activity from disk capacity
Disk I/O describes activity; used disk space describes capacity. A busy disk is not the same as a full disk. Check both. Mail delivery, database writes, logs and backups can fail when a filesystem runs out of space.

If a backup or database import coincides with heavy disk activity, record that evidence. For low free space, identify the directories using it before removing anything. Preserve needed backups, mail and website data. Do not delete unfamiliar files just to make a percentage lower.

7. Check network activity
Compare upstream and downstream activity with expected traffic, downloads and backups. In Network I/O, check which interface or All selection is displayed. A traffic spike alone does not prove an attack. Correlate it with website access logs and known jobs.

If the website is slow while CPU, memory and disk are quiet, also investigate DNS, connection latency, upstream services and application errors. Resource monitoring cannot diagnose every issue.

8. Gather evidence before changing settings
For a support request, collect:
  • The approximate incident time and time zone.
  • What the visitor saw, including the exact error or HTTP status.
  • The relevant chart range and whether the spike was brief or sustained.
  • Any scheduled backup, install or import running then.
  • A short relevant log extract with passwords, tokens, personal data and connection strings removed.
Make one justified change at a time, then compare the same workload again. Killing a process or restarting services can interrupt users and erase useful context, so first identify what the process does.

Useful read-only terminal checks
If you are comfortable with the terminal, these commands complement the dashboard:
Code:
uptime free -h df -h df -i top
Use q to leave top. df -i checks inode use: a filesystem can run out of inodes even when some storage capacity remains. These commands are optional diagnostics; their output was not captured for this walkthrough.

Do not confuse collection with alerts
A history chart is not proof that an email notification is configured. Set up and test alerting separately if you need to be notified while away from the panel. This walkthrough enables resource collection only.

Completion checklist
  • Home overview checked and incident time recorded.
  • Monitoring Status on and successful response confirmed.
  • Retention reviewed.
  • Matching chart ranges selected for investigation.
  • Resource readings compared with logs and scheduled jobs.
  • No monitoring history cleared during diagnosis.

Reference: aaPanel official System Monitor documentation.
DEV 10-11-2026, 05:56 PM Read thread
aaPanel PHP & Extensions Guides

Change PHP Upload and Memory Limits in aaPanel

Quick answer
In aaPanel, open App Store → Installed → the PHP version your website uses → Setting → Configuration. Review upload_max_filesize, post_max_size and memory_limit together. Save the change, reload that PHP service, then verify the values from the website itself. If the error is HTTP 413, also investigate the web server or proxy limit.

Before you start
  • Know which website you are changing and its assigned PHP version. Installing PHP 8.5 does not automatically switch every website to it.
  • Record the existing values so you can undo the change.
  • Choose a limit from your application's requirements and available server memory, rather than making everything unlimited.
This walkthrough uses the AdminsForum lab: aaPanel 8.0.6, PHP 8.5 and Nginx. The configuration and upload screens were checked directly. A large-file upload was not performed for this walkthrough; use the verification steps below on your application.

1. Find the website's PHP version
Open Website and select your site's settings. Check its PHP version before returning to App Store. If the site uses PHP 8.4, change PHP-8.4 rather than PHP-8.5. Settings in a version's PHP manager can affect other websites using that runtime, so check those sites too.

2. Open the PHP configuration screen
Open App Store → Installed. Find the matching PHP row and click Setting. Choose Configuration in the left-hand menu.

[Image: php-configuration-20261011.png?v=copyright1]
AdminsForum lab: PHP 8.5 Configuration. The pictured values are the lab's current values, not a recommended configuration for every website.

3. Understand the three limits
  • upload_max_filesize limits a single uploaded file.
  • post_max_size limits the entire POST request, including files and other form data. Allow room beyond one file's limit, especially for multiple files.
  • memory_limit limits memory used by a PHP script. Upload size and script memory are different: processing an image or import may require considerably more memory than the file size.
For example, an application that needs a 64 MB single-file upload might use upload_max_filesize=64M and post_max_size=80M. A memory_limit of 256M is only an example to evaluate against the application's requirements and server capacity. It is not a guarantee that every import will succeed. Multiple concurrent PHP workers can consume substantial memory.

4. Enter and save the values
In Configuration, edit the relevant text boxes. Keep the M suffix where a value is expressed in megabytes. Check that file_uploads is On if the application requires uploads. Click Save and read the resulting status message. Do not change unrelated settings while diagnosing one problem.

The separate Limit of upload screen offers one size field in MB:
[Image: php-upload-limit-20261011.png?v=copyright1]
AdminsForum lab: the Limit of upload shortcut currently shows 50 MB.

If you use that shortcut, return to Configuration afterward and inspect both upload_max_filesize and post_max_size. The Configuration screen makes the individual settings easier to review. Do not assume one shortcut also adjusts memory, application limits or Nginx.

5. Reload the selected PHP service
Choose Service in the same PHP manager and use Reload. Check that the service remains On. If the reload fails, inspect the PHP logs and correct the setting before repeatedly restarting services. Schedule changes carefully on a busy production server.

6. Verify what the website actually uses
First use the application's own server-information or upload-limit page if it has one. For WordPress, check Tools → Site Health → Info → Server, and then its media upload screen. The application's effective limit may be lower than the PHP setting.

If you need a small temporary diagnostic page, create a uniquely named PHP file inside the website's document root. Restrict access while testing. This prints only the relevant values rather than exposing a full phpinfo page:
Code:
<?php header('Content-Type: text/plain; charset=utf-8'); echo 'PHP version: ' . PHP_VERSION . PHP_EOL; foreach (['upload_max_filesize', 'post_max_size', 'memory_limit'] as $key) {     echo $key . ': ' . ini_get($key) . PHP_EOL; }
Open it through the website's HTTPS URL, check the results, then remove the diagnostic file. Running php -i in a terminal is not a substitute for checking the website: the command-line runtime and PHP-FPM can use different configurations.

Now upload an ordinary test file below the intended limit using the real application's form. Confirm that it is stored and opens correctly. If larger uploads are needed, increase the test size gradually while watching memory and logs.

Troubleshooting
  • 413 Request Entity Too Large: inspect Nginx's client_max_body_size and any reverse proxy or CDN in front of the site. The request may be rejected before PHP runs. Review the active website configuration rather than adding duplicate directives blindly.
  • Upload appears empty: compare the complete request size with post_max_size, and inspect the application's upload error handling.
  • Allowed memory size exhausted: investigate the operation, extensions and application logs. Increase memory only when justified by the workload and available RAM.
  • Old values still appear: recheck the site's PHP assignment, reload the correct service and investigate site-level overrides.
  • Small files also fail: check free disk space, temporary upload storage, permissions and the application's allowed file types. A larger upload limit will not fix those issues.
  • Timeout during an import: investigate application, PHP-FPM and web-server timeouts separately. Avoid treating every failure as a file-size problem.

Undo the change
Restore the values you recorded, Save, Reload, and repeat the website-side check. If the application becomes unstable, restore first and investigate before increasing limits again.

Completion checklist
  • Correct website and PHP version selected.
  • Original values recorded.
  • Upload, POST and memory settings reviewed together.
  • PHP reload succeeds and service is On.
  • Website reports the intended effective values.
  • Real application upload succeeds and temporary diagnostic file is removed.

Reference: PHP manual: core configuration directives.
DEV 10-11-2026, 05:54 PM Read thread
aaPanel Mail Server Guides

Back Up aaPanel Mail Server and Verify the Backup

What this guide does
Create a backup plan for aaPanel Mail Server, run it immediately, and check that an archive was actually produced. This protects mailbox messages before maintenance or migration.

Tested on the AdminsForum lab
aaPanel 8.0.6 on Ubuntu, with Mail Server installed. We saved a weekly plan, ran the task once, and verified the completed archive. We did not restore over existing mailboxes. Screenshots below show the actual lab result.

Before you begin
  • Sign in to aaPanel as an administrator and confirm that Mail Server is installed.
  • Check free disk space. Allow room for the existing mail data, a temporary archive, and retained backups.
  • Decide how much mail you can afford to lose. A weekly backup can leave up to a week of new messages unprotected; busy mailboxes usually need more frequent backups.
  • Keep a second copy on another server or storage account. A backup on the same disk cannot protect you from losing that VPS or disk.

1. Open the mail backup page
Click Mail Server → Other Settings → Backup. This is the Mail Server backup page, not the website backup page. Look for Backup Plan, Open Backup, the schedule fields and Mail import.

2. Choose the schedule and retention
Turn on Open Backup. For the lab demonstration we selected:
  • Period: Weekly.
  • Day: Monday.
  • Time: 01:30, using the server's schedule/time settings.
  • Backup to: Disk of server.
  • Keep last: 3 copies.
Click Save, wait for saving to finish, then return to the page to check the values persisted. Choose your own schedule; these demonstration values are not a recommended minimum for every mailbox.

AdminsForum lab screenshot — saved plan and the generated archive
[Image: mail-backup-result-20261011.png?v=copyright1]

3. Run a backup now
Open Cron from the left menu. Find [Do not delete] Mail server data backup task. Check its destination, retention and execution cycle. Click Execute in that row, then confirm. This starts a real backup immediately; you do not need to wait until the next scheduled time.

Wait for completion. The word Running in the task list indicates the task is enabled; it is not proof that a backup completed successfully.

4. Read the backup log
Open the task's Log. Look for the source directory, available disk space, compression result, destination filename, and a completion message. Our lab log reported:
Code:
Backup directory: /www/vmail Directory size: 213.22 KB Compressed archive: 13.05 KB Saved under: /www/backup/path/vmail/ Backup is complete
These sizes are examples from a small lab mailbox. Your sizes will differ. A log reporting an error, an empty output file, or only a start time is not a successful backup.

AdminsForum lab screenshot — successful execution log
[Image: mail-backup-log-20261011.png?v=copyright1]

5. Check and keep an off-server copy
Return to Mail Server → Other Settings → Backup. In our tested version the generated archive appeared under Mail import, with Restore and Delete actions. Check its timestamp and filename against the task log.

Use aaPanel Files to open the exact directory shown in your log. Download the archive to secure storage outside the VPS. Backups contain private email, so do not put them in a public website directory or attach them to a forum post. Check that the downloaded file has a sensible size and can be opened/listed as an archive.

What is covered?
The backup task in this demonstration archived /www/vmail. This is not evidence of a full-server backup. Separately record or back up your mailbox/domain configuration, mail service settings, DNS records, certificates and other required recovery material. Do not assume a mail-data archive alone can recreate every part of a new server.

6. Understand the recovery controls
The page provides Upload from local and Select in server for importing a backup, and a Restore action for the listed archive. Before using them, keep a current backup and test on a separate disposable server. Confirm that the target has compatible Mail Server software and the correct mailbox/domain setup. Importing old mail into live accounts can affect existing data; this guide does not claim a completed restore test.

7. Stop a demonstration schedule
If you only created the schedule for practice, return to the Mail Server backup page, turn off Open Backup and save. Check the corresponding Cron task is paused. Keep the successful archive. On our lab we disabled the temporary plan after testing.

Common problems
  • No archive appears: run the correct mail backup task and inspect its log; saving a plan does not immediately create a backup.
  • Disk full or inode error: free space safely or move verified old backups off-server before trying again.
  • Backup exists but messages are missing after recovery: check the backup date, mailbox mapping and recovery log. Do not overwrite your only copy while experimenting.
  • Different time in the UI and log: check server and browser timezone settings; compare the actual file timestamp as well.

Verification checklist
  • Backup settings persisted after saving.
  • The correct task executed and its log ended successfully.
  • A timestamped, non-empty archive exists.
  • An off-server copy is secured.
  • A separate recovery rehearsal is planned before relying on the backup.

Reference: aaPanel Mail Server documentation. Labels may differ between versions. For help, post your aaPanel version and the relevant error lines in Support & Troubleshooting; remove mailbox contents and credentials first.
DEV 10-11-2026, 05:39 PM Read thread
aaPanel Plugins & Integrations Guides

Configure Cloudflare Tunnel in aaPanel

This is the next guide after installing the Cloudflare Tunnel plugin in aaPanel.

We will connect one test website to a public hostname using fdciabdul's community plugin. The example hostname is tunnel-test.example.com: replace it everywhere with a subdomain of your own Cloudflare-managed domain.

Verification scope: Plugin controls and behavior are based on source commit ff0c7359f050fbca2b9efab11b61aa462d65b2d0 (metadata 1.3.0), checked against Cloudflare's documentation. Live plugin installation, account authorization and end-to-end screenshots remain pending. This is a written setup walkthrough, not a claim that our lab tunnel is already running.

1. Prepare the test website first
Open aaPanel → Website and create or select a harmless test website bound to your chosen hostname. Put an identifiable test page in its document root, for example “AdminsForum tunnel test.” Use the web server and listening port that actually serve this website.

For a local HTTP origin on port 80, open Terminal and check:
Code:
curl -I -H 'Host: tunnel-test.example.com' http://127.0.0.1:80
Replace the hostname. The response must belong to the intended site. A connection refusal means the local server/port needs fixing first. A default website means its hostname binding needs checking. An unexpected redirect needs investigating before adding the tunnel.

Why this comes first: Cloudflare forwards requests to the origin you configure. It cannot repair an incorrect local website or missing web server.

2. Check the Cloudflare zone
Your domain must be active in Cloudflare with its authoritative nameservers set correctly. Decide on a dedicated unused test subdomain. Inspect its DNS records before proceeding and record any existing values you need to preserve.

Do not reuse a hostname serving an existing website or mail service. The reviewed plugin has DNS conflict and cleanup limitations described in our plugin review and fixes.

3. Configure the account profile and credentials
Open Cloudflare Tunnel in aaPanel, then its credentials/profile section. Give the profile a recognizable name, such as AdminsLab.

There are two separate credentials in this locally managed workflow:
  • Browser-login certificate: supports the cloudflared CLI operations used to create/manage tunnels.
  • DNS API token: lets the plugin discover the zone and automate its CNAME record.
Saving a DNS token is not proof that tunnel CLI login is ready. Likewise, browser authorization does not prove the token can edit DNS.

For the DNS token, use zone-scoped permissions suitable for the plugin's zone lookup and DNS edits, limited to the intended test zone. Its code lists zones and modifies records; verify both operations instead of relying only on a token-valid response. Avoid giving unrelated domains to the token.

Use the plugin's Login/Get login URL control for the intended profile, follow the Cloudflare browser authorization, then return and check the result. Protect tokens, login links and certificate files; redact them in screenshots.

If Login reports “Profile not found”: an empty profile is filtered out by the reviewed upstream lookup. Stop and follow the version-specific fix article linked above. Do not keep creating duplicate profiles.

4. Create a locally managed tunnel
In the tunnel section, select the authorized profile and enter a unique name such as adminsforum-lab. Use Create & use, or Create followed by Use if your installed build separates those actions.

Record the returned tunnel UUID and confirm the selected profile. Tunnel creation generates credentials; it does not by itself establish a running connector.

Start with a fresh locally managed test tunnel. A tunnel managed through the Cloudflare dashboard can obtain its ingress remotely and ignore the local configuration this plugin writes. Mixing both management approaches makes troubleshooting confusing.

5. Add the hostname mapping
In the hostnames/ingress section:
  1. Enter your dedicated hostname, such as tunnel-test.example.com.
  2. Set the local service to http://127.0.0.1:80 only if that is the origin verified in step 1. Use the actual port for your website.
  3. Select the Cloudflare zone that owns the hostname and the appropriate profile where offered.
  4. Enable automatic CNAME creation only after checking that the hostname has no conflicting records.
  5. Save the mapping and read the complete result.
A local HTTP service behind the connector is different from the public HTTPS address visitors use. If you choose an HTTPS origin, validate its certificate and hostname/SNI rather than disabling certificate verification as a default fix.

In Cloudflare DNS, verify a proxied CNAME for the chosen hostname pointing to the selected UUID's cfargotunnel.com target. Do not create a second competing A/AAAA record for that same tunnel hostname.

6. Verify configuration and the connector service
The plugin writes its local configuration to /etc/cloudflared/config.yml. Review the tunnel ID, credentials path, intended hostname/service and final fallback rule. Avoid posting the credentials file itself.

Validate the generated ingress:
Code:
cloudflared tunnel --config /etc/cloudflared/config.yml ingress validate
Use the Advanced service controls to install/start the service when needed, then check its actual state:
Code:
systemctl is-active cloudflared journalctl -u cloudflared -n 50 --no-pager
Expected checkpoint: ingress validation succeeds, the intended service is active and its logs show successful connector registration. A saved row or an “apply succeeded” message alone is insufficient: the reviewed upstream code can miss restart failures.

7. Open the public website
Open https://tunnel-test.example.com using your own hostname. Verify the identifiable page from step 1, not merely a response from any website.

Check these independently:
  • The correct local origin responds.
  • The intended tunnel/profile is selected.
  • DNS points to that tunnel.
  • Ingress maps the hostname to the correct origin.
  • The connector is actually running.
  • The public page is the intended website.
Publishing a website through a tunnel does not automatically create a Cloudflare Access login policy. This walkthrough maps a public test website; administration/private applications need a separate access-control design.

8. Troubleshoot the failing checkpoint
  • No zone listed: check account ownership and the token's zone scope/permissions, then refresh the zone list.
  • Wrong website: check the aaPanel site binding and Host header. Use httpHostHeader only when deliberately required by the origin.
  • Origin connection error: repeat the local request and check the service port.
  • Certificate error for HTTPS origin: check certificate trust and SNI.
  • Connector not connected: inspect service logs and outbound connectivity.
  • Save/apply failed: inspect both DNS and configuration. Upstream rollback does not reliably restore every changed component.
Restore recorded DNS/configuration values deliberately if abandoning the test. Do not delete unrelated records to clear an error.

Guide sequence: Installation → this configuration walkthrough → version-specific fixes.

References: Plugin source and author instructions · Cloudflare locally managed tunnel guide · Cloudflare credential permissions.
DEV 10-11-2026, 01:02 PM Read thread
aaPanel Plugins & Integrations Guides

Install Cloudflare Tunnel Plugin in aaPanel

Start here: install the community Cloudflare Tunnel plugin before configuring a tunnel or applying bug fixes.

This plugin adds a Cloudflare Tunnel wizard to aaPanel. It is maintained by fdciabdul and is a third-party extension. The plugin interface and the cloudflared connector are separate components: importing the ZIP installs the interface; the first wizard step installs the connector.

Verification scope: These steps follow the author's installation instructions and our source review of commit ff0c7359f050fbca2b9efab11b61aa462d65b2d0 (source metadata 1.3.0). We have not yet completed a live import and end-to-end Cloudflare test. Screenshots will be added after that test; this article does not claim a lab-tested installation.

1. What you need
  • An aaPanel installation and access to its App Store as an administrator.
  • A disposable Linux lab server for your first attempt.
  • Outbound internet access for downloading cloudflared.
  • For the later configuration guide: a Cloudflare account, a domain using Cloudflare DNS and a working local test website.
You do not need to create a tunnel or change website DNS just to import the plugin. A domain becomes necessary when you connect a public hostname to your website.

2. Check existing tunnels and make a backup
If cloudflared already runs on this server, record its service and configuration before proceeding. The plugin manages /etc/cloudflared/config.yml and the cloudflared service; do not use an existing production connector as a learning environment.

For a read-only check in aaPanel's Terminal:
Code:
command -v cloudflared systemctl status cloudflared --no-pager
A missing binary or service on a fresh server is expected. If a service is present, inspect who manages it before importing another controller. Back up an existing /www/server/panel/plugin/cloudflare_tunnel directory, its data subdirectory, /etc/cloudflared and any associated service configuration before upgrading. Store credential backups outside public website folders.

3. Download the author's plugin archive
Open the author's repository and use its Releases link to choose the intended plugin release. Download the plugin ZIP asset rather than GitHub's generic “Source code” archive.

The README names a 1.2.0 archive, while the source we reviewed identifies itself as 1.3.0. Check the actual release asset and info.json; do not assume an old filename is the newest version. If no suitable plugin archive is available, stop at this step rather than importing the entire repository ZIP.

Open the downloaded archive locally before uploading it. The author's packaging instructions put info.json, install.sh, index.html, icon.png and the Python modules at the archive root. A repository wrapper folder is different from this import format. The archive must not contain another user's API tokens, certificates or runtime data.

4. Import the ZIP into aaPanel
  1. Sign into aaPanel on the lab server.
  2. Open App Store in the sidebar.
  3. Locate the Import or upload control; the author describes it at the top right. Its placement can vary between panel versions.
  4. Choose the plugin ZIP downloaded in step 3.
  5. Submit the import and wait for the installation result.
  6. Find Cloudflare Tunnel in the installed applications and open it.
Do not search for an official Cloudflare Tunnel product and assume it is the same extension. This guide refers specifically to fdciabdul's plugin.

Expected checkpoint: The Cloudflare Tunnel interface opens with sections for the binary, credentials/profiles, tunnel and hostnames. Record the installed version and compare it with your downloaded archive.

5. Install the cloudflared connector
  1. Open the first wizard section for the cloudflared binary.
  2. Use Install / Update.
  3. Read the complete result and allow the download/install operation to finish.
  4. Use Recheck if available.
  5. Confirm the binary version, either in the interface or with the command below.
Code:
cloudflared --version
The reviewed implementation returns “already installed” when the binary exists. The button label therefore does not prove that an existing binary was upgraded. Record the reported version instead of repeatedly pressing Install / Update.

If the download fails, check outbound HTTPS access, the server's architecture and the installation error. Keep certificate verification enabled. Import success alone does not prove the connector was installed.

6. Stop at the installation checkpoint
At this point the plugin should open and cloudflared should report its version. A public website is not expected to work yet: account authorization, tunnel creation, hostname mapping and service verification are later configuration steps.

The plugin exposes separate credential mechanisms. A browser-login certificate supports tunnel CLI operations; an API token is used for Cloudflare DNS automation. Do not assume that saving a DNS token completes browser authorization.

If you add an empty profile in the reviewed 1.3.0 source and Login returns “Profile not found,” read Fix Cloudflare Tunnel Profile Not Found in aaPanel. Match the installed source version before applying a code change. That article also describes other limitations; it is not a certified plugin release.

Common installation problems
  • ZIP import fails: confirm that this is the plugin asset with the required files at its root, not the generic repository archive. Save the exact error.
  • Plugin opens with missing methods: check for mismatched old and new files. Back up runtime data before replacing anything. The author's source installation notes call for a panel restart after first install or Python changes; a restart briefly interrupts panel sessions.
  • Binary missing after import: complete the separate connector installation in step 5.
  • Service is not active: installation alone does not create a configured working tunnel. Continue with account/tunnel configuration before treating this as a fault.

Guide order: Install plugin → configure account and test website → verify tunnel/service/DNS → troubleshoot any errors.

Source: Cloudflare Tunnel aaPanel plugin repository and installation instructions. Credit belongs to the original author. No reviewed source bundle is being publicly distributed with this article.
DEV 10-11-2026, 12:54 PM Read thread
aaPanel Plugins & Integrations Guides

Fix Cloudflare Tunnel Profile Not Found in aaPanel

New to this plugin? Start with Install Cloudflare Tunnel Plugin in aaPanel Free Edition, then use this article if you encounter the profile error.

A newly created Cloudflare Tunnel profile can return “Profile not found” before its first browser login. This article explains the confirmed cause and the local code fix, plus the other issues found during review.

Reviewed build: Community plugin by fdciabdul, source commit ff0c7359f050fbca2b9efab11b61aa462d65b2d0; info.json version 1.3.0. This is a source-level review with isolated tests. Live plugin installation and Cloudflare end-to-end verification are pending. The fixes below do not make the whole plugin a certified or production-tested release.

1. Fix “Profile not found” on first login
The UI allows adding a profile without an API token. However, DnsManager.find_profile() looks in _all_profiles(), which intentionally hides profiles that have neither token nor cert_path. That filter is useful for choosing working DNS credentials, but wrong for resolving the profile that is about to receive its first browser-login certificate.

In dns_manager.py, change find_profile() to check the saved profiles first:
Code:
def find_profile(self, profile_id):     for p in self._read_profiles():         if isinstance(p, dict) and p.get("id") == profile_id:             return dict(p, virtual=False)     for p in self._all_profiles():         if p["id"] == profile_id:             return p     return None
Keep the empty-profile filter in _all_profiles(). Do not broadly treat an empty profile as valid API credentials. Our regression test creates an empty saved profile, supplies no usable profiles and verifies that find_profile still returns the intended profile for login. It passes with this change.

2. Fix unsafe UI string encoding
Profile names are inserted into single-quoted JavaScript onclick arguments using an HTML-only encoder. An ordinary apostrophe can break an action; crafted text can introduce script in the authenticated panel UI. Encode for the JavaScript string context first, then the surrounding HTML attribute. The reviewed patch uses a separate jsesc helper for those action arguments, and escapes names/errors in HTML-rendered dialogs. HTML escaping alone is insufficient here.

Do not test script injection on a live shared panel. Our six isolated JavaScript tests round-trip apostrophes, backslashes, quotes, newlines and markup without executing injected instructions. The entire UI script also parses successfully. We have not demonstrated unauthenticated panel compromise.

3. Protect installer staging and credentials
The original binary installer downloads into one predictable file under /tmp. A privileged process should use a unique private temporary directory, invoke curl/install with argument arrays, restrict download redirects to HTTPS and check command results. The review patch implements that approach. Independent checksum verification and release pinning remain future work.

Validate tunnel IDs as UUIDs before saving them or constructing credential paths. Apply mode 0600 to existing and newly relocated tunnel JSON credentials, and report relocation failures. Keep credentials out of public web directories, screenshots and support replies.

4. Fix configuration encoding and restart reporting
In ingress_manager.py, use proper quoted YAML scalar encoding rather than only replacing quotation marks. JSON-quoted strings are valid YAML scalars and handle backslashes/control characters:
Code:
def _yaml_escape(s):     return json.dumps(str(s), ensure_ascii=True)
The source also ignores the exit status of systemctl restart. Check it and return a failure when the restart fails:
Code:
restarted = subprocess.run(     ["systemctl", "restart", SERVICE_NAME],     capture_output=True, text=True, timeout=30, ) if restarted.returncode != 0:     return public.returnMsg(         False,         "Config written, but service restart failed: "         + (restarted.stderr or restarted.stdout),     )
This change reports a real failure; it does not undo every previous DNS/config change. Do not describe it as complete transactional rollback.

5. Avoid DNS data loss
Before an automatic CNAME upsert, inspect every record returned for the hostname. Our patch refuses conflicting non-CNAME or multiple-record responses instead of replacing the first record. A user-selected zone must also match the hostname; stale/unavailable zone selections are rejected rather than silently redirected to another zone.

For removal, refuse records that are not tunnel-target CNAMEs and check each Cloudflare deletion response. Do not delete A, AAAA, MX or TXT records simply because they share a hostname. Our tests verify these refusal paths and confirm API errors are returned.

Remaining limitation: the patch recognizes tunnel CNAMEs by target suffix, not an ownership manifest for the particular tunnel. Full DNS/config/service rollback and concurrent-write locking are also still needed.

6. Validate before applying to a server
Back up the installed plugin directory, runtime data and /etc/cloudflared first. Match the exact source version; do not paste partial changes into an unrelated older release. Check Python syntax and run the isolated tests. Our local review passed 13 backend tests and six UI string-encoding checks, plus script parsing and diff whitespace checks.

Then use a disposable lab server to verify import, empty-profile login, account selection, credentials, origin response, generated ingress, DNS changes and actual service state. An API token accepted by the verification endpoint does not prove the zone permissions needed by this plugin. Browser login for tunnel CLI operations and the DNS API token serve different purposes.

7. What is not yet fixed or verified
  • Complete rollback across DNS, JSON state, config and service.
  • Concurrent profile login and re-login certificate isolation.
  • Shared locking and atomic persistence across all managers.
  • Independent checksum verification and a real binary update operation.
  • aaPanel dispatcher authentication/CSRF behavior and live end-to-end operation.
No public exploit demonstration is needed to explain these fixes. The patched download is not publicly released yet; the written changes above are available for maintainer review.

Credits and references: Original plugin repository · Author's aaPanel thread · Cloudflare tunnel permissions
DEV 10-11-2026, 12:48 PM Read thread