{"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

Use This Command to Find Apache Version on CentOS<\/h2>\n\n\n\n

The most basic result can be gotten by running the Apache server<\/a> daemon using the -v<\/code> option in lower case as shown here.<\/p>\n\n\n\n

$ httpd -v<\/code><\/pre>\n\n\n\n

The expected result will look something similar to this.<\/p>\n\n\n\n

Server version: Apache\/2.4.51\nServer built: Oct 07 2021 19:17:14<\/code><\/pre>\n\n\n\n

For additional information, you can use the same Apache server daemon using the -V<\/code> option in an upper case like this.<\/p>\n\n\n\n

$ httpd -V<\/code><\/pre>\n\n\n\n

With an output that looks something like this.<\/p>\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

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 httpd<\/code> daemon with the -h<\/code> option like so<\/p>\n\n\n\n

$ httpd -h<\/code><\/pre>\n\n\n\n

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":"\nHow to Find Apache Version on CentOS Using Command Line<\/title>\n<meta name=\"description\" content=\"This simple web server guide shows you how to find the Apache version on CentOS, Fedora, and RHEL-based Linux distros using the command line\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Find Apache Version on CentOS Using Command Line\" \/>\n<meta property=\"og:description\" content=\"This simple web server guide shows you how to find the Apache version on CentOS, Fedora, and RHEL-based Linux distros using the command line\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-15T10:56:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-15T10:56:54+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/find-apache-version-on-centos.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How to Find Apache Version on CentOS Using Command Line\",\"datePublished\":\"2021-12-15T10:56:53+00:00\",\"dateModified\":\"2021-12-15T10:56:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/\"},\"wordCount\":270,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/find-apache-version-on-centos.jpg\",\"keywords\":[\"Apache\",\"CentOS\",\"Community\",\"Cross Platform\",\"Internet\",\"Linux\",\"Open Source\",\"Optimization\",\"Software development\",\"Tools\",\"Web\",\"Web Applications\",\"Web Development\"],\"articleSection\":[\"Articles\",\"Guides\",\"Technology\",\"Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/\",\"url\":\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/\",\"name\":\"How to Find Apache Version on CentOS Using Command Line\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/find-apache-version-on-centos.jpg\",\"datePublished\":\"2021-12-15T10:56:53+00:00\",\"dateModified\":\"2021-12-15T10:56:54+00:00\",\"description\":\"This simple web server guide shows you how to find the Apache version on CentOS, Fedora, and RHEL-based Linux distros using the command line\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/find-apache-version-on-centos.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/find-apache-version-on-centos.jpg\",\"width\":1280,\"height\":680,\"caption\":\"Find Apache Version on CentOS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Find Apache Version on CentOS Using Command Line\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/twitter.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Find Apache Version on CentOS Using Command Line","description":"This simple web server guide shows you how to find the Apache version on CentOS, Fedora, and RHEL-based Linux distros using the command line","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/","og_locale":"en_US","og_type":"article","og_title":"How to Find Apache Version on CentOS Using Command Line","og_description":"This simple web server guide shows you how to find the Apache version on CentOS, Fedora, and RHEL-based Linux distros using the command line","og_url":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2021-12-15T10:56:53+00:00","article_modified_time":"2021-12-15T10:56:54+00:00","og_image":[{"width":1280,"height":680,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/find-apache-version-on-centos.jpg","type":"image\/jpeg"}],"author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How to Find Apache Version on CentOS Using Command Line","datePublished":"2021-12-15T10:56:53+00:00","dateModified":"2021-12-15T10:56:54+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/"},"wordCount":270,"commentCount":0,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/find-apache-version-on-centos.jpg","keywords":["Apache","CentOS","Community","Cross Platform","Internet","Linux","Open Source","Optimization","Software development","Tools","Web","Web Applications","Web Development"],"articleSection":["Articles","Guides","Technology","Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/","url":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/","name":"How to Find Apache Version on CentOS Using Command Line","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/find-apache-version-on-centos.jpg","datePublished":"2021-12-15T10:56:53+00:00","dateModified":"2021-12-15T10:56:54+00:00","description":"This simple web server guide shows you how to find the Apache version on CentOS, Fedora, and RHEL-based Linux distros using the command line","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/find-apache-version-on-centos.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/find-apache-version-on-centos.jpg","width":1280,"height":680,"caption":"Find Apache Version on CentOS"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/find-apache-version-on-centos-using-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"How to Find Apache Version on CentOS Using Command Line"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/twitter.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/11384"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=11384"}],"version-history":[{"count":0,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/11384\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/11386"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=11384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=11384"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=11384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}