English
WordPress Management
The WordPress page lets you manage a WordPress website directly in FlashPanel: log in to the admin dashboard quickly, update WordPress, plugins and themes, optimize the database and enable Nginx caching for WP Rocket.
Accessing the WordPress page
The WordPress item appears in the site's menu when the website was installed with the WordPress option, or declared as WordPress using the Self Upload option.
The top of the page shows the current WordPress version and the Auto Login button.
INFO
If Lockdown is enabled on the website, updating and changing plugins and themes is disabled. Turn Lockdown off before updating.
One-click login to WordPress admin
Click the Auto Login button at the top of the WordPress page. A new tab opens and you are logged straight into the WordPress admin dashboard without entering a password.
WARNING
Auto login is only available for servers on a paid plan. On the free plan, you are redirected to the WordPress login page with the message Auto login is only available for paid plans; log in with your admin account as usual.
Quick actions
The quick actions table contains the most common update buttons, each with a note next to it:
| Button | What it does |
|---|---|
core-update | Updates WordPress to the latest version. Only shown when a new version is available |
plugin-update | Updates all active plugins |
theme-update | Updates the current active theme |
Click the button and follow the progress on the button or on the site's Events page.
WARNING
Back up your website before updating. Updates can occasionally cause compatibility issues with plugins, themes or custom code.
Feature tools
Edit wp-config.php
Click the wp-config.php tile to open the WordPress configuration file in the editor, make your changes and save the file.
WARNING
Editing wp-config.php incorrectly can take your website down. Back up the file before editing.
WordPress Optimize
Clean up unnecessary data in the WordPress database.
- Click the WordPress Optimize tile
- In the Database Optimize dialog, select the items to run:
- Clean all post revisions
- Clean all auto-draft posts
- Clean all trashed posts
- Remove spam and trashed comments
- Remove unapproved comments
- Remove expired transient options (optionally also All (not only expired))
- Remove pingbacks, Remove trackbacks
- Clean orphaned post, user and comment meta data
- Click
Run optimization
The dialog also shows when previous optimizations were run.
WARNING
Items marked with the warning icon perform more intensive database operations. If the database server crashes while an optimization is running, data might be corrupted. Back up the database before running them.
NGINX WordPress Rocket
Rocket-Nginx is an Nginx configuration for the WP Rocket caching plugin. When enabled, Nginx serves pages cached by WP Rocket directly without running WordPress or PHP, and adds headers so browsers cache CSS, JS and media files. This tile only appears when the server uses Nginx; once enabled, it shows a green check mark.
Enable Nginx configuration for WP Rocket
- Install and activate the
WP Rocketplugin in the WordPress admin dashboard - On the WordPress page in
FlashPanel, click the NGINX WordPress Rocket tile - Click
Enable(clickDisableto turn it off) - Check the result: open the website in your browser, press
F12>Networktab, reload the page and inspect the page's response headers. If you seeX-Rocket-Nginx-Serving-Static: HIT, Nginx is serving the page from cache
Configure WP-Cron
WARNING
When pages are served from cache, WordPress does not run on every visit. Since WP-Cron only runs when WordPress handles a request, scheduled tasks (scheduled posts, emails...) may not run on time. You should disable WP-Cron and create a real cron job on the server.
Open
wp-config.php(the wp-config.php tile above) and add the following line before theThat's all, stop editing!line:phpdefine( 'DISABLE_WP_CRON', true );Open the server management page, select CronJob and click the
CronJobbutton to create a new cron job:Command (editor):
bashcd /home/flashpanel/domain.com && php8.3 wp-cron.phpReplace
/home/flashpanel/domain.comwith the website's root directory andphp8.3with the PHP version the website uses.User: select the user that owns the website
Cron Expression:
*/15 * * * *(every 15 minutes)
Click
Add CronJob
See also CronJob.
WordPress User Update
Change the password of a WordPress account without logging in to the admin dashboard.
- Click the WordPress User Update tile
- Enter the account's ID, username or email in the id / username / email field
- Enter the new Password or click the key icon to generate a random one
- Click
Submit
Managing plugins and themes
At the bottom of the page there are two tabs, Plugins and Themes, showing the number of installed items, for example Plugins (15). Each tab is a table with the columns Plugin Name, Status, Version, Update Version, Update, Auto Update and Action.
Activating or deactivating
Toggle the switch in the Status column of the row. The label next to the switch shows the current status (active, inactive or must-use).
Enabling auto updates
Turn on the switch in the Auto Update column to let WordPress update the plugin or theme automatically when a new version is released.
Updating a plugin or theme
When a new version is available, the Update Version column shows it and the Update column shows an Update button. Click the button to update.
Installing new plugins or themes
- Click the
Install Plugin(orInstall Theme) button above the table - Type the plugin or theme name to search and select the item to install
- (Optional) Enter a Version (optional); leave it empty to install the latest version
- (Optional) Check Activate plugin after installation (or theme)
- Click
Install
Deleting a plugin or theme
Click the Delete button in the Action column and confirm. This cannot be undone.
Reloading the list
Click the reload icon above the table to refresh the list after changing plugins or themes elsewhere (for example in the WordPress admin dashboard).
INFO
must-use plugins cannot be deactivated, updated or deleted from this page.
Troubleshooting
Enable debug mode
When the website shows a blank page or a "critical error" message, turn on WordPress debug logging to find the PHP error:
Click the wp-config.php tile and find the line
define( 'WP_DEBUG', false );.Replace it with:
phpdefine( 'WP_DEBUG', true ); // Write errors to wp-content/debug.log define( 'WP_DEBUG_LOG', true ); // Do not show errors to visitors define( 'WP_DEBUG_DISPLAY', false );Save the file and reload the page that has the error.
Read
wp-content/debug.login the File Manager, or follow it live from the website folder in the terminal withtail -f wp-content/debug.log.
WARNING
When you are done, set WP_DEBUG back to false and delete debug.log. The file can be opened from the browser and may expose sensitive information.
Cannot upload .glb files
Uploading a .glb (3D model) file to the Media Library fails with "This file cannot be processed by the web server." Despite the message, the web server is not involved: WordPress rejects the file before uploading it, because .glb is not in its list of allowed file types.
Allow the file type by adding this code to the active theme's functions.php (preferably in a child theme, so theme updates don't remove it):
php
add_filter('upload_mimes', function ($mimes) {
$mimes['glb'] = 'model/gltf-binary';
return $mimes;
});Then upload the file again from Media > Add New.