<?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>INTERNET and SEO MATTERS &#187; linux</title>
	<atom:link href="http://www.darkcloudhosting.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darkcloudhosting.com</link>
	<description>All about Online</description>
	<lastBuildDate>Sun, 05 Feb 2012 08:36:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Install Ubuntu/Debian LAMP Server</title>
		<link>http://www.darkcloudhosting.com/2009/06/16/install-ubuntudebian-lamp-server/</link>
		<comments>http://www.darkcloudhosting.com/2009/06/16/install-ubuntudebian-lamp-server/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 04:19:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[hosting server]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.darkcloudhosting.com/?p=46</guid>
		<description><![CDATA[&#76;&#101;&#116; &#117;&#115; prepare a system &#116;&#104;&#97;&#116; &#104;&#97;&#115; a minimum requirement &#111;&#102; Debian/Ubuntu version &#111;&#102; linux &#119;&#105;&#116;&#104; atleast 256MB &#111;&#102; RAM available. Anything less &#116;&#104;&#97;&#110; &#116;&#104;&#105;&#115; minimum ram &#119;&#105;&#108;&#108; cause lot &#111;&#102; problems &#115;&#105;&#110;&#99;&#101; &#119;&#101; &#97;&#114;&#101; running a server along especially &#8230; <a href="http://www.darkcloudhosting.com/2009/06/16/install-ubuntudebian-lamp-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>&#76;&#101;&#116; &#117;&#115; prepare a system &#116;&#104;&#97;&#116; &#104;&#97;&#115; a minimum requirement &#111;&#102; Debian/Ubuntu version &#111;&#102; linux &#119;&#105;&#116;&#104; atleast 256MB &#111;&#102; RAM available. Anything less &#116;&#104;&#97;&#110; &#116;&#104;&#105;&#115; minimum ram &#119;&#105;&#108;&#108; cause lot &#111;&#102; problems &#115;&#105;&#110;&#99;&#101; &#119;&#101; &#97;&#114;&#101; running a server along especially mysql &#97;&#110;&#100; webmin requires lot &#111;&#102; RAM &#116;&#111; &#114;&#117;&#110; properly.</p>
<p>* Apache 2 &#8211; Linux Web server<br />
* MySQL 5 &#8211; MySQL Database Server<br />
* PHP4/5 &#8211; PHP Scripting Language<br />
* phpMyAdmin &#8211; Web-based database admin software.</p>
<p>Linux + Apache + MySQL + PHP/Perl together commonly known &#97;&#115; LAMP Server.<span id="more-46"></span></p>
<p><strong>1. Installing Apache + PHP</strong></p>
<p>Apache &#105;&#115; one &#111;&#102; &#116;&#104;&#101; &#109;&#111;&#115;&#116; &#119;&#101;&#108;&#108;&#45;&#107;&#110;&#111;&#119;&#110; web server &#119;&#104;&#105;&#99;&#104; runs &#111;&#110; &#109;&#111;&#115;&#116; linux based servers. &#87;&#105;&#116;&#104; &#106;&#117;&#115;&#116; few commands &#121;&#111;&#117; &#99;&#97;&#110; configure apache &#116;&#111; &#114;&#117;&#110; &#119;&#105;&#116;&#104; PHP 4 &#111;&#114; PHP 5.</p>
<p>&#73;&#102; &#121;&#111;&#117; want &#116;&#111; install PHP 4, &#106;&#117;&#115;&#116; apt-&#103;&#101;&#116;</p>
<p>apt-&#103;&#101;&#116; install apache2 php4 libapache2-mod-php4</p>
<p>&#84;&#111; install PHP5, &#106;&#117;&#115;&#116; &#114;&#117;&#110; &#116;&#104;&#101; following &#111;&#110; linux shell. Note &#116;&#104;&#97;&#116; &#105;&#102; &#121;&#111;&#117; dont specify packages &#119;&#105;&#116;&#104; &#8217;4&#8242;, PHP5 &#119;&#105;&#108;&#108; &#98;&#101; automatically installed.</p>
<p>apt-&#103;&#101;&#116; install apache2 php5 libapache2-mod-php5</p>
<p><!-- COPYRIGHT MIDDLE ART --></p>
<div>Article provided &#98;&#121; WebHostGear.com</div>
<p><!-- &#69;&#78;&#68; COPYRIGHT MIDDLE ART --><script src="http://a.wavepointmedia.net/adx.js" type="text/javascript"></script> <script type="text/javascript">// <![CDATA[
   &#105;&#102; (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = &#110;&#101;&#119; String (Math.random()); phpAds_random = phpAds_random.substring(2,11);</p>
<p>   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://a.wavepointmedia.net/adjs.php?n=" + phpAds_random);
   document.write ("&amp;&#119;&#104;&#97;&#116;=zone:14&amp;target=_blank");
   document.write ("&amp;exclude=" + document.phpAds_used);
   &#105;&#102; (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
// ]]&gt;</script><script src="http://a.wavepointmedia.net/adjs.php?n=838081199&amp;&#119;&#104;&#97;&#116;=zone:14&amp;target=_blank&amp;exclude=,&amp;referer=http%3A//www.webhostgear.com/cid_1.html" type="text/javascript"></script></p>
<p><noscript>&amp;lt;a href=&#8217;http://a.wavepointmedia.net/adclick.php?n=a263378f&#8217; target=&#8217;_blank&#8217;&amp;gt;&amp;lt;img src=&#8217;http://a.wavepointmedia.net/adview.php?&#119;&#104;&#97;&#116;=zone:14&amp;amp;amp;n=a263378f&#8217; border=&#8217;0&#8242; alt=&#8221;&amp;gt;&amp;lt;/a&amp;gt;</noscript>Apache configuration file &#105;&#115; located &#97;&#116;: /etc/apache2/apache2.conf &#97;&#110;&#100; &#121;&#111;&#117;&#114; web folder &#105;&#115; /var/www</p>
<p>&#84;&#111; check whether php &#105;&#115; installed &#97;&#110;&#100; running properly, &#106;&#117;&#115;&#116; &#109;&#97;&#107;&#101; a test.php &#105;&#110; &#121;&#111;&#117;&#114; /var/www folder &#119;&#105;&#116;&#104; phpinfo() function exactly &#97;&#115; shown below.</p>
<p>nano /var/www/test.php</p>
<p># test.php</p>
<p>php phpinfo();</p>
<p>Point &#121;&#111;&#117;&#114; browser &#116;&#111; http://ip.address/test.php &#111;&#114; http://domain/test.php &#97;&#110;&#100; &#116;&#104;&#105;&#115; &#115;&#104;&#111;&#117;&#108;&#100; &#115;&#104;&#111;&#119; &#97;&#108;&#108; &#121;&#111;&#117;&#114; php configuration &#97;&#110;&#100; default settings.</p>
<p>&#89;&#111;&#117; &#99;&#97;&#110; edit &#110;&#101;&#99;&#101;&#115;&#115;&#97;&#114;&#121;&#32;values &#111;&#114; setup virtual domains using apache configuration file.<br />
Enabling GD Library &#119;&#105;&#116;&#104; PHP</p>
<p>&#73;&#102; &#121;&#111;&#117; want &#116;&#111; &#117;&#115;&#101; CAPTCHA &#111;&#114; &#102;&#111;&#114; dynamic image generation &#119;&#105;&#116;&#104; php scripts &#102;&#111;&#114; image verification &#116;&#111; &#115;&#116;&#111;&#112; SPAM &#111;&#114; automated robots, &#116;&#104;&#101;&#110; &#105;&#116; &#105;&#115; absolutely necessary &#116;&#111; &#103;&#101;&#116; php gd library installed &#119;&#105;&#116;&#104; php. Here &#105;&#115; &#116;&#104;&#101; command</p>
<p>apt-&#103;&#101;&#116; install php5-gd</p>
<p>Thats &#105;&#116;!! Point &#121;&#111;&#117;&#114; browser &#116;&#111; http://domain/test.php &#97;&#110;&#100; &#116;&#104;&#101; php configuration settings &#119;&#105;&#108;&#108; &#115;&#104;&#111;&#119; GD library &#119;&#105;&#108;&#108; &#98;&#101; enabled &#102;&#111;&#114; PNG, GIF, JPG etc.<br />
Enabling Mod Rewrite &#119;&#105;&#116;&#104; .htaccess</p>
<p>&#68;&#111; &#121;&#111;&#117; &#117;&#115;&#101; mod-rewrite &#102;&#114;&#111;&#109; apache &#116;&#111; rewrite friendly URLs ?? &#84;&#104;&#105;&#115; &#109;&#117;&#115;&#116; &#98;&#101; absolutely necessary &#102;&#111;&#114; &#116;&#104;&#101; rewrite module &#116;&#111; &#103;&#101;&#116; enabled &#105;&#110; &#121;&#111;&#117;&#114; apache, especially &#105;&#102; &#121;&#111;&#117;&#114; blog, forum script uses rewriting engine &#116;&#111; generate friendly URLs &#105;&#110; &#121;&#111;&#117;&#114; site. Note &#116;&#104;&#97;&#116; default apache2 installation &#100;&#111;&#101;&#115; &#110;&#111;&#116; come &#119;&#105;&#116;&#104; mod-rewrite. Here &#105;&#115; &#104;&#111;&#119; &#121;&#111;&#117; enable &#105;&#116;. Issue &#116;&#104;&#101; following command</p>
<p># a2enmod rewrite</p>
<p>Once &#121;&#111;&#117; &#114;&#117;&#110; &#116;&#104;&#105;&#115; command, apache &#119;&#105;&#108;&#108; &#116;&#101;&#108;&#108; &#121;&#111;&#117; &#116;&#104;&#97;&#116; &#116;&#104;&#105;&#115; rewrite module &#105;&#115; enabled. &#89;&#111;&#117; &#99;&#97;&#110; find mod_rewrite enabled &#97;&#110;&#100; &#115;&#104;&#111;&#119; up &#105;&#110; &#121;&#111;&#117;&#114; test.php file.</p>
<p><strong>2. Installing MySQL Database Server</strong></p>
<p>Installing mysql database server &#105;&#115; always necessary &#105;&#102; &#121;&#111;&#117; &#97;&#114;&#101; running a database driven ecommerce site. Remember running mysql server &#116;&#111; a &#104;&#111;&#110;&#101;&#115;&#116; extend requires atleast 256mb &#111;&#102; RAM &#105;&#110; &#121;&#111;&#117;&#114; server. &#83;&#111; unless &#121;&#111;&#117; &#97;&#114;&#101; running database driven sites &#121;&#111;&#117; dont absolutely need mysql. &#84;&#104;&#101; following commands &#119;&#105;&#108;&#108; install mysql 5 server &#97;&#110;&#100; mysql 5 client.</p>
<p>apt-&#103;&#101;&#116; install mysql-server mysql-client php5-mysql</p>
<p>Note: &#73;&#102; &#121;&#111;&#117; &#104;&#97;&#118;&#101; already installed php4, &#121;&#111;&#117; &#115;&#104;&#111;&#117;&#108;&#100; &#109;&#97;&#107;&#101; a slight change &#108;&#105;&#107;&#101; &#116;&#104;&#105;&#115;.</p>
<p>apt-&#103;&#101;&#116; install mysql-server mysql-client php4-mysql</p>
<p>&#84;&#104;&#101; configuration file &#111;&#102; mysql &#105;&#115; located &#97;&#116;: /etc/mysql/&#109;&#121;.cnf<br />
&#77;&#97;&#107;&#105;&#110;&#103; users &#116;&#111; &#117;&#115;&#101; MySQL &#97;&#110;&#100; Changing Root Password</p>
<p>&#66;&#121; default mysql &#109;&#97;&#107;&#101;&#115; user &#97;&#115; root &#97;&#110;&#100; runs &#119;&#105;&#116;&#104; &#110;&#111; passport. &#89;&#111;&#117; &#109;&#105;&#103;&#104;&#116; need &#116;&#111; change &#116;&#104;&#101; root password.</p>
<p>&#84;&#111; change Root Password</p>
<p>mysql&gt; &#85;&#83;&#69; mysql;<br />
mysql&gt; UPDATE user SET Password=PASSWORD(&#8216;&#110;&#101;&#119;-password&#8217;) &#87;&#72;&#69;&#82;&#69; user=&#8217;root&#8217;;<br />
mysql&gt; FLUSH PRIVILEGES;</p>
<p>&#84;&#111; &#77;&#97;&#107;&#101; User</p>
<p>&#89;&#111;&#117; &#109;&#117;&#115;&#116; never &#117;&#115;&#101; root password, &#115;&#111; &#121;&#111;&#117; &#109;&#105;&#103;&#104;&#116; need &#116;&#111; &#109;&#97;&#107;&#101; a user &#116;&#111; connect &#116;&#111; mysql database &#102;&#111;&#114; a PHP script. Alternatively &#121;&#111;&#117; &#99;&#97;&#110; add users &#116;&#111; mysql database &#98;&#121; using a control panel &#108;&#105;&#107;&#101; webmin &#111;&#114; phpMyAdmin &#116;&#111; easily &#109;&#97;&#107;&#101; &#111;&#114; assign database permission &#116;&#111; users. &#87;&#101; &#119;&#105;&#108;&#108; install Webmin &#97;&#110;&#100; phpmyadmin during later once &#119;&#101; complete basic mail LAMP installation.<br />
PhpMyAdmin Installation</p>
<p>PhpMyAdmin &#105;&#115; a nice web based database management &#97;&#110;&#100; administration software &#97;&#110;&#100; simple &#116;&#111; install &#97;&#110;&#100; configure under apache. Managing databases &#119;&#105;&#116;&#104; tables couldnt &#98;&#101; much simpler &#98;&#121; using phpmyadmin.</p>
<p>&#65;&#108;&#108; &#121;&#111;&#117; need &#116;&#111; &#100;&#111; &#105;&#115;:</p>
<p>apt-&#103;&#101;&#116; install phpmyadmin</p>
<p>&#84;&#104;&#101; phpmyadmin configuration file &#105;&#115; located &#97;&#116;: /etc/phpmyadmin folder.</p>
<p>&#84;&#111; setup under apache &#97;&#108;&#108; &#121;&#111;&#117; need &#116;&#111; &#100;&#111; &#105;&#115; include &#116;&#104;&#101; following line &#105;&#110; /etc/apache2/apache2.conf</p>
<p>Include /etc/phpmyadmin/apache.conf</p>
<p>Now restart apache: /etc/init.d/apache2 restart</p>
<p>Point &#121;&#111;&#117;&#114; browser &#116;&#111;: http://domain/phpmyadmin</p>
<p>Thats &#105;&#116;!! MySQL &#97;&#110;&#100; phpMyAdmin &#105;&#115; Ready !!! Login &#119;&#105;&#116;&#104; &#121;&#111;&#117;&#114; mysql root password &#97;&#110;&#100; &#109;&#97;&#107;&#101; users &#116;&#111; connect &#116;&#111; database &#102;&#114;&#111;&#109; &#121;&#111;&#117;&#114; php script.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkcloudhosting.com/2009/06/16/install-ubuntudebian-lamp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

