Skip to main content
Version: 1.7.50

Websites

Manage websites.

List all websites

List all websites hosted on the server:

opencli websites-all

List websites for user

List all websites owned by user:

opencli websites-user <USERNAME>

Add websites for user

Scan user files and add WordPress installations:

opencli websites-scan <USERNAME>

use -all flag to run for all users:

opencli websites-scan -all

Secure

Server-level restrictions to harden WordPress instance. Rules are applied at the webserver level before PHP processing.

List all available rules:

opencli websites-secure --list-available-rules

Check if rules exist for a domain:

opencli websites-secure <domain>

List enabled rules for domain:

opencli websites-secure <domain> --list-active-rules

Enable rules for a domain:

opencli websites-secure <domain> --rules='rule1 rule2'

Disable all rules for a domain:

opencli websites-secure <domain> --disable-all

Vulnerability

Check WordPress website for WP core, theme and plugin vulnerabilities:

opencli websites-vulnerability <WEBSITE>

Example:

opencli websites-vulnerability pejcic.rs

Check vulnerabilities for all WordPress websites hosted on server:

opencli websites-vulnerability --all

PageSpeed

Get Google PageSpeed data for a single website:

opencli websites-pagespeed <WEBSITE>

Example:

opencli websites-pagespeed pejcic.rs/blog

Get Google PageSpeed data for all websites hosted on server:

opencli websites-pagespeed -all

Note:
Since version 1.2.2, users can provide their own PageSpeed API key by creating a file named pagespeed_api_key.txt in their home directory at /var/www/html/.

Administrators can also set a system-wide API key by creating the file /etc/openpanel/openpanel/service/pagespeed.api and placing the key inside.