<?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>TechBytes &#187; Apache</title>
	<atom:link href="http://www.asim.pk/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.asim.pk</link>
	<description>Technology Bytes</description>
	<lastBuildDate>Fri, 20 Jan 2012 12:48:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Good bye CentOS! Hello Ubuntu</title>
		<link>http://www.asim.pk/2010/05/15/good-bye-centos-hello-ubuntu/</link>
		<comments>http://www.asim.pk/2010/05/15/good-bye-centos-hello-ubuntu/#comments</comments>
		<pubDate>Fri, 14 May 2010 20:01:00 +0000</pubDate>
		<dc:creator>Asim Zeeshan</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS 5.4]]></category>
		<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[EPEL]]></category>
		<category><![CDATA[iWeb]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[LTS]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[repo]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Ubuntu 10.04]]></category>
		<category><![CDATA[Ubuntu Server]]></category>

		<guid isPermaLink="false">http://www.asim.pk/?p=655</guid>
		<description><![CDATA[Its been about almost more then two years since I have been playing with CentOS on many different platforms etc. Its very stable but on the other hand, PHP/MySQL updates are very hard to get and still PHP is 5.1.6. &#8230; <a href="http://www.asim.pk/2010/05/15/good-bye-centos-hello-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Its been about almost more then two years since I have been playing with CentOS on many different platforms etc. Its very stable but on the other hand, PHP/MySQL updates are very hard to get and still PHP is 5.1.6. I tried EPEL repo and it updated PHP to 5.3.1 but still there were conflicts with stuff and many core packages.</p>
<p>So, I thought why not move to Ubuntu since it has just announced 10.04LTS (Long Term Support) in April 2010. Folks at iWeb were really nice to do a reinstall without any charges and also process a memory upgrade request at an amazing 50% discount.</p>
<p><strong>Ubuntu 10.04 LTS</strong></p>
<ul>
<li>Apache 2 version is 2.2.14</li>
<li>PHP version is 5.3.2</li>
<li>MySQL version is 5.1.41-3ubuntu12</li>
<li>SVN (Subversion) version is 1.6.6</li>
</ul>
<p><strong>As a comparison CentOS 5.4 has the following versions</strong></p>
<ul>
<li>Apache 2 version is 2.2.3</li>
<li>PHP version is 5.1.6</li>
<li>MySQL version is 5.0.77</li>
<li>SVN (Subversion) version is 1.4.2</li>
</ul>
<p>So if you are a PHP developer looking to deploy a Linux flavour on your new box, choose Ubuntu <img src='http://www.asim.pk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.asim.pk/2010/05/15/good-bye-centos-hello-ubuntu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Install Apache, PHP and MySQL on CentOS</title>
		<link>http://www.asim.pk/2009/07/02/how-to-install-apache-php-and-mysql-on-centos/</link>
		<comments>http://www.asim.pk/2009/07/02/how-to-install-apache-php-and-mysql-on-centos/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 04:47:33 +0000</pubDate>
		<dc:creator>Asim Zeeshan</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[YUM]]></category>

		<guid isPermaLink="false">http://www.asim.pk/?p=391</guid>
		<description><![CDATA[I have seen people installing Apache, PHP and MySQL from source code on a production server. You should NEVER, NEVER, NEVER install these packages from source on an RPM or DEB based Linux distributions. Did I say “NEVER” enough times &#8230; <a href="http://www.asim.pk/2009/07/02/how-to-install-apache-php-and-mysql-on-centos/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have seen people installing Apache, PHP and MySQL from source code on a production server. You should NEVER, NEVER, NEVER install these packages from source on an RPM or DEB based Linux distributions. Did I say “NEVER” enough times to make your realize that it is not a good practice?</p>
<p>Installing from source is bad idea; there are many reasons for this but the major one is that you will be spending a lot of time keeping the system updated. If you love installing from source then I would suggest using a different distribution e.g. Gentoo.</p>
<p>You can build from source if the package is not available in yum but still, try to use “yum” (or “apt-get” on Ubuntu) because it will save a lot of your time when upgrading your packages.</p>
<p><span id="more-391"></span></p>
<p>So here is the procedure to Install Apache, PHP and MySQL on a CentOS box.</p>
<p>First of all edit the following file using “<strong>vi</strong>” or any other editor you prefer (I prefer <strong>nano</strong>)</p>
<pre class="brush: plain; title: ; notranslate">nano /etc/yum.repos.d/CentOS-Base.repo</pre>
<p>Find the line under <strong>[centosplus]</strong> that reads something like this</p>
<pre class="brush: plain; title: ; notranslate">enabled = 0</pre>
<p>Change it to</p>
<pre class="brush: plain; title: ; notranslate">enabled = 1</pre>
<p>Then do</p>
<pre class="brush: plain; title: ; notranslate">yum install httpd php mysql-server php-mysql php-gd</pre>
<p>This will install Apache, PHP, MySQL and many other common packages</p>
<p>All you need now is to start Apache (httpd) and MySQL (mysqld)</p>
<pre class="brush: plain; title: ; notranslate">/etc/init.d/httpd start
/etc/init.d/mysqld start</pre>
<p>Wow, that was easy, so you got Apache, PHP and MySQL running on your system but still needs to be configured to auto-run on server boot (or reboot). Just punch in the following command and it will be done for both Apache and MySQL (you don’t need to do this for PHP since it is already bind to Apache)</p>
<pre class="brush: plain; title: ; notranslate">/sbin/chkconfig httpd --level 345 on
/sbin/chkconfig mysqld --level 345 on</pre>
<p><strong>345</strong> are basically run level 3, 4 and 5. If you want to study more about Run Levels please consult <strong><a href="http://en.wikipedia.org/wiki/Runlevel#Typical_Linux_runlevels " target="_blank">this article</a></strong>.</p>
<p>That&#8217;s it, these simple steps will give install Apache, PHP, MySQL and all the common packages that you will require. Most importantly, you can update these packages with just</p>
<pre class="brush: plain; title: ; notranslate">yum update</pre>
<p>(You may try this command right now but it will not work since you already got all the updated stuff installed)</p>
<p>Updating your system is a breeze now <img src='http://www.asim.pk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Note 1:</strong> Please change the password for “root” user in MySQL.</p>
<p><strong>Note 2:</strong> Your “DocumentRoot” is /var/www/html.</p>
<p><strong>Update: </strong>Added instructions to auto-start Apache and MySQL when system starts / restarts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asim.pk/2009/07/02/how-to-install-apache-php-and-mysql-on-centos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing / re-installing and Configuring phpMyAdmin on Ubuntu</title>
		<link>http://www.asim.pk/2009/06/17/installing-re-installing-and-configuring-phpmyadmin-on-ubuntu/</link>
		<comments>http://www.asim.pk/2009/06/17/installing-re-installing-and-configuring-phpmyadmin-on-ubuntu/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 11:23:38 +0000</pubDate>
		<dc:creator>Asim Zeeshan</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[Ubuntu Desktop]]></category>
		<category><![CDATA[Ubuntu Server]]></category>

		<guid isPermaLink="false">http://www.asim.pk/?p=372</guid>
		<description><![CDATA[phpMyAdmin is a very common and handy tool that most of the developers use. It is available on almost every server. Installing phpMyAdmin on Ubuntu server is even easier, you just need to but what if we accidently skip the &#8230; <a href="http://www.asim.pk/2009/06/17/installing-re-installing-and-configuring-phpmyadmin-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.phpmyadmin.net/" target="_blank">phpMyAdmin</a></strong> is a very common and handy tool that most of the developers use. It is available on almost every server.</p>
<p>Installing phpMyAdmin on Ubuntu server is even easier, you just need to</p>
<pre class="brush: plain; title: ; notranslate">sudo apt-get install phpmyadmin</pre>
<p>but what if we accidently skip the configuration screen where phpmyadmin makes modifications to apache?</p>
<p>Dont worry just do the following</p>
<p>Edit Apache&#8217;s configuration file (assuming you are using apache2)</p>
<pre class="brush: plain; title: ; notranslate">sudo nano /etc/apache2/apache2.conf
# better to use the following command instead of the one above
#gksudo gedit /etc/apache2/apache2.conf</pre>
<p>Add the following line of code inside apache2.conf:</p>
<pre class="brush: plain; title: ; notranslate">Include /etc/phpmyadmin/apache.conf</pre>
<p>Now restart Apache:</p>
<pre class="brush: plain; title: ; notranslate">sudo /etc/init.d/apache2 restart</pre>
<p>Go to <strong>/phpmyadmin/</strong> and login with your mysql username and password.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asim.pk/2009/06/17/installing-re-installing-and-configuring-phpmyadmin-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intall Apache, MySQL and PHP on Ubuntu 8.10</title>
		<link>http://www.asim.pk/2009/01/09/intall-apache-mysql-and-php-on-ubuntu-810/</link>
		<comments>http://www.asim.pk/2009/01/09/intall-apache-mysql-and-php-on-ubuntu-810/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 19:01:39 +0000</pubDate>
		<dc:creator>Asim Zeeshan</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[LAMPP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu 8.10]]></category>
		<category><![CDATA[Ubuntu Desktop]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://www.asim.pk/?p=182</guid>
		<description><![CDATA[WARNING: Please use this method to install Apache, PHP and MySQL because its more suitable for most of your needs and has options to auto-upgrade your installation. The following method is obsolete and not recommended. After trying to install Apache, &#8230; <a href="http://www.asim.pk/2009/01/09/intall-apache-mysql-and-php-on-ubuntu-810/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong><big>WARNING:</big></strong> <a href="http://www.asim.pk/2009/03/04/intall-apache-mysql-and-php-on-ubuntu-part-2/">Please use this method to install Apache, PHP and MySQL</a> because its more suitable for most of your needs and has options to auto-upgrade your installation. <strong>The following method is obsolete and not recommended.</strong></p>
<p>After trying to install Apache, MySQL and PHP on Ubuntu 8.10 via several methods listed over the web. I opted for <a href="http://www.xampp.org/" target="_blank"><strong>xampp package for linux</strong></a>.</p>
<p>It is as easy as ABC</p>
<p>Download the <a href="http://www.apachefriends.org/en/xampp-linux.html#374"><strong>xampp linux package from their official website</strong></a></p>
<pre class="brush: plain; title: ; notranslate">wget http://nchc.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.7.tar.gz</pre>
<p>(<em>I have selected <a href="http://www.nchc.org.tw/"><b>NCHC, Taiwan</b></a> as the mirror to download this package, you may try another</em>)</p>
<p>Extract the files</p>
<pre class="brush: plain; title: ; notranslate">sudo tar xvfz xampp-linux-1.7.tar.gz -C /opt</pre>
</p>
<p>Chmod the files to have nobody ownership</p>
<pre class="brush: plain; title: ; notranslate">sudo chown -R nobody:root /opt/lampp/</pre>
</p>
<p>Configure xampp security</p>
<pre class="brush: plain; title: ; notranslate">sudo /opt/lampp/lampp security</pre>
</p>
<p>Start xampp with this command</p>
<pre class="brush: plain; title: ; notranslate">sudo /opt/lampp/lampp start</pre>
</p>
<p>Stop xampp</p>
<pre class="brush: plain; title: ; notranslate">sudo /opt/lampp/lampp stop</pre>
</p>
<p>Restart xampp</p>
<pre class="brush: plain; title: ; notranslate">sudo /opt/lampp/lampp restart</pre>
</p>
<p>Login to ftp using the username <strong>nobody</strong> and the password that you have set up in the &#8220;xampp security&#8221;</p>
<p>To uninstall xampp</p>
<pre class="brush: plain; title: ; notranslate">sudo rm -fr /opt/lampp</pre>
</p>
<p><strong>Enjoy!!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.asim.pk/2009/01/09/intall-apache-mysql-and-php-on-ubuntu-810/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

