<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MikeDVB.com &#187; apache</title>
	<atom:link href="http://www.mikedvb.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikedvb.com</link>
	<description>Technology, Hosting, Software, and more!</description>
	<lastBuildDate>Thu, 19 Aug 2010 19:23:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing Apache + PHP + MySQL + MSSQL Extension on CentOS5</title>
		<link>http://www.mikedvb.com/2010/01/21/installing-apache-php-mysql-mssql-extension-on-centos5/</link>
		<comments>http://www.mikedvb.com/2010/01/21/installing-apache-php-mysql-mssql-extension-on-centos5/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 01:46:56 +0000</pubDate>
		<dc:creator>MikeDVB</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[5.2.11]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[freetds]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[mssql extension]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://www.mikedvb.com/?p=95</guid>
		<description><![CDATA[This is a short guide that will show you how to install Apache, PHP, MySQL, and MSSQL Extensions on a CentOS5 Server or VPS.  All &#8220;quote&#8221; blocks are to be executed in SSH (shell) as root. Getting the server ready to build applications from source: Check for any RPM installations of the applications. rpm -qa [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short guide that will show you how to install Apache, PHP, MySQL, and MSSQL Extensions on a CentOS5 Server or VPS.  All &#8220;quote&#8221; blocks are to be executed in SSH (shell) as root.</p>
<p>Getting the server ready to build applications from source:</p>
<p>Check for any RPM installations of the applications.</p>
<pre>rpm -qa | grep -i apache
rpm -qa | grep -i httpd
rpm -qa | grep -i php
rpm -qa | grep -i mysql</pre>
<p>Remove any RPM installations found with the &#8220;rpm -e&#8221; command:</p>
<pre>rpm -e application_name_here</pre>
<p>Install some base requirements to compile and install the software.<span id="more-95"></span></p>
<pre>yum -y install gcc gcc-c++ ncurses-devel libxml2-devel libpng-devel</pre>
<p>Download the appropriate sources for Apache, PHP, and MySQL and decompress it.</p>
<pre>cd /usr/src
wget http://us3.php.net/get/php-5.2.11.tar.gz/from/us.php.net/mirror
wget http://apache.inetbridge.net/httpd/httpd-2.2.14.tar.gz
wget http://downloads.mysql.com/archives/mysql-5.0/mysql-5.0.87.tar.gz
wget ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
tar xzf php-5.2.11.tar.gz
tar xzf httpd-2.2.14.tar.gz
tar xzf mysql-5.0.87.tar.gz
tar xzf freetds-stable.tgz</pre>
<p>Build and Install MySQL.</p>
<p>Add the MySQL User and Group</p>
<pre>groupadd mysql
useradd -g mysql -c "MySQL Server" mysql</pre>
<p>Install MySQL.</p>
<pre>cd mysql*
chown -R root.root *
make clean
./configure \
--prefix=/usr/local/mysql \
--localstatedir=/usr/local/mysql/data \
--disable-maintainer-mode \
--with-mysqld-user=mysql \
--with-unix-socket-path=/tmp/mysql.sock \
--without-comment \
--without-debug \
--without-bench
make &amp;&amp; make install</pre>
<p>Configure MySQL.</p>
<pre>/usr/local/mysql/bin/mysql_install_db
chown -R root:mysql /usr/local/mysql
chown -R mysql:mysql /usr/local/mysql/data
cp support-files/my-medium.cnf /etc/my.cnf
chown root:sys /etc/my.cnf
chmod 644 /etc/my.cnf</pre>
<p>Set MySQL to start on boot</p>
<pre>echo "/usr/local/mysql/lib/mysql" &gt;&gt; /etc/ld.so.conf
ldconfig
cp ./support-files/mysql.server /etc/rc.d/init.d/mysql
chmod +x /etc/rc.d/init.d/mysql
/sbin/chkconfig --level 3 mysql on
service mysql start</pre>
<p>This sets up symlinks for all MySQL binaries so that they can be run from anywhere.</p>
<pre>cd /usr/local/mysql/bin
for file in *; do ln -s /usr/local/mysql/bin/$file /usr/bin/$file; done</pre>
<p>Set a MySQL Root Password for security (obviously use something other than &#8220;new-password-here&#8221;.</p>
<pre>mysqladmin -u root password new-password-here</pre>
<p>Test the Password:</p>
<pre>mysql -u root -p</pre>
<p>While logged into MySQL delete the test database.</p>
<pre>drop database test;
use mysql;
delete from db;
delete from user where not (host="localhost" and user="root");
flush privileges;</pre>
<p>Building Apache</p>
<pre>cd /usr/src/httpd*
make clean
./configure \
--prefix=/usr/local/apache \
--enable-shared=max \
--enable-module=rewrite \
--enable-module=so
make &amp;&amp; make install</pre>
<p>Build and Install FreeTDS for MSSQL Extension Support.</p>
<pre>cd /usr/src/freetds*
./configure
make &amp;&amp; make install</pre>
<p>Build and Install PHP</p>
<pre>cd /usr/src/php*
./configure \
--with-apxs2=/usr/local/apache/bin/apxs \
--disable-debug \
--enable-ftp \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbstring \
--enable-mm=shared \
--enable-safe-mode \
--enable-track-vars \
--enable-trans-sid \
--enable-wddx=shared \
--enable-xml \
--with-dom \
--with-gd \
--with-gettext \
--with-mysql=/usr/local/mysql \
--with-regex=system \
--with-xml \
--with-zlib-dir=/usr/lib \
--with-mssql=/usr/local/
make &amp;&amp; make install
cp php.ini-dist /usr/local/lib/php.ini</pre>
<p>I prefer to symlink configuration files to /etc so that they are easy to find and edit.</p>
<pre>ln -s /usr/local/lib/php.ini /etc/php.ini
ln -s /usr/local/apache/conf/httpd.conf /etc/httpd.conf</pre>
<p>Edit the Apache Configuration File &#8211; I prefer nano.</p>
<pre>nano /etc/httpd.conf</pre>
<p>Uncomment the following lines or add them (uncommented) if they do not exist after &#8220;AddType application/x-tar .tgz&#8221;</p>
<pre>#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps</pre>
<p>Find the DirectoryIndex (CTRL+W in Nano) and add index.php to the beginning.</p>
<pre>DirectoryIndex</pre>
<p>Set Apache to start on boot and start it for the first time.</p>
<pre>ln -s /usr/local/apache/bin/apachectl /etc/rc.d/init.d/apache
ln -s /etc/rc.d/init.d/apache /etc/rc.d/rc3.d/S90apache
/etc/rc.d/init.d/apache start</pre>
<p>Then, you must configure FreeTDS to point to your MSSQL DB server. To do so, edit (or create) the /usr/local/etc/freetds.conf file and put in there exclusively these lines:</p>
<pre>[global]
host = xxx.xxx.xxx.xxx (ip of the MSSQL server)
port = 1433
client charset = UTF-8
tds version = 7.0 (or 8.0 if using FreeTDS 0.82 or later)
text size = 20971520</pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.mikedvb.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.mikedvb.com/2010/01/21/installing-apache-php-mysql-mssql-extension-on-centos5/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>LiteSpeed Licensing &#8211; 39 Months To Make Owned Worth It???</title>
		<link>http://www.mikedvb.com/2009/07/23/litespeed-licensing-39-months-to-make-owned-worth-it/</link>
		<comments>http://www.mikedvb.com/2009/07/23/litespeed-licensing-39-months-to-make-owned-worth-it/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 21:12:09 +0000</pubDate>
		<dc:creator>MikeDVB</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[licensing]]></category>
		<category><![CDATA[litespeed]]></category>
		<category><![CDATA[owned vs leased]]></category>
		<category><![CDATA[webhosting]]></category>

		<guid isPermaLink="false">http://www.mikedvb.com/?p=49</guid>
		<description><![CDATA[I was doing the math on the licensing structure (we&#8217;ll go with the 1-CPU Enterprise license as this example). I will start by saying that I realize it is in LiteSpeed Technologies&#8217; best interests for you to lease your license from them as this gives them the most profit/income etc&#8230; where as an Owned license [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">
<dl id="attachment_51" class="wp-caption alignleft" style="width: 121px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-51" title="litespeed2" src="http://www.mikedvb.com/wp-content/uploads/2009/07/litespeed21.png" alt="LiteSpeed" width="111" height="40" /></dt>
</dl>
</div>
<p>I was doing the math on the licensing structure (we&#8217;ll go with the 1-CPU Enterprise license as this example).</p>
<p>I will start by saying that I realize it is in LiteSpeed Technologies&#8217; best interests for you to lease your license from them as this gives them the most profit/income etc&#8230; where as an Owned license is generally seen as a larger up-front investment to reduce long-term costs.</p>
<p>I am also aware that I am comparing monthly lease to a yearly ownership as I am wanting to compare the extremes (smallest up-front investment vs the largest).</p>
<p><span>Owned licenses are an <em>investment into LiteSpeed Web Server/Technologies</em> and I always look at investments based upon how well they will return and how long until they return. A 39 month wait until the investment begins to return is a tad too long in my opinion and as you read on you will see the details of my analysis of their licensing program.<span id="more-49"></span><br />
</span></p>
<p>The primary problem that I see is that the Owned licensing doesn&#8217;t really reduce long-term costs fast enough &#8211; the argument could be seen either way that either the leasing prices need increased (sorry, have to share both view points) or that the owned licensing needs to be reduced either the initial purchase or the support renewal costs.</p>
<p>The price of a 1-CPU Enterprise Leased license is $32/month or $384 paid monthly for a year.</p>
<p>The price of a 1-CPU Enterprise Owned license is $41.58/month or $499 paid yearly.</p>
<p>At these prices you could have a Leased license for 15.6 Months for the price of an Owned license for one year &#8211; which makes sense if you think about it.  At the end of the first year if you want to continue support and upgrades for your owned license you then have to pay $99 for a support renewal.  You do not have to pay any such renewal fee for Leased license.</p>
<p>The price of a 1-CPU Enterprise Owned license for two years is $598 which would get you 18.69 months of Leased licensing &#8211; so after you have your owned license for over 18 and a half months you&#8217;ve broken even on your investment of an owned license.  While a year and a half is not a tremendous amount of time &#8211; it is asking for a huge investment of your money up front.  To make the Owned license an option you have to be willing to invest over a year and a half into LiteSpeed before you even break even.</p>
<p>After 18.69 months of being on an Owned license and having paid the $99 support fee after a year you will be at approximately $8.25/month for each owned license which isn&#8217;t terribly bad (a savings over leased of $23.75/month), but keep in mind it took over a year and a half to get to this point which leads me to my next concern.</p>
<p>The next major concern in my eyes with the current structure is that for the Owned license to &#8220;pay for itself&#8221; (to return on my original investment) which is one of the primary reasons I look at owned licenses over leased &#8211; it will take an <em>additional  21 months</em> for a total of 39 months before going Owned has &#8220;paid for itself&#8221; and returns on your initial owned licensing investment will be realized if you don&#8217;t include the support Renewals. The first and second renewal for a total addition of $198 because by this point you&#8217;re already at <strong>39 months</strong> before going Owned has paid for itself.</p>
<p>Is it really intentional on the part of LiteSpeedTech to make an Owned license holder have to wait 39 months before they can start to see a return on their investment of going Owned?</p>
<p>What are your thoughts? Post comments!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.mikedvb.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.mikedvb.com/2009/07/23/litespeed-licensing-39-months-to-make-owned-worth-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LiteSpeed4.0 vs Apache2.2 In My Eyes</title>
		<link>http://www.mikedvb.com/2009/07/22/litespeed4-0-vs-apache2-2-in-my-eyes/</link>
		<comments>http://www.mikedvb.com/2009/07/22/litespeed4-0-vs-apache2-2-in-my-eyes/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 08:34:02 +0000</pubDate>
		<dc:creator>MikeDVB</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[litespeed]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[webhosting]]></category>

		<guid isPermaLink="false">http://www.mikedvb.com/?p=40</guid>
		<description><![CDATA[I will start this post by saying that I have used Apache for more than 2 years in production environments and I am quite experienced at optimizing Apache to accomplish the goal at hand should it be handling thousands of connections simultaneously to serving dynamic web sites quickly and efficiently while minimizing the memory footprint. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-41" style="margin-right: 5px;" title="LSvsAP" src="http://www.mikedvb.com/wp-content/uploads/2009/07/LSvsAP.png" alt="LSvsAP" width="146" height="79" />I will start this post by saying that I have used Apache for more than 2 years in production environments and I am quite experienced at optimizing Apache to accomplish the goal at hand should it be handling thousands of connections simultaneously to serving dynamic web sites quickly and efficiently while minimizing the memory footprint.</p>
<p>I have in the past fought tooth-and-nail for Apache&#8217;s ability to match LiteSpeed Web Server&#8217;s speed when serving web sites.  Apache can be configured to be nearly as fast if not just as fast as LiteSpeed but the problem is that Apache requires in my own personal testing nearly two times as much memory and FastCGI to come close to LiteSpeed comes out of the box.  LiteSpeed claims to serve static content up to 9 times faster than Apache and PHP up to 50% faster.  While I won&#8217;t go into depth as to which one can do what faster, I will go into why I chose to move my company from Apache to LiteSpeed and what benefits we have seen.  If you want to see benchmarks that compare LiteSpeed and Apache I recommend you search <a href="http://www.google.com/" target="_blank">Google</a>.<span id="more-40"></span></p>
<p>My company has relied upon Apache for years however I recently began testing the latest version of LiteSpeed which has come a long way.  LiteSpeed out of the box offers the performance of an extremely-optimized Apache installation with half or less memory consumption in my testing which is a major benefit.  Apache is very weak against certain DoS attacks such as a HTTP Request DoS which doesn&#8217;t require a large amount of outgoing bandwidth but can be devastating to an Apache web server where as LightSpeed takes such attacks in stride in my testing.</p>
<p>I found personally that the overall &#8220;feel&#8221; of browsing various test sites, both dynamic and static, felt snappier or zippier which is an additional benefit to running LiteSpeed.  In the end if you know what you are doing and you have the RAM in your server to accomplish it you can match LightSpeed Web Server&#8217;s speed at the cost of efficiency.</p>
<p>LiteSpeed&#8217;s Web Server is a direct replacement for Apache and installation was a breeze.  LiteSpeed supports all of the popular control panels and all of the features of Apache <span style="text-decoration: line-through;">except for your old Server Side Includes but who uses those any more</span>?  In my experience on a cPanel based web server you can log into WHM and switch between LiteSpeed and Apache at any time and you can run LiteSpeed on an alternate port for testing any sites that you wish to make sure will function correctly before &#8220;making the switch.&#8221;  I have yet to run into any issues that are caused by LiteSpeed however I will post an update if I do run into any.</p>
<p>At the end of the day my advice is to spend the extra money you would be paying to add additional RAM into your server on a LiteSpeed Web Server license.</p>
<p>Edit: LiteSpeed 4.0 *does* support Server Side Includes even though the current FAQ on LiteSpeedTech.com says that it does not.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.mikedvb.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.mikedvb.com/2009/07/22/litespeed4-0-vs-apache2-2-in-my-eyes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
