<?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; apache php</title>
	<atom:link href="http://maketecheasier.com/tag/apache-php/feed" rel="self" type="application/rss+xml" />
	<link>http://maketecheasier.com</link>
	<description>Uncomplicating the complicated, making life easier</description>
	<lastBuildDate>Fri, 25 May 2012 14:58:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<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 Oh</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... <p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06&amp;title=Setting+Up+a+LAMP+Server+In+Ubuntu+Hardy+Heron&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<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>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-680" title="lamp" src="http://imagecdn.maketecheasier.com/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><span id="more-669"></span><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://imagecdn.maketecheasier.com/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://imagecdn.maketecheasier.com/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://imagecdn.maketecheasier.com/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://imagecdn.maketecheasier.com/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://imagecdn.maketecheasier.com/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://imagecdn.maketecheasier.com/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://imagecdn.maketecheasier.com/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://imagecdn.maketecheasier.com/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://imagecdn.maketecheasier.com/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(&#8216;DB_NAME&#8217;, &#8216;wordpress&#8217;);    // The name of the database<br />
define(&#8216;DB_USER&#8217;, &#8216;root&#8217;);     // Your MySQL username<br />
define(&#8216;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://imagecdn.maketecheasier.com/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><!--adsense#468x60--><br />
<h3 class='related_post_title'>Related Posts:</h3>
<ul class='related_post'>
<li><a href='http://maketecheasier.com/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28' title='How to Setup A Ubuntu Web Server On A Remote Host'>How to Setup A Ubuntu Web Server On A Remote Host</a></li>
<li><a href='http://maketecheasier.com/geogebra-for-dynamic-geometry-on-linux/2012/05/24' title='GeoGebra, For Dynamic Geometry On Linux'>GeoGebra, For Dynamic Geometry On Linux</a></li>
<li><a href='http://maketecheasier.com/integrate-skype-with-ubuntu-unity/2012/05/23' title='How to Integrate Skype With Ubuntu Unity'>How to Integrate Skype With Ubuntu Unity</a></li>
<li><a href='http://maketecheasier.com/geary-a-simple-email-client-for-linux-that-supports-threaded-conversation/2012/05/21' title='Geary: A Simple Email Client For Linux That Supports Threaded Conversation'>Geary: A Simple Email Client For Linux That Supports Threaded Conversation</a></li>
</ul>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06&amp;title=Setting+Up+a+LAMP+Server+In+Ubuntu+Hardy+Heron&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<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>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></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>92</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: cdn.maketecheasier.com

Served from: maketecheasier.com @ 2012-05-25 14:12:09 -->
