Knowing which Apache modules has been loaded is very important thing. When you need rewrite modules for rewiting URL, you should assure that your apache had rewrite module. The Next Question is – How to list Loaded Apache Modules ?

Ubuntu Linux has provided apache2/apache2ctl command line for this purpose. The -M option lists all loaded/enabled static (statically compiled into the httpd binary) and shared (compiled as dynamic shared objects that exist separately from the main httpd binary) Apache modules:

$ sudo apache2 -M
$ sudo apache2ctl -M

Result (may be diffrent in your computer):

Loaded Modules:
 core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 filter_module (shared)
 mime_module (shared)
 mpm_prefork_module (shared)
 negotiation_module (shared)
 php5_module (shared)
 setenvif_module (shared)
 socache_shmcb_module (shared)
 ssl_module (shared)
 status_module (shared)

or, you can watch this video for bettr tutorials:

(Visited 15 times, 1 visits today)