<?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; setting up a web server</title>
	<atom:link href="http://maketecheasier.com/tag/setting-up-a-web-server/feed" rel="self" type="application/rss+xml" />
	<link>http://maketecheasier.com</link>
	<description>Uncomplicating the complicated, making life easier</description>
	<lastBuildDate>Sun, 12 Feb 2012 15:58:24 +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>How to Setup A Ubuntu Web Server On A Remote Host</title>
		<link>http://maketecheasier.com/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28</link>
		<comments>http://maketecheasier.com/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28#comments</comments>
		<pubDate>Mon, 28 Nov 2011 23:00:34 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[remote host]]></category>
		<category><![CDATA[setting up a web server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web server]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=41928</guid>
		<description><![CDATA[Setting up your own web server can be a fun thing, simply because you can customize the things you want and optimize it to perform at the highest level. Previously, we have shown you how to install a LAMP server in your Ubuntu machine, but that is using a GUI and it won&#8217;t work if [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28" 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/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28" 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/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28&amp;title=How+to+Setup+A+Ubuntu+Web+Server+On+A+Remote+Host&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/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28">How to Setup A Ubuntu Web Server On A Remote Host</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 src="http://imagecdn.maketecheasier.com/2011/11/ubuntu-logo.png" alt="ubuntu-logo" title="ubuntu-logo" width="200" height="202" class="alignleft size-full wp-image-41945" />Setting up your own web server can be a fun thing, simply because you can customize the things you want and optimize it to perform at the highest level. Previously, we have shown you how to <a href="http://maketecheasier.com/setting-up-a-lamp-server-in-ubuntu-hardy-heron/2008/08/06" title="Setting Up a LAMP Server In Ubuntu Hardy Heron">install a LAMP server in your Ubuntu</a> machine, but that is using a GUI and it won&#8217;t work if you are administering a remote host. Here&#8217;s how you can setup a Ubuntu web server on a remote host.<br />
<span id="more-41928"></span><br />
<strong>Note</strong>: Before we start, we have to assume that:</p>
<p>1. You already have SSH access to your remote host. For security sake, you might want to <a href="http://maketecheasier.com/generate-public-private-ssh-key/2011/11/10" title="How to Generate A Public/Private SSH Key [Linux]">setup a public/private SSH key</a> to secure your SSH connection.  </p>
<p>2. The remote host is in a fresh state. No additional software have been installed or any other user has been created. </p>
<h2>Get Started</h2>
<p>1. Open a terminal (if you are using Windows, use <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" title="Putty" target="_blank">Putty</a>) and SSH to your remote host. </p>
<p>2. The first thing to do is to update your remote host so that it is running the latest version of all software.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade</pre></div></div>

<p>3. If you are logging in as the root user, it is best to change the default password for the root user and also create a new user account. It is not a good practice to log in as the root user. Once the new user account is created, you will administer the remote host with this account.</p>
<p>Change the password for the root user.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">passwd</span></pre></div></div>

<p>Create new user account.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">adduser username   <span style="color: #666666; font-style: italic;">#replace &quot;username&quot; with your own your user name.</span></pre></div></div>

<p>It will prompt you to enter your user password and info.</p>
<p><img src="http://imagecdn.maketecheasier.com/2011/11/ubuntu-adduser1.png" alt="ubuntu-adduser" title="ubuntu-adduser" width="585" height="358" class="aligncenter size-full wp-image-41938" /></p>
<p>Add the new user to the &#8220;sudo&#8221; group.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">adduser username <span style="color: #c20cb9; font-weight: bold;">sudo</span></pre></div></div>

<p>Once this is done, you will need to exit the current SSH session and re-login with the new user account. </p>
<p>4. Install LAMP Server. There is no Synaptic or Ubuntu Software Center here, so we have to install everything via the terminal. While you can install a whole bunch of files here, an easier way is to use the <em>tasksel</em> package.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> tasksel
<span style="color: #c20cb9; font-weight: bold;">sudo</span> tasksel <span style="color: #c20cb9; font-weight: bold;">install</span> lamp-server</pre></div></div>

<p>During the installation, it will prompt you a few questions. </p>
<p><img src="http://imagecdn.maketecheasier.com/2011/11/ubuntu-tasksel-installation.png" alt="ubuntu-tasksel-installation" title="ubuntu-tasksel-installation" width="600" height="344" class="aligncenter size-full wp-image-41939" /></p>
<p>Once the installation is done, go to your web browser and type in the domain name (or IP address) associated with the remote host. If you see the &#8220;It Works&#8221; screen, you are on track.</p>
<p><img src="http://imagecdn.maketecheasier.com/2011/11/ubuntu-apache-works.png" alt="ubuntu-apache-works" title="ubuntu-apache-works" width="586" height="186" class="aligncenter size-full wp-image-41941" /></p>
<p>9. Secure MySQL</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql_secure_installation</pre></div></div>

<p>It will prompt you a few questions:</p>
<ul>
<li><em>Change the root password?</em> &#8211; If you have set a secure password previously, you can safely type &#8216;n&#8217;.</li>
<li><em>Remove anonymous users?</em> &#8211; Type &#8216;y&#8217;.</li>
<li><em>Disallow root login remotely?</em> &#8211; Type &#8216;y&#8217;.</li>
<li><em>Remove test database and access to it?</em> &#8211; Type &#8216;y&#8217;.</li>
<li><em>Reload privilege table now?</em> &#8211; Type &#8216;y&#8217;.</li>
</ul>
<p>That&#8217;s it. You have successfully setup a web server in the remote host.</p>
<h2>Optional Stuff</h2>
<p>Here are some optional stuff you can install/do:</p>
<h3>1. phpMyAdmin</h3>
<p>PhpMyAdmin is a frontend GUI that allows you to configure and setup database easily. Since it is accessible via web interface, many people feel that it is unsecured and could be the loophole for hackers to brute-force into your database. </p>
<p>Here&#8217;s how to install:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> phpmyadmin</pre></div></div>

<p>Open a browser and go to <em>http://your-ip-address/phpmyadmin</em>. If you see the phpMyAdmin page, your installation is successfully. If not, you will have to add an extra line to the Apache conf file.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>apache2.conf</pre></div></div>

<p>Add the following line to the end of the file.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Include <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>phpmyadmin<span style="color: #000000; font-weight: bold;">/</span>apache.conf</pre></div></div>

<p>Save (Ctrl + O) and exit (Ctrl + X). </p>
<p>Restart Apache</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<h3>2. Configure Apache</h3>
<p>There are tons of things that you can do with Apache. I won&#8217;t discuss the detail here. Check out this <a href="http://maketecheasier.com/install-and-configure-apache-in-ubuntu/2011/03/09" title="install-and-configure-apache-in-ubuntu">Apache tutorial</a> for the instruction.</p>
<h3>3. Install FTP server</h3>
<p>If you need to access your remote host via FTP, you will need to install a FTP server. There are several FTP software that you can use. Here, we will be using <em>vsftp</em>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> vsftpd</pre></div></div>

<p>Don&#8217;t forget to add the current user to ftp group.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> adduser username <span style="color: #c20cb9; font-weight: bold;">ftp</span></pre></div></div>

<h3>4. Install Webmin</h3>
<p><a href="http://maketecheasier.com/how-to-manage-unix-linux-systems-using-webmin/2008/12/18" title="How To Manage Unix &#038; Linux Systems Using Webmin">Webmin</a> is a free web-based control panel for administrators to manage their servers without having to go into the command line.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list</pre></div></div>

<p>Add the following to the end of the file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">deb http:<span style="color: #000000; font-weight: bold;">//</span>download.webmin.com<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>repository sarge contrib
deb http:<span style="color: #000000; font-weight: bold;">//</span>webmin.mirror.somersettechsolutions.co.uk<span style="color: #000000; font-weight: bold;">/</span>repository sarge contrib</pre></div></div>

<p>Import the GPG key:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.webmin.com<span style="color: #000000; font-weight: bold;">/</span>jcameron-key.asc
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key</span> add jcameron-key.asc</pre></div></div>

<p>Install webmin:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> webmin</pre></div></div>

<p><img src="http://imagecdn.maketecheasier.com/2011/11/ubuntu-webmin.png" alt="ubuntu-webmin" title="ubuntu-webmin" width="546" height="190" class="aligncenter size-full wp-image-41943" /></p>
<p>Once installed, you can access webmin in your browser at the URL <em>https://your-ip-address:10000/</em>.</p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28" 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/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28" 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/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28&amp;title=How+to+Setup+A+Ubuntu+Web+Server+On+A+Remote+Host&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/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28">How to Setup A Ubuntu Web Server On A Remote Host</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/how-to-setup-a-ubuntu-web-server-on-a-remote-host/2011/11/28/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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 find that we need 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--></p>
<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>

