↑ ↓ select, Enter open, Esc close

Apache

Test Apache configuration, manage modules, check virtual hosts and narrow down .htaccess problems. Including redirects, which are crucial for SEO.

14 one-liners: 10 harmless, 4 caution, 0 destructive

All Apache one-liners

Check the Apache configuration for syntax errors

#apache2ctl configtest
harmless

Check whether Apache hit MaxRequestWorkers

#grep -i "MaxRequestWorkers" /var/log/apache2/error.log* | tail -20
harmless

Count running Apache processes

$ps -C apache2 --no-headers | wc -l
harmless

Disable an Apache module and reload the configuration

#a2dismod autoindex && apache2ctl configtest && systemctl reload apache2
caution

Enable an Apache module and reload the configuration

#a2enmod headers && apache2ctl configtest && systemctl reload apache2
caution

Enable an Apache site and reload

#a2ensite example.com && apache2ctl configtest && systemctl reload apache2
caution

Server is clean. Is the site?

How fast does the website really load?

GENLOC.SEO measures PageSpeed and Core Web Vitals on mobile and desktop and tells you clearly what to fix first. Free, no time limit.

by GENLOC.NETWORK, the team behind myline.de

Fetch the Apache server-status in compact form

$curl -s "http://localhost/server-status?auto"
harmless

Follow the Apache error log in real time

#tail -f /var/log/apache2/error.log
harmless

List all configuration files Apache loads

#apache2ctl -t -D DUMP_INCLUDES
harmless

List loaded Apache modules

#apache2ctl -M
harmless

Restart Apache gracefully without dropping connections

#apache2ctl graceful
caution

Show all Apache virtual hosts and their config files

#apache2ctl -S
harmless

Show the Apache version and active MPM

$apache2ctl -V
harmless

Show the redirect chain of a URL with status codes

$curl -sIL "http://example.com/" | grep -iE "^(HTTP/|location:)"
harmless

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.