<?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>Make Tech Easier &#187; linux apache</title>
	<atom:link href="http://maketecheasier.com/tag/linux-apache/feed" rel="self" type="application/rss+xml" />
	<link>http://maketecheasier.com</link>
	<description>Uncomplicating the complicated, making life easier</description>
	<lastBuildDate>Fri, 20 Nov 2009 13:39:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting Up a LAMP Server In Ubuntu Hardy Heron</title>
		<link>http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06</link>
		<comments>http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06#comments</comments>
		<pubDate>Wed, 06 Aug 2008 01:29:16 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache php]]></category>
		<category><![CDATA[linux apache]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[setting up a web server]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=669</guid>
		<description><![CDATA[
LAMP stands for Linux, Apache, MySQL and PHP. It is the most widely used combination for setting up a Web Server. By far, the easiest way to install LAMP server is simply installing the Ubuntu Server Edition itself. However, many of us have installed the Ubuntu Desktop edition, only to find that we need to [...]<p><strong><a href="http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06">Setting Up a LAMP Server In Ubuntu Hardy Heron</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>



Related posts:<ol><li><a href='http://maketecheasier.com/installing-vmware-server-in-hardy-heron/2008/04/29' rel='bookmark' title='Permanent Link: Installing VMware Server in Hardy Heron'>Installing VMware Server in Hardy Heron</a></li><li><a href='http://maketecheasier.com/set-up-a-vnc-server-in-ubuntu-hardy-heron/2008/05/30' rel='bookmark' title='Permanent Link: How to Set Up a VNC Server In Ubuntu Hardy Heron'>How to Set Up a VNC Server In Ubuntu Hardy Heron</a></li><li><a href='http://maketecheasier.com/how-to-install-and-setup-jinzora-media-server-in-ubuntu/2008/08/25' rel='bookmark' title='Permanent Link: How To Install And Setup Jinzora Media Server In Ubuntu'>How To Install And Setup Jinzora Media Server In Ubuntu</a></li><li><a href='http://maketecheasier.com/enabling-usb-support-for-vmware-server-in-hardy-heron/2008/05/05' rel='bookmark' title='Permanent Link: Enabling USB support for VMware Server in Hardy Heron'>Enabling USB support for VMware Server in Hardy Heron</a></li><li><a href='http://maketecheasier.com/setting-up-subversion-version-control-in-ubuntu/2008/08/11' rel='bookmark' title='Permanent Link: Setting up Subversion Version control in Ubuntu'>Setting up Subversion Version control in Ubuntu</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-680" title="lamp" src="http://maketecheasier.com/wp-content/uploads/2008/08/lamp.jpg" alt="LAMP" /></p>
<p><strong>LAMP</strong> stands for <em>Linux, Apache, MySQL</em> and<em> PHP</em>. It is the most widely used combination for setting up a Web Server. By far, the easiest way to install LAMP server is simply installing the <a href="http://www.ubuntu.com/getubuntu/download" target="_blank">Ubuntu Server Edition</a> itself. However, many of us have installed the Ubuntu Desktop edition, only to find that we need to set up a LAMP server later on. In the following tutorial, I am going to show you how to install and configure a LAMP server in your Ubuntu Hardy Heron in less than 10 minutes.</p>
<p><strong>Installing Apache, Php and MySql</strong></p>
<p>In your Ubuntu desktop, go to <em>System-&gt;Administration-&gt;Synaptic Package Manager</em>.</p>
<p>Scroll down the list to search for <em>apache2</em>. Check the box beside it and select &#8216;<em>Mark for installation</em>&#8216;. This will also install other dependency packages. When prompted, click &#8216;<em>Mark</em>&#8216;.</p>
<p><img class="alignnone size-full wp-image-670" title="synaptic-apache" src="http://maketecheasier.com/wp-content/uploads/2008/08/synaptic-apache.jpg" alt="Apache in Synaptic Package Manager" /></p>
<p>Next, scroll down the list and search for <em>php5</em>. Similarly, place a check beside the box and select &#8216;<em>Mark for installation</em>&#8216;.</p>
<p><img class="alignnone size-full wp-image-671" title="synaptic-php5" src="http://maketecheasier.com/wp-content/uploads/2008/08/synaptic-php5.jpg" alt="PHP5 in Synpatic Package Manager" /></p>
<p>Do the same for &#8216;<em>mysql-server</em>&#8216; and &#8216;<em>phpmyadmin</em>&#8216;</p>
<p><img class="alignnone size-full wp-image-672" title="synaptic-mysql" src="http://maketecheasier.com/wp-content/uploads/2008/08/synaptic-mysql.jpg" alt="MySQL in Synpatic Package Manager" /></p>
<p><img class="alignnone size-full wp-image-673" title="synaptic-phpmyadmin" src="http://maketecheasier.com/wp-content/uploads/2008/08/synaptic-phpmyadmin.jpg" alt="phpmyadmin in Synpatic Package Manager" /></p>
<p>Once you are done, click &#8216;<em>Apply</em>&#8216; on the top icon bar.</p>
<p>The Synaptic Package Manager will now fetch all the files and install it in your Ubuntu.</p>
<p>When installing MySQL, you will be prompted to enter and reconfirm your password. Make sure that you enter a password that you can remember.</p>
<p><img class="alignnone size-full wp-image-674" title="mysql-password" src="http://maketecheasier.com/wp-content/uploads/2008/08/mysql-password.jpg" alt="Setting mysql password" /></p>
<p>Also, the <em>phpmyadmin</em> will ask you which version of apache to use. Select <em>apache2</em></p>
<p><img class="alignnone size-full wp-image-675" title="phpmyadmin-config" src="http://maketecheasier.com/wp-content/uploads/2008/08/phpmyadmin-config.jpg" alt="Configuring Phpmyadmin" /></p>
<p><strong>Testing your installation</strong></p>
<p>Once you have finished installing the LAMP, you will need to test if it is working.</p>
<p>Open your browser and point the URL to <em>http://localhost</em></p>
<p>If you see the words &#8216;It works&#8217;, then <em>apache</em> is working fine.</p>
<p><img class="alignnone size-full wp-image-676" title="test-apache" src="http://maketecheasier.com/wp-content/uploads/2008/08/test-apache.jpg" alt="Testing Apache" /></p>
<p>Next, you want to create a php file to test your <em>php</em> setting.</p>
<p class="codeblock">gksu gedit /var/www/testphp.php</p>
<p>paste the following line to the file</p>
<p class="codeblock"><code>&lt;?php phpinfo(); ?&gt;</code></p>
<p>Save and close the file.</p>
<p>In your browser, point the URL to <em>http://localhost/testphp.php</em>. You should see all the php information on the browser. If it prompt you to download the file, then your php configuration is not successful. Go to Synaptic Package Manager and reinstall <em>php5</em></p>
<p><img class="alignnone size-full wp-image-677" title="test-php" src="http://maketecheasier.com/wp-content/uploads/2008/08/test-php.jpg" alt="Testing PHp" /></p>
<p><strong>Testing of phpmyadmin</strong></p>
<p>On  your browser, go to <em>http://localhost/phpmyadmin</em>. It should loads up the phpmyadmin login page. Log in with the user name <em>root</em> and the password you supplied when installing.</p>
<p><img class="alignnone size-full wp-image-678" title="phpmyadmin-login" src="http://maketecheasier.com/wp-content/uploads/2008/08/phpmyadmin-login.jpg" alt="phpmyadmin login page" width="493" height="461" /></p>
<p>This will bring you to the main screen of phpmyadmin.</p>
<p><strong>Putting it all together</strong></p>
<p>To test if the <em>apache, php5, MySQL</em> and <em>phpmyadmin</em> are working together, we can test it out by installing <em>Wordpress</em>.</p>
<p>Download <a href="http://wordpress.org/latest.zip" target="_blank">WordPress here</a>.</p>
<p>Extract the <em>wordpress</em> folder to your home folder.</p>
<p>Inside the folder, open up the <em>wp-config-sample.php</em> file. Edit the following information.</p>
<p class="codeblock">define(&#8217;DB_NAME&#8217;, &#8216;wordpress&#8217;);    // The name of the database<br />
define(&#8217;DB_USER&#8217;, &#8216;root&#8217;);     // Your MySQL username<br />
define(&#8217;DB_PASSWORD&#8217;, &#8216;yourpasswordhere&#8217;); // &#8230;and password</p>
<p>Remember to change the &#8216;<em>yourpasswordhere</em>&#8216; to the password that you supplied during the MySQL installation.</p>
<p>Save the file as <em>wp-config.php</em>.</p>
<p>Next in your phpmyadmin, create a new database call <em>wordpress</em>.</p>
<p><img class="alignnone size-full wp-image-679" title="phpmyadmin-new-db" src="http://maketecheasier.com/wp-content/uploads/2008/08/phpmyadmin-new-db.jpg" alt="phpmyadmin-new-db" width="499" height="349" /></p>
<p>Open a terminal, copy the wordpress folder to the apache working directory (the working directory is located at <em>/var/www</em>)</p>
<p class="codeblock">sudo cp -R wordpress /var/www/</p>
<p>Once done, on your browser, go to <em>http://localhost/wordpress</em>. The famous 5 minutes installation will show on screen. Follow the instructions. If is your LAMP configuration is good, your wordpress will be up in 1 minute.</p>
<p>That&#8217;s it. Enjoy!</p>
<p>[<strong>Reference</strong>: <a href="http://lijamez.wordpress.com/2008/06/02/lighting-up-lamp/" target="_blank">Lijamex's Blog</a>, <a href="http://www.howtoforge.com/ubuntu_lamp_for_newbies" target="_blank">Howto Forge</a>]</p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-8765285789552883";
/* MTE body ad300x250, created 5/17/09 */
google_ad_slot = "3980792036";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p></p>
<p><strong><a href="http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06">Setting Up a LAMP Server In Ubuntu Hardy Heron</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>


<p>Related posts:<ol><li><a href='http://maketecheasier.com/installing-vmware-server-in-hardy-heron/2008/04/29' rel='bookmark' title='Permanent Link: Installing VMware Server in Hardy Heron'>Installing VMware Server in Hardy Heron</a></li><li><a href='http://maketecheasier.com/set-up-a-vnc-server-in-ubuntu-hardy-heron/2008/05/30' rel='bookmark' title='Permanent Link: How to Set Up a VNC Server In Ubuntu Hardy Heron'>How to Set Up a VNC Server In Ubuntu Hardy Heron</a></li><li><a href='http://maketecheasier.com/how-to-install-and-setup-jinzora-media-server-in-ubuntu/2008/08/25' rel='bookmark' title='Permanent Link: How To Install And Setup Jinzora Media Server In Ubuntu'>How To Install And Setup Jinzora Media Server In Ubuntu</a></li><li><a href='http://maketecheasier.com/enabling-usb-support-for-vmware-server-in-hardy-heron/2008/05/05' rel='bookmark' title='Permanent Link: Enabling USB support for VMware Server in Hardy Heron'>Enabling USB support for VMware Server in Hardy Heron</a></li><li><a href='http://maketecheasier.com/setting-up-subversion-version-control-in-ubuntu/2008/08/11' rel='bookmark' title='Permanent Link: Setting up Subversion Version control in Ubuntu'>Setting up Subversion Version control in Ubuntu</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06/feed</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
	</channel>
</rss>
