<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Apache on Shane Cunningham</title><link>https://cunninghamshane.com/tags/apache/</link><description>Recent content in Apache on Shane Cunningham</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 24 Mar 2013 05:25:54 +0000</lastBuildDate><atom:link href="https://cunninghamshane.com/tags/apache/index.xml" rel="self" type="application/rss+xml"/><item><title>Automate Virtual Hosts creation</title><link>https://cunninghamshane.com/posts/automate-virtual-hosts-creation/</link><pubDate>Sun, 24 Mar 2013 05:25:54 +0000</pubDate><guid>https://cunninghamshane.com/posts/automate-virtual-hosts-creation/</guid><description>&lt;p&gt;These tools will help in never having to manually add virtual hosts to your Apache server. Well, maybe not ever, but they will be able to create your virtual hosts in most cases.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="http://justcurl.com"&gt;&lt;strong&gt;justcurl.com&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;These tools need to be run on the server you are trying to setup the vhosts on. It will autodetective your Linux distribution and work accordingly.&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;sh&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bash &amp;lt;&lt;span class="o"&gt;(&lt;/span&gt; curl -H &lt;span class="s1"&gt;&amp;#39;x-docroot: /var/www/vhosts/example.com&amp;#39;&lt;/span&gt; -H &lt;span class="s1"&gt;&amp;#39;x-port: 80&amp;#39;&lt;/span&gt; -H &lt;span class="s1"&gt;&amp;#39;host: example.com&amp;#39;&lt;/span&gt; justcurl.com &lt;span class="o"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;You can set the DocumentRoot, port and ServerName in the options. You can also use this to automagically install Wordpress, but it&amp;rsquo;s still in testing so use with caution.&lt;/p&gt;</description></item><item><title>Analyze Apache and MySQL configurations</title><link>https://cunninghamshane.com/posts/analyze-apache-and-mysql-configurations/</link><pubDate>Sun, 24 Mar 2013 04:04:18 +0000</pubDate><guid>https://cunninghamshane.com/posts/analyze-apache-and-mysql-configurations/</guid><description>&lt;p&gt;I use these two tools pretty often and thought I would mention them here. They analyze your Apache and MySQL configurations and make general recommendations. That doesn&amp;rsquo;t mean you need to follow these, but they are good at showing you overviews of your configs that you can use in addition to other data to make configuration change decisions.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/gusmaskowitz/apachebuddy.pl"&gt;&lt;strong&gt;Apachebuddy.pl&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;This is a one liner you can use to run apachebuddy.pl, it will analyze your currently running Apache processes and configurations, how much memory they are using and how much memory you have on the server to make recommendations. Run as root.&lt;/p&gt;</description></item></channel></rss>