{"id":11384,"date":"2021-12-15T05:56:53","date_gmt":"2021-12-15T10:56:53","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=11384"},"modified":"2021-12-15T05:56:54","modified_gmt":"2021-12-15T10:56:54","slug":"find-apache-version-on-centos-using-command-line","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/","title":{"rendered":"How to Find Apache Version on CentOS Using Command Line"},"content":{"rendered":"\n
In this companion beginner guide, we will be showing you how to find the Apache version on CentOS, Fedora, and related RHEL-based Linux<\/a> systems using the command line tools.<\/p>\n\n\n\n We wrote a comprehensive guide on how to check the Apache version on Ubuntu<\/a> Linux systems so if that is what you are interested in you may visit that article. If not you may proceed. Windows users please follow this guide as things are significantly different on that platform.<\/p>\n\n\n\n Like in other Linux flavors you do not need root privileges to use this command therefore we will not be using sudo in our examples.<\/p>\n\n\n\n This article also assumes that you know how to access your CentOS<\/a> terminal and that you have Apache<\/a> installed.<\/p>\n\n\n\n The most basic result can be gotten by running the Apache server<\/a> daemon using the The expected result will look something similar to this.<\/p>\n\n\n\n For additional information, you can use the same Apache server daemon using the With an output that looks something like this.<\/p>\n\n\n\n If you are running Apache on Windows we have prepared this guide<\/a> for your convenience. Meanwhile, those on Ubuntu or Debian-based systems can follow this guide<\/a> as well.<\/p>\n\n\n\n As always you can get help with using the That should be enough to allow you to find the Apache version on CentOS, Fedora, and related RHEL-based Linux systems using the command line tools.<\/p>\n","protected":false},"excerpt":{"rendered":" In this companion beginner guide, we will be showing you how to find the Apache version on CentOS, Fedora, and related RHEL-based Linux systems using the command line tools. We…<\/p>\n","protected":false},"author":1,"featured_media":11386,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,16,18],"tags":[58,121,142,164,320,354,424,433,544,591,635,636,638],"yoast_head":"\nUse This Command to Find Apache Version on CentOS<\/h2>\n\n\n\n
-v<\/code> option in lower case as shown here.<\/p>\n\n\n\n
$ httpd -v<\/code><\/pre>\n\n\n\n
Server version: Apache\/2.4.51\nServer built: Oct 07 2021 19:17:14<\/code><\/pre>\n\n\n\n
-V<\/code> option in an upper case like this.<\/p>\n\n\n\n
$ httpd -V<\/code><\/pre>\n\n\n\n
Server version: Apache\/2.4.51\nServer built: Oct 07 2021 19:17:14\nServer's Module Magic Number: 20051115:3\nServer loaded: APR 1.7.0, APR-Util 1.6.1\nCompiled using: APR 1.7.0, APR-Util 1.6.1\nArchitecture: 64-bit\nServer MPM: event\n threaded: yes (fixed thread count)\n forked: yes (variable process count)\nServer compiled with....\n -D APACHE_MPM_DIR="server\/mpm\/prefork"\n -D APR_HAS_SENDFILE\n -D APR_HAS_MMAP\n -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)\n -D APR_USE_SYSVSEM_SERIALIZE\n -D APR_USE_PTHREAD_SERIALIZE\n -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT\n -D APR_HAS_OTHER_CHILD\n -D AP_HAVE_RELIABLE_PIPED_LOGS\n -D DYNAMIC_MODULE_LIMIT=128\n -D HTTPD_ROOT="\/etc\/httpd"\n -D SUEXEC_BIN="\/usr\/sbin\/suexec"\n -D DEFAULT_PIDLOG="logs\/httpd.pid"\n -D DEFAULT_SCOREBOARD="logs\/apache_runtime_status"\n -D DEFAULT_LOCKFILE="logs\/accept.lock"\n -D DEFAULT_ERRORLOG="logs\/error_log"\n -D AP_TYPES_CONFIG_FILE="conf\/mime.types"\n -D SERVER_CONFIG_FILE="conf\/httpd.conf"<\/code><\/pre>\n\n\n\n
In Closing<\/h2>\n\n\n\n
httpd<\/code> daemon with the
-h<\/code> option like so<\/p>\n\n\n\n
$ httpd -h<\/code><\/pre>\n\n\n\n