<?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>Animesh Kumar {itsAnimesh} &#187; LAMP</title>
	<atom:link href="http://itsanimesh.com/tag/lamp/feed/" rel="self" type="application/rss+xml" />
	<link>http://itsanimesh.com</link>
	<description>Tech Geek / FOSS Enthusiasts</description>
	<lastBuildDate>Sun, 10 Jul 2011 04:49:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Linux newbie guide to installation of LAMP on Ubuntu!!!</title>
		<link>http://itsanimesh.com/2009/07/05/linux-newbie-guide-to-installation-of-lamp-on-ubuntu/</link>
		<comments>http://itsanimesh.com/2009/07/05/linux-newbie-guide-to-installation-of-lamp-on-ubuntu/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 10:16:03 +0000</pubDate>
		<dc:creator>itsAnimesh</dc:creator>
				<category><![CDATA[Tech Gyaan]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://itsanimesh.com/?p=624</guid>
		<description><![CDATA[The acronym LAMP refers to a set of free software programs commonly used together to run dynamic Web sites or servers Linux, the operating system; Apache, the Web server; MySQL, the database management system (or database server) and Perl, PHP, and/or Python, scripting languages. The LAMP stack is a very popular setup and many websites ...]]></description>
			<content:encoded><![CDATA[<p>The acronym LAMP refers to a set of free software programs commonly used together to run dynamic Web sites or servers <strong>L</strong>inux, the operating system; <strong>A</strong>pache, the Web server; <strong>M</strong>ySQL, the database management system (or database server) and <strong>P</strong>erl, <strong>P</strong>HP, and/or <strong>P</strong>ython, scripting languages. The LAMP stack is a very popular setup and many websites run on it. Best of all, all four of the tools in the stack are free and open source and really easy to get started with.</p>
<p>For this tutorial, I&#8217;m going to be showing you how to install LAMP on Ubuntu 9.04 (Jaunty Jackalope), but the process is very similar for other Linux distributions too.</p>
<p>All the stuff you need is pre-loaded into Ubuntu&#8217;s software repositories, and it&#8217;s really simple to install everything you need. If you&#8217;re doing a new install, you may want to take a look at <a href="http://www.ubuntu.com/products/WhatIsUbuntu/serveredition">the server edition of Ubuntu</a> as it allows for a pre-configured profile that you can pick at install time.</p>
<p>You need to install the following packages:</p>
<ul>
<li>apache2</li>
<li>php5-mysql</li>
<li>libapache2-mod-php5</li>
<li>mysql-server</li>
</ul>
<h3>Apache</h3>
<p>Install Apache</p>
<div>
<blockquote><p>sudo apt-get install apache2</p></blockquote>
</div>
<p>Testing HTTP Server by open a web browser and enter http://localhost</p>
<h3>PHP</h3>
<p>Install PHP5</p>
<div>
<blockquote><p>sudo apt-get install php5 libapache2-mod-php5</p></blockquote>
</div>
<p>Stop/Restart Apache</p>
<div>
<blockquote><p>sudo /etc/init.d/apache2 restart</p></blockquote>
</div>
<p>Test the installation</p>
<div>
<blockquote><p>sudo gedit /var/www/testphp.php</p></blockquote>
</div>
<p>Insert this following line into testphp.php file.</p>
<div>
<blockquote><p>&lt;?php phpinfo(); ?&gt;</p></blockquote>
</div>
<p>Save this new file.<br />
Open a web browser and enter http://localhost/testphp.php<br />
Be sure to remove the file afterwards, as it may pose a security risk.</p>
<div>
<blockquote><p>sudo rm /var/www/testphp.php</p></blockquote>
</div>
<h3>MySQL</h3>
<p>Install MySQL Server</p>
<div>
<blockquote><p>sudo apt-get install mysql-server</p></blockquote>
</div>
<p>MySQL initially only allows connections from the localhost (127.0.0.1). We’ll need to remove that restriction if you wish to make it accessible to everyone on the internet. Open the file /etc/mysql/my.cnf</p>
<div>
<blockquote><p>gksudo gedit /etc/mysql/my.cnf</p></blockquote>
</div>
<p>Find the line bind-address = 127.0.0.1 and comment it out then save the file.<br />
MySQL comes with no root password as default. This is a huge security risk. You’ll need to set one. So that the local computer gets root access as well, you’ll need to set a password for that too. The local-machine-name is the name of the computer you’re working on.</p>
<div>
<blockquote><p>mysqladmin -u root password &lt;newpassword&gt;<br />
mysqladmin -h root@local-machine-name -u root -p password &lt;newpassword&gt;<br />
sudo /etc/init.d/mysql restart</p></blockquote>
</div>
<h3>MySQL Administrator</h3>
<p>Install MySQL Administrator</p>
<div>
<blockquote><p>sudo apt-get install mysql-admin</p></blockquote>
</div>
<p>Refresh Gnome Panel</p>
<div>
<blockquote><p>killall gnome-panel</p></blockquote>
</div>
<p>Run MySQL Administrator<br />
Applications -&gt; System Tools -&gt; MySQL Administrator</p>
<h3>MySQL for Apache HTTP Server</h3>
<div>
<blockquote><p>sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin</p></blockquote>
</div>
<p>To get PHP to work with MySQL, open the php.ini file</p>
<div>
<blockquote><p>gksudo gedit /etc/php5/apache2/php.ini</p></blockquote>
</div>
<p>You’ll need to uncomment the “;extension=mysql.so” line so that it looks like this</p>
<div>
<blockquote><p>extension=mysql.so</p></blockquote>
</div>
<p>Restart Apache</p>
<div>
<blockquote><p>sudo /etc/init.d/apache2 restart</p></blockquote>
</div>
<p>That&#8217;s pretty much all the configuration you need to do, so you can now grab any web applications you want and install them.</p>
<p>Cheers <img src='http://itsanimesh.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://itsanimesh.com/2009/07/05/linux-newbie-guide-to-installation-of-lamp-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

