Apache https://www.novicedev.com/ en Terminal commands to start, stop or restart Apache Server on Mac OS https://www.novicedev.com/blog/terminal-commands-start-stop-or-restart-apache-server-mac-os <span>Terminal commands to start, stop or restart Apache Server on Mac OS</span> <div class="field field--name-field-image field--type-image field--label-hidden field-item"> <img loading="lazy" src="/sites/novicedev/files/styles/blog_cover/public/2021-08/Start%2C%20stop%20or%20restart%20Apache%20Web%20Server%20from%20terminal%20on%20Mac%20OS.jpg?itok=Xcj6_whl" width="772" height="496" alt="Terminal commands to start, stop or restart Apache Server on Mac OS" title="Terminal commands to start, stop or restart Apache Server on Mac OS" class="image-field" /> </div> <span><span>noviceadmin</span></span> <span>Wed, 11/14/2018 - 18:00</span> <div> <div class="field-item"> <div class="paragraph paragraph--type--text paragraph--view-mode--default"> <div class="field field--name-field-para-text field--type-text-long field--label-hidden field-item"><p>Whenever you edit <strong>'/etc/apache2/httpd.conf'</strong> file you need to restart apache on your mac. And you can make your life easy by using the terminal command to <strong>start, stop or restart the Apache server on Mac OX by simply executing the 'apachectl' commands</strong>.</p> <p> </p> <h2><strong>Command to restart mac apache server</strong></h2> <pre> <code class="language-apache">sudo apachectl restart</code></pre> <p>or</p> <pre> <code class="language-apache">sudo /usr/sbin/apachectl restart</code></pre> <p> </p> <h2><strong>Command to start mac apache server:</strong></h2> <pre> <code class="language-apache">sudo apachectl start</code></pre> <p>or</p> <pre> <code class="language-apache">sudo /usr/sbin/apachectl start</code></pre> </div> </div> </div> <div class="field-item"> <div class="paragraph paragraph--type--also-read paragraph--view-mode--default"> <div class="node-taxonomy-container"> <ul class="taxonomy-terms"> <li class="taxonomy-term"><article data-history-node-id="32" role="article" class="node node-view-mode-also-read"> <h3 class="also-read-h3">Also Read</h3> <div class="also-read-content"> <div class="also-read-title"> <a href="/blog/7-tv-shows-every-programmer-should-binge-watch" target="_blank" rel="bookmark"><span>7 TV Shows Every Programmer Should Binge Watch</span> </a> </div> <div class="node-content clear"> <a href="/blog/7-tv-shows-every-programmer-should-binge-watch" target="_blank"> <div class="field field--name-field-image field--type-image field--label-hidden field-item"> <img loading="lazy" src="/sites/novicedev/files/styles/also_read/public/2022-12/Top%20TV%20Shows%20for%20Techies%20to%20Binge%20Watch.jpg?itok=qTpG8Ixe" width="115" height="65" alt="7 TV Shows Every Programmer Should Binge Watch" title="7 TV Shows Every Programmer Should Binge Watch" class="image-field" /> </div> </a> </div> </div> </article> </li> </ul> </div> <!--/.node-taxonomy-container --> </div> </div> <div class="field-item"> <div class="paragraph paragraph--type--text paragraph--view-mode--default"> <div class="field field--name-field-para-text field--type-text-long field--label-hidden field-item"><h2><strong>Command to stop mac apache server:</strong></h2> <pre> <code class="language-apache">sudo apachectl stop</code></pre> <p>or</p> <pre> <code class="language-apache">sudo /usr/sbin/apachectl stop</code></pre> <p> </p> <p>And yes it's not always necessary to check what the status of Apache is, you can simply run the restart command from the terminal, without worrying about whether it is running or stopped.</p> <p>The restart command is also very helpful if you make any changes related to your Apache server configuration in httpd.conf. And sometimes just <strong>restart the server before starting debugging</strong> why the website is not responding or something wrong with your Apache PHP setup.</p> </div> </div> </div> </div> <div class="field field--name-body field--type-text-with-summary field--label-hidden field-item"></div> <div class="node-taxonomy-container"> <ul class="taxonomy-terms"> <li class="taxonomy-term"><a href="/topic/apache" hreflang="en">Apache</a></li> <li class="taxonomy-term"><a href="/topic/macos" hreflang="en">MacOS</a></li> </ul> </div> <!--/.node-taxonomy-container --> <section id="node-article-comment" id="comments"> <div class="comment-form-wrap"> <h2 class="add-comment-title">Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=12&amp;2=comment&amp;3=comment" token="gsI_b4s7jeSkQ5EGNx2lBXiItBywcZaYbU-FLbZT6U0"></drupal-render-placeholder> </div> <!--/.comment-form --> </section> Wed, 14 Nov 2018 18:00:17 +0000 noviceadmin 12 at https://www.novicedev.com