{"id":11372,"date":"2021-12-15T05:57:22","date_gmt":"2021-12-15T10:57:22","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=11372"},"modified":"2021-12-15T05:57:23","modified_gmt":"2021-12-15T10:57:23","slug":"check-apache-version-ubuntu-using-command-line","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/","title":{"rendered":"How to Check Apache Version on Ubuntu 20.04 Using Command Line"},"content":{"rendered":"\n

With a web server software as old as Apache<\/a>, there tend to be situations where your installation falls behind current versions if not maintained properly. That is why you need to know how to check Apache version on Ubuntu.<\/p>\n\n\n\n

Apache, free and open-source software is the most popular web server today. It was initially released in April 1995. The current stable release as of posting this article is Apache 2.4.51<\/a>.<\/p>\n\n\n\n

Written in C, it is a cross-platform web<\/a> server and supports the major operating systems Linux, macOS, and Windows among a host of others.<\/p>\n\n\n\n

Check Apache Version Using This<\/h2>\n\n\n\n

You should use the apache2 -v command-line option (in lower case) to check the current Apache version on Ubuntu<\/a>. This command also works on other Debian<\/a>-based Linux<\/a> systems.<\/p>\n\n\n\n

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

With the following as output.<\/p>\n\n\n\n

Server version: Apache\/2.4.51 (Ubuntu)\nServer built: 2021-10-07T19:17:14<\/code><\/pre>\n\n\n\n

This is not to be confused with the -V<\/code> option, that is -V<\/code> in upper case. The caps option is used to show compile settings and includes the version number too. You can check the output by running this command.<\/p>\n\n\n\n

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

This is an example of the partial output.<\/p>\n\n\n\n

...\n\nServer built: 2021-10-07T19:17:14\nServer's Module Magic Number: 20120211:118\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\nthreaded: yes (fixed thread count)\nforked: yes (variable process count)\nServer compiled with\u2026.\n\n...<\/code><\/pre>\n\n\n\n

You can check other Apache command-line options using this.<\/p>\n\n\n\n

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

Which will give you the following output.<\/p>\n\n\n\n

Usage: apache2 [-D name] [-d directory] [-f file]\n               [-C "directive"] [-c "directive"]\n               [-k start|restart|graceful|graceful-stop|stop]\n               [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]\nOptions:\n  -D name            : define a name for use in <IfDefine name> directives\n  -d directory       : specify an alternate initial ServerRoot\n  -f file            : specify an alternate ServerConfigFile\n  -C "directive"     : process directive before reading config files\n  -c "directive"     : process directive after reading config files\n  -e level           : show startup errors of level (see LogLevel)\n  -E file            : log startup errors to file\n  -v                 : show version number\n  -V                 : show compile settings\n  -h                 : list available command line options (this page)\n  -l                 : list compiled in modules\n  -L                 : list available configuration directives\n  -t -D DUMP_VHOSTS  : show parsed vhost settings\n  -t -D DUMP_RUN_CFG : show parsed run settings\n  -S                 : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG\n  -t -D DUMP_MODULES : show all loaded modules\n  -M                 : a synonym for -t -D DUMP_MODULES\n  -t -D DUMP_INCLUDES: show all included configuration files\n  -t                 : run syntax check for config files\n  -T                 : start without DocumentRoot(s) check\n  -X                 : debug mode (only one worker, do not detach)<\/code><\/pre>\n\n\n\n

Conclusion<\/h2>\n\n\n\n

For users on the CentOS, Fedora, and RHEL-based Linux systems, we have a related guide<\/a> showing you how you can do the above on those systems.<\/p>\n\n\n\n

Meanwhile, if you use Windows for your Apache needs we have you covered with this related guide<\/a>.<\/p>\n\n\n\n

Finally, in this beginner’s guide, you have seen how to use the command-line utility to check Apache version on Ubuntu and Debian-based systems. You have also learned how to access the Apache2 help interface for other options you may need in the future.<\/p>\n","protected":false},"excerpt":{"rendered":"

With a web server software as old as Apache, there tend to be situations where your installation falls behind current versions if not maintained properly. That is why you need…<\/p>\n","protected":false},"author":1,"featured_media":11374,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,16,18],"tags":[58,142,164,193,320,354,400,424,573,591,598,635,638],"yoast_head":"\nHow to Check Apache Version on Ubuntu 20.04 Using Command Line<\/title>\n<meta name=\"description\" content=\"In this beginners web server guide you will learn how to check Apache version on Ubuntu and other Debian based Linux systems\" \/>\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\/check-apache-version-ubuntu-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 Check Apache Version on Ubuntu 20.04 Using Command Line\" \/>\n<meta property=\"og:description\" content=\"In this beginners web server guide you will learn how to check Apache version on Ubuntu and other Debian based Linux systems\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-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:57:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-15T10:57:23+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/check-apache-version-ubuntu.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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How to Check Apache Version on Ubuntu 20.04 Using Command Line\",\"datePublished\":\"2021-12-15T10:57:22+00:00\",\"dateModified\":\"2021-12-15T10:57:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/\"},\"wordCount\":290,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/check-apache-version-ubuntu.jpg\",\"keywords\":[\"Apache\",\"Community\",\"Cross Platform\",\"DevOps\",\"Internet\",\"Linux\",\"Nginx\",\"Open Source\",\"Systems Administration\",\"Tools\",\"Ubuntu\",\"Web\",\"Web Development\"],\"articleSection\":[\"Articles\",\"Guides\",\"Technology\",\"Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/\",\"url\":\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/\",\"name\":\"How to Check Apache Version on Ubuntu 20.04 Using Command Line\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/check-apache-version-ubuntu.jpg\",\"datePublished\":\"2021-12-15T10:57:22+00:00\",\"dateModified\":\"2021-12-15T10:57:23+00:00\",\"description\":\"In this beginners web server guide you will learn how to check Apache version on Ubuntu and other Debian based Linux systems\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/check-apache-version-ubuntu.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/check-apache-version-ubuntu.jpg\",\"width\":1280,\"height\":680,\"caption\":\"Check Apache Version on Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Check Apache Version on Ubuntu 20.04 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:\/\/x.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 Check Apache Version on Ubuntu 20.04 Using Command Line","description":"In this beginners web server guide you will learn how to check Apache version on Ubuntu and other Debian based Linux systems","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\/check-apache-version-ubuntu-using-command-line\/","og_locale":"en_US","og_type":"article","og_title":"How to Check Apache Version on Ubuntu 20.04 Using Command Line","og_description":"In this beginners web server guide you will learn how to check Apache version on Ubuntu and other Debian based Linux systems","og_url":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2021-12-15T10:57:22+00:00","article_modified_time":"2021-12-15T10:57:23+00:00","og_image":[{"width":1280,"height":680,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/check-apache-version-ubuntu.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How to Check Apache Version on Ubuntu 20.04 Using Command Line","datePublished":"2021-12-15T10:57:22+00:00","dateModified":"2021-12-15T10:57:23+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/"},"wordCount":290,"commentCount":0,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/check-apache-version-ubuntu.jpg","keywords":["Apache","Community","Cross Platform","DevOps","Internet","Linux","Nginx","Open Source","Systems Administration","Tools","Ubuntu","Web","Web Development"],"articleSection":["Articles","Guides","Technology","Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/","url":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/","name":"How to Check Apache Version on Ubuntu 20.04 Using Command Line","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/check-apache-version-ubuntu.jpg","datePublished":"2021-12-15T10:57:22+00:00","dateModified":"2021-12-15T10:57:23+00:00","description":"In this beginners web server guide you will learn how to check Apache version on Ubuntu and other Debian based Linux systems","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/check-apache-version-ubuntu.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/12\/check-apache-version-ubuntu.jpg","width":1280,"height":680,"caption":"Check Apache Version on Ubuntu"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/check-apache-version-ubuntu-using-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"How to Check Apache Version on Ubuntu 20.04 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:\/\/x.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\/11372"}],"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=11372"}],"version-history":[{"count":0,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/11372\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/11374"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=11372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=11372"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=11372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}