Apache

How to Check mod_rewrite Module in Apache/LiteSpeed is Loaded

To check if mod_rewrite Module is loaded in Apache/LiteSpeed follow the following steps

1. For system with cPanel, log to SSH in issue the following commands

/usr/local/apache/bin/httpd -D DUMP_MODULES | grep rewrite

If it return the following, then mod_rewrite is loaded

Syntax OK
rewrite_module (static)

2. For system with no cPanel, check “httpd.conf” file. If the following is in the file then it should be loaded.

LoadModule rewrite_module libexec/apache2/mod_rewrite.so

Where are Log Files for SSH, FTP, Apache Stored in cPanel/WHM

If you have cPanel/WHM VPS or dedicated server & would like to view all log files, these are the locations

All cpanel related logs are in (mostly similar to apache logs)

/usr/local/cpanel/logs

Apache logs are in

/usr/local/apache/logs

Individual domain logs are in

/usr/local/apache/domlogs

POP/IMAP logins are in

/var/log/maillog

FTP Logins are in

/var/log/messages

SSH Logins are in

/var/log/secure