checkapache with the /go/checkapache Command

Apache refuses to start or reload when a virtual host points to an SSL certificate file that does not exist. /go/checkapache repairs this situation. It: It works only on servers that run Apache. On an Nginx server it does nothing; use checknginx there. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/checkapache

Options

None. Any arguments you pass are ignored.

Examples

# Check and repair
/go/checkapache

# Read the result of the Apache test that the command saved
cat /usr/local/goadmio/tmp/checkapache.db

# Confirm that Apache is healthy afterwards
apachectl configtest

# Install a new certificate for a domain whose configuration was removed
/go/ssl example.com

Output

The command prints one line for each virtual host it removes:

Deleting example.com Configuration

It prints nothing when the test finds no matching error, or when the server runs Nginx. The result of the Apache test itself is not shown. It is saved in /usr/local/goadmio/tmp/checkapache.db.

Each run also adds a line to /var/log/go/checkapache.log.

See the full reference at /go/checkapache and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *