{"id":9267,"date":"2022-04-11T10:30:54","date_gmt":"2022-04-11T10:30:54","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=9267"},"modified":"2022-04-11T10:30:54","modified_gmt":"2022-04-11T10:30:54","slug":"useful-linux-commands-for-managing-the-apache-web-server","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/","title":{"rendered":"Useful Linux Commands for Managing the Apache Web Server"},"content":{"rendered":"<p><span style=\"font-weight: 400;\"><strong>Apache<\/strong> is a free, open-source Web server application that is most commonly used on Unix-like operating systems, but it can also be used in Windows. Knowing about the Apache web server will be very useful for you as a developer or system administrator. It includes a lot of noteworthy features, one of which is virtual hosting, which allows a single Apache Web Server to serve a variable number of websites.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As a developer or system administrator, you should be familiar with some of the most relevant commands for managing Apache web server. The commands that will be discussed must be run as root or as a sudo user.<\/span><\/p>\n<p><span class=\"text-info\" style=\"font-weight: 400;\">Ensure that the following commands are run as root or sudo, and that they operate on any Linux distribution, including CentOS, RHEL, Fedora, Debian, and Ubuntu.<\/span><\/p>\n<h3><b>Install Apache Server<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Use your default distribution package manager to install Apache web server, as indicated.<\/span><\/p>\n<div class=\"service-sh\">\n<pre>$ sudo apt install apache2 <span style=\"font-weight: 400;\">  \u00a0 [On Debian\/Ubuntu]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo yum install httpd<\/span> <span style=\"font-weight: 400;\">  \u00a0 [On RHEL\/CentOS]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo dnf install httpd<\/span> <span style=\"font-weight: 400;\">  \u00a0 [On Fedora 22+]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo zypper install apache2<\/span> <span style=\"font-weight: 400;\">  \u00a0 [On openSUSE]<\/span><\/pre>\n<\/div>\n<h3><strong>Checking Apache Version<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Run the following command on your Linux machine to see what version of Apache is installed.<\/span><\/p>\n<div class=\"command-sh\">\n<pre>$ sudo httpd -v\r\n<span style=\"font-weight: 400;\">OR<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo apache2 -v$ sudo httpd -v\r\nOR\r\n$ sudo apache2 -v\r\n<\/span><\/pre>\n<p><strong style=\"font-size: 1.75rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\"><br \/>\nSample Output<\/strong><\/p>\n<\/div>\n<div class=\"command-sh\">\n<pre>Server version: Apache\/2.4.6 (CentOS)\r\n<span style=\"font-weight: 400;\">Server built: \u00a0 Nov\u00a0 5 2018 01:47:09<\/span>\r\n<\/pre>\n<\/div>\n<p>Use the -V flag to display the Apache version number and compilation parameters, as indicated.<\/p>\n<div class=\"command-sh\">\n<pre>$ sudo httpd -V\r\n<span style=\"font-weight: 400;\">OR<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo apache2 -V<\/span><\/pre>\n<\/div>\n<h3><strong>Sample Output<\/strong><\/h3>\n<div class=\"output-sh\">\n<pre>Server version: Apache\/2.4.6 (CentOS)\r\n<span style=\"font-weight: 400;\">Server built: \u00a0 Nov\u00a0 5 2018 01:47:09<\/span>\r\n<span style=\"font-weight: 400;\">Server's Module Magic Number: 20120211:24<\/span>\r\n<span style=\"font-weight: 400;\">Server loaded:\u00a0 APR 1.4.8, APR-UTIL 1.5.2<\/span>\r\n<span style=\"font-weight: 400;\">Compiled using: APR 1.4.8, APR-UTIL 1.5.2<\/span>\r\n<span style=\"font-weight: 400;\">Architecture: \u00a0 64-bit<\/span>\r\n<span style=\"font-weight: 400;\">Server MPM: \u00a0 \u00a0 prefork<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0threaded: \u00a0 \u00a0 no<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0forked: \u00a0 \u00a0 yes (variable process count)<\/span>\r\n<span style=\"font-weight: 400;\">Server compiled with....<\/span>\r\n<span style=\"font-weight: 400;\"> -D APR_HAS_SENDFILE<\/span>\r\n<span style=\"font-weight: 400;\"> -D APR_HAS_MMAP<\/span>\r\n<span style=\"font-weight: 400;\"> -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)<\/span>\r\n<span style=\"font-weight: 400;\"> -D APR_USE_SYSVSEM_SERIALIZE<\/span>\r\n<span style=\"font-weight: 400;\"> -D APR_USE_PTHREAD_SERIALIZE<\/span>\r\n<span style=\"font-weight: 400;\"> -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT<\/span>\r\n<span style=\"font-weight: 400;\"> -D APR_HAS_OTHER_CHILD<\/span>\r\n<span style=\"font-weight: 400;\"> -D AP_HAVE_RELIABLE_PIPED_LOGS<\/span>\r\n<span style=\"font-weight: 400;\"> -D DYNAMIC_MODULE_LIMIT=256<\/span>\r\n<span style=\"font-weight: 400;\"> -D HTTPD_ROOT=\"\/etc\/httpd\"<\/span>\r\n<span style=\"font-weight: 400;\"> -D SUEXEC_BIN=\"\/usr\/sbin\/suexec\"<\/span>\r\n<span style=\"font-weight: 400;\"> -D DEFAULT_PIDLOG=\"\/run\/httpd\/httpd.pid\"<\/span>\r\n<span style=\"font-weight: 400;\"> -D DEFAULT_SCOREBOARD=\"logs\/apache_runtime_status\"<\/span>\r\n<span style=\"font-weight: 400;\"> -D DEFAULT_ERRORLOG=\"logs\/error_log\"<\/span>\r\n<span style=\"font-weight: 400;\"> -D AP_TYPES_CONFIG_FILE=\"conf\/mime.types\"<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0-D SERVER_CONFIG_FILE=\"conf\/httpd.conf\"<\/span><\/pre>\n<\/div>\n<h3><strong>Checking Apache Configuration Syntax Errors<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Before restarting the service, verify your Apache configuration files for any syntax issues with the following command, which will validate the config files.<\/span><\/p>\n<div class=\"command-sh\">\n<pre>$ sudo httpd -t\r\n<span style=\"font-weight: 400;\">OR<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo apache2ctl -t<\/span><\/pre>\n<\/div>\n<h3><strong>Sample Output<\/strong><\/h3>\n<div class=\"output-sh\">\n<pre>AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using tecmint.com.\u00a0\r\n<span style=\"font-weight: 400;\">Set the 'ServerName' directive globally to suppress this message<\/span>\r\n\r\n<span style=\"font-weight: 400;\">Syntax OK<\/span><\/pre>\n<\/div>\n<h3><strong>Now Start Apache Service<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Run the following command to start the Apache service.<\/span><\/p>\n<div class=\"command-sh\">\n<pre>------------ On CentOS\/RHEL ------------\u00a0\r\n\r\n<span style=\"font-weight: 400;\">$ sudo systemctl start httpd \u00a0 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo service httpd start <\/span> <span style=\"font-weight: 400;\"> [On SysVInit]<\/span>\r\n\r\n<span style=\"font-weight: 400;\">------------ On Ubunt\/Debian\u00a0 ------------<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo systemctl start apache2 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo service apache2 start \u00a0 \u00a0 [On SysVInit]<\/span><\/pre>\n<\/div>\n<h3><strong>Enabling Apache Services<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">The last command only starts the Apache service temporarily; perform the following command to make it auto-start upon system startup.<\/span><\/p>\n<div class=\"command-sh\">\n<pre>------------ On CentOS\/RHEL ------------\u00a0\r\n<span style=\"font-weight: 400;\">$ sudo systemctl enable httpd \u00a0 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo chkconfig httpd on <\/span> <span style=\"font-weight: 400;\">  [On SysVInit]<\/span>\r\n\r\n<span style=\"font-weight: 400;\">------------ On Ubunt\/Debian\u00a0 ------------<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo systemctl enable apache2 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo chkconfig apache2 on \u00a0 \u00a0 \u00a0 [On SysVInit]<\/span><\/pre>\n<\/div>\n<h3><strong>Restart Apache Service<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Run the following command to restart Apache (stop and then relaunch the service).<\/span><\/p>\n<div class=\"command-sh\">\n<pre>------------ On CentOS\/RHEL ------------\u00a0\r\n<span style=\"font-weight: 400;\">$ sudo systemctl restart httpd \u00a0 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo service httpd restart <\/span> <span style=\"font-weight: 400;\"> \u00a0 [On SysVInit]<\/span>\r\n\r\n<span style=\"font-weight: 400;\">------------ On Ubunt\/Debian\u00a0 ------------<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo systemctl restart apache2 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo service apache2 restart \u00a0 \u00a0 [On SysVInit]<\/span><\/pre>\n<\/div>\n<h3><strong>View Apache Service Status<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Run the following command to get information about the Apache service&#8217;s run time status.<\/span><\/p>\n<div class=\"command-sh\">\n<pre>------------ On CentOS\/RHEL ------------\u00a0\r\n<span style=\"font-weight: 400;\">$ sudo systemctl status httpd \u00a0 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo service httpd status <\/span> <span style=\"font-weight: 400;\">  [On SysVInit]<\/span>\r\n\r\n<span style=\"font-weight: 400;\">------------ On Ubunt\/Debian\u00a0 ------------<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo systemctl status apache2 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo service apache2 status \u00a0 \u00a0 [On SysVInit]<\/span><\/pre>\n<\/div>\n<h3><strong>Reloading Apache Services<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">If you&#8217;ve made any modifications to the Apache server configuration, run the following command to force the service to reload its settings.<\/span><\/p>\n<div class=\"command-sh\">\n<pre>------------ On CentOS\/RHEL ------------\u00a0\r\n<span style=\"font-weight: 400;\">$ sudo systemctl reload httpd \u00a0 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo service httpd reload <\/span> <span style=\"font-weight: 400;\">  [On SysVInit]<\/span>\r\n\r\n<span style=\"font-weight: 400;\">------------ On Ubunt\/Debian\u00a0 ------------<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo systemctl reload apache2 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo service apache2 reload \u00a0 \u00a0 [On SysVInit]<\/span>\r\n<\/pre>\n<\/div>\n<h3><strong>Stopping Apache Services<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Use the following command to halt the Apache service.<\/span><\/p>\n<div class=\"command-sh\">\n<pre>----------- On CentOS\/RHEL ------------\u00a0\r\n<span style=\"font-weight: 400;\">$ sudo systemctl stop httpd \u00a0 \u00a0 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo service httpd stop <\/span> <span style=\"font-weight: 400;\">  [On SysVInit]<\/span>\r\n\r\n<span style=\"font-weight: 400;\">------------ On Ubunt\/Debian\u00a0 ------------<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo systemctl stop apache2 \u00a0 \u00a0 [On Systemd]<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo service apache2 stop \u00a0 \u00a0 [On SysVInit]<\/span><\/pre>\n<\/div>\n<h3><strong>Show Apache Command Help<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Last but not least, by running the following command under systemd, you can get help with Apache service instructions.<\/span><\/p>\n<div class=\"command-sh\">\n<pre>$ sudo httpd -h\r\n<span style=\"font-weight: 400;\">OR<\/span>\r\n<span style=\"font-weight: 400;\">$ sudo apache2 -h<\/span>\r\n<span style=\"font-weight: 400;\">OR<\/span>\r\n<span style=\"font-weight: 400;\">$ systemctl -h apache2<\/span><\/pre>\n<\/div>\n<h3><strong>Sample Output<\/strong><\/h3>\n<div class=\"output-sh\">\n<pre>Usage: httpd [-D name] [-d directory] [-f file]\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[-C \"directive\"] [-c \"directive\"]<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[-k start|restart|graceful|graceful-stop|stop]<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]<\/span>\r\n<span style=\"font-weight: 400;\">Options:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-D name\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : define a name for use in\u00a0 directives<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-d directory \u00a0 \u00a0 \u00a0 : specify an alternate initial ServerRoot<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-f file\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : specify an alternate ServerConfigFile<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-C \"directive\" \u00a0 \u00a0 : process directive before reading config files<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-c \"directive\" \u00a0 \u00a0 : process directive after reading config files<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-e level \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : show startup errors of level (see LogLevel)<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-E file\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : log startup errors to file<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-v \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : show version number<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-V \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : show compile settings<\/span>\r\n<span style=\"font-weight: 400;\"> -h \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : list available command line options (this page)<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-l \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : list compiled in modules<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-L \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : list available configuration directives<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-t -D DUMP_VHOSTS\u00a0 : show parsed vhost settings<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-t -D DUMP_RUN_CFG : show parsed run settings<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-S \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-t -D DUMP_MODULES : show all loaded modules\u00a0<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-M \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : a synonym for -t -D DUMP_MODULES<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-t \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : run syntax check for config files<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0-T \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : start without DocumentRoot(s) check<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0-X \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : debug mode (only one worker, do not detach)<\/span><\/pre>\n<\/div>\n<p><em>That&#8217;s all I&#8217;ve got for now! We&#8217;ve covered the most widely used Apache\/HTTPD service administration commands, such as starting, enabling, resuming, and halting Apache, in this post.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache is a free, open-source Web server application that is most commonly used on Unix-like operating systems, but it can also be used in Windows. Knowing about the Apache web server will be very useful for you as a developer or system administrator. It includes a lot of noteworthy features, one of which is virtual [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-9267","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Useful Linux Commands for Managing the Apache Web Server - cPanel Plesk<\/title>\n<meta name=\"description\" content=\"Apache is a free, open-source Web server application that is most commonly used on Unix-like operating systems, but it can also be used in Windows. Knowing about the Apache web server will be very useful for you as a developer or system administrator.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Useful Linux Commands for Managing the Apache Web Server - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"Apache is a free, open-source Web server application that is most commonly used on Unix-like operating systems, but it can also be used in Windows. Knowing about the Apache web server will be very useful for you as a developer or system administrator.\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"samama\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/\"},\"author\":{\"name\":\"samama\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\"},\"headline\":\"Useful Linux Commands for Managing the Apache Web Server\",\"datePublished\":\"2022-04-11T10:30:54+00:00\",\"dateModified\":\"2022-04-11T10:30:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/\"},\"wordCount\":392,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/\",\"name\":\"Useful Linux Commands for Managing the Apache Web Server - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"datePublished\":\"2022-04-11T10:30:54+00:00\",\"dateModified\":\"2022-04-11T10:30:54+00:00\",\"description\":\"Apache is a free, open-source Web server application that is most commonly used on Unix-like operating systems, but it can also be used in Windows. Knowing about the Apache web server will be very useful for you as a developer or system administrator.\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Useful Linux Commands for Managing the Apache Web Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\",\"name\":\"samama\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"caption\":\"samama\"},\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Useful Linux Commands for Managing the Apache Web Server - cPanel Plesk","description":"Apache is a free, open-source Web server application that is most commonly used on Unix-like operating systems, but it can also be used in Windows. Knowing about the Apache web server will be very useful for you as a developer or system administrator.","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":"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/","twitter_card":"summary_large_image","twitter_title":"Useful Linux Commands for Managing the Apache Web Server - cPanel Plesk","twitter_description":"Apache is a free, open-source Web server application that is most commonly used on Unix-like operating systems, but it can also be used in Windows. Knowing about the Apache web server will be very useful for you as a developer or system administrator.","twitter_misc":{"Written by":"samama","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/"},"author":{"name":"samama","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465"},"headline":"Useful Linux Commands for Managing the Apache Web Server","datePublished":"2022-04-11T10:30:54+00:00","dateModified":"2022-04-11T10:30:54+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/"},"wordCount":392,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/","url":"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/","name":"Useful Linux Commands for Managing the Apache Web Server - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"datePublished":"2022-04-11T10:30:54+00:00","dateModified":"2022-04-11T10:30:54+00:00","description":"Apache is a free, open-source Web server application that is most commonly used on Unix-like operating systems, but it can also be used in Windows. Knowing about the Apache web server will be very useful for you as a developer or system administrator.","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/useful-linux-commands-for-managing-the-apache-web-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"Useful Linux Commands for Managing the Apache Web Server"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465","name":"samama","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","caption":"samama"},"url":"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=9267"}],"version-history":[{"count":7,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9267\/revisions"}],"predecessor-version":[{"id":9277,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9267\/revisions\/9277"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=9267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=9267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=9267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}