How to Check Apache Web Server Version in Linux




This time it was an easy discussion only at the request of the incoming email. Generally that a transfer from shared hosting to VPS will use LAMP (Linux, Apache, MySQL and PHP) because it is still familiar than reckless to Nginx configuration because it is so different. Now the installation of Apache itself is set up automatically by the repositorynya and receive so only, because it is natural if it does not know how his version.

First make sure that the process used to be Apache (httpd) actively running in the VPS and then type the following command:
httpd -V
or
apache2 -V
or
apachectl -V



The full description will appear later on the web server and the compilation parameter is used:


Already done get that we want
But I would add one more thing: Apache itself has module – a module that could add his ability with features – new features, for example, we want to know what are the modules that are available and loaded or not then there is a way. We direct the execution of the following commands:
httpd -M

Later going out look like the following:
Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_file_module (shared)
 authn_alias_module (shared)
 authn_anon_module (shared)
 authn_dbm_module (shared)
 authn_default_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 authz_owner_module (shared)
 authz_groupfile_module (shared)
 authz_dbm_module (shared)
 authz_default_module (shared)
 ldap_module (shared)
 authnz_ldap_module (shared)
 include_module (shared)
 log_config_module (shared)
 logio_module (shared)
 env_module (shared)
 ext_filter_module (shared)
 mime_magic_module (shared)
 expires_module (shared)
 deflate_module (shared)
 headers_module (shared)
 usertrack_module (shared)
 setenvif_module (shared)
 mime_module (shared)
 dav_module (shared)
 status_module (shared)
 autoindex_module (shared)
 info_module (shared)
 dav_fs_module (shared)
 vhost_alias_module (shared)
 negotiation_module (shared)
 dir_module (shared)
 actions_module (shared)
 speling_module (shared)
 userdir_module (shared)
 alias_module (shared)
 substitute_module (shared)
 rewrite_module (shared)
 proxy_module (shared)
 proxy_balancer_module (shared)
 proxy_ftp_module (shared)
 proxy_http_module (shared)
 proxy_ajp_module (shared)
 proxy_connect_module (shared)
 cache_module (shared)
 suexec_module (shared)
 disk_cache_module (shared)
 cgi_module (shared)
 version_module (shared)
 php5_module (shared)
Syntax OK

Command – command like this is important when we want to diagnose the problem or simply want to upgrade to the most recent version. Indeed it is very rarely used.


Next
Previous
Click here for Comments

0 comments: