Maintenance and tools
The Maintenance screen
Go to Settings > Maintenance and click Run in the toolbar. JoomMedia runs these clean-up tasks one after the other and shows the result next to each:
| Task | What it does |
|---|---|
| Clean category map | Removes category links of media and categories that no longer exist |
| Empty upload tokens | Clears old upload tokens |
| Purge old processes and logs | Deletes process logs older than 90 days |
| Uninstall old extensions | Removes extensions left over from older JoomMedia versions |
| Database index optimisation | Adds or repairs the indexes of the JoomMedia tables |
| Migrate legacy tags | Moves tags from the old JoomMedia tag tables into Joomla's tags |
| Clean activities | Removes activities of items that no longer exist |
| Clean user channels | Removes channels of users who no longer exist |
Run it after an update and from time to time on a busy site. Back up your database first.
Bulk Maintenance Actions
Below the list, three tools change one setting of every media item at once:
| Tool | Buttons |
|---|---|
| Change All Media Commenting Options | Allowed or Denied sets Allow comments on all media |
| Change All Media Likes Options | Allowed or Denied sets Allow likes on all media |
| Change All Media Embedding Options | Allowed or Denied sets Allow embedding on all media |
These settings are on the Access tab of each media item. The bulk tools overwrite what you set there.
Command-line script
JoomMedia's command-line script is administrator/components/com_joommedia/cli.php. Run it with the command-line PHP binary from your site's folder or with full paths:
| Command | What it does |
|---|---|
php administrator/components/com_joommedia/cli.php process |
Runs up to 50 queued processes, see Media processing |
php administrator/components/com_joommedia/cli.php process 12 13 |
Runs only processes 12 and 13 |
php administrator/components/com_joommedia/cli.php cdn |
Moves finished media to Amazon S3, see Amazon S3 |
php administrator/components/com_joommedia/cli.php test |
Writes the test file tmp/joommedia.background, to check that the script can start Joomla |
The script refuses to run through a web server. It needs the PHP command-line binary.
Checking the server
- The dashboard's System status button checks PHP, extensions, FFmpeg, the upload folder and disk space. See Dashboard.
- Test Automatic Processing, in Options > Processing > Media Processing, tests background processing in detail.
- Detect paths, in Options > Processing > Server settings, finds FFmpeg and the command-line PHP. See FFmpeg.