<?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>Mon, 26 Jul 2010 12:56:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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[Let us prepare a system that has a minimum requirement of Debian/Ubuntu version of linux with atleast 256MB of RAM available. Anything less than this minimum ram will cause lot of problems since we are running a server along especially mysql and webmin requires lot of RAM to run properly.
* Apache 2 &#8211; Linux Web [...]]]></description>
			<content:encoded><![CDATA[<p>Let us prepare a system that has a minimum requirement of Debian/Ubuntu version of linux with atleast 256MB of RAM available. Anything less than this minimum ram will cause lot of problems since we are running a server along especially mysql and webmin requires lot of RAM to run 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 as LAMP Server.<span id="more-46"></span></p>
<p><strong>1. Installing Apache + PHP</strong></p>
<p>Apache is one of the most famous web server which runs on most linux based servers. With just few commands you can configure apache to run with PHP 4 or PHP 5.</p>
<p>If you want to install PHP 4, just apt-get</p>
<p>apt-get install apache2 php4 libapache2-mod-php4</p>
<p>To install PHP5, just run the following on linux shell. Note that if you dont specify packages with &#8216;4&#8242;, PHP5 will be automatically installed.</p>
<p>apt-get install apache2 php5 libapache2-mod-php5</p>
<p><!-- COPYRIGHT MIDDLE ART --></p>
<div>Article provided by WebHostGear.com</div>
<p><!-- END COPYRIGHT MIDDLE ART --><script src="http://a.wavepointmedia.net/adx.js" type="text/javascript"></script> <script type="text/javascript">// <![CDATA[
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new 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;what=zone:14&amp;target=_blank");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (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;what=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?what=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 is located at: /etc/apache2/apache2.conf and your web folder is /var/www</p>
<p>To check whether php is installed and running properly, just create a test.php in your /var/www folder with phpinfo() function exactly as shown below.</p>
<p>nano /var/www/test.php</p>
<p># test.php</p>
<p>php phpinfo();</p>
<p>Point your browser to http://ip.address/test.php or http://domain/test.php and this should show all your php configuration and default settings.</p>
<p>You can edit necessary values or setup virtual domains using apache configuration file.<br />
Enabling GD Library with PHP</p>
<p>If you want to use CAPTCHA or for dynamic image generation with php scripts for image verification to stop SPAM or automated robots, then it is absolutely necessary to get php gd library installed with php. Here is the command</p>
<p>apt-get install php5-gd</p>
<p>Thats it!! Point your browser to http://domain/test.php and the php configuration settings will show GD library will be enabled for PNG, GIF, JPG etc.<br />
Enabling Mod Rewrite with .htaccess</p>
<p>Do you use mod-rewrite from apache to rewrite friendly URLs ?? This must be absolutely necessary for the rewrite module to get enabled in your apache, especially if your blog, forum script uses rewriting engine to generate friendly URLs in your site. Note that default apache2 installation does not come with mod-rewrite. Here is how you enable it. Issue the following command</p>
<p># a2enmod rewrite</p>
<p>Once you run this command, apache will tell you that this rewrite module is enabled. You can find mod_rewrite enabled and show up in your test.php file.</p>
<p><strong>2. Installing MySQL Database Server</strong></p>
<p>Installing mysql database server is always necessary if you are running a database driven ecommerce site. Remember running mysql server to a fair extend requires atleast 256mb of RAM in your server. So unless you are running database driven sites you dont absolutely need mysql. The following commands will install mysql 5 server and mysql 5 client.</p>
<p>apt-get install mysql-server mysql-client php5-mysql</p>
<p>Note: If you have already installed php4, you should make a slight change like this.</p>
<p>apt-get install mysql-server mysql-client php4-mysql</p>
<p>The configuration file of mysql is located at: /etc/mysql/my.cnf<br />
Creating users to use MySQL and Changing Root Password</p>
<p>By default mysql creates user as root and runs with no passport. You might need to change the root password.</p>
<p>To change Root Password</p>
<p>mysql&gt; USE mysql;<br />
mysql&gt; UPDATE user SET Password=PASSWORD(&#8217;new-password&#8217;) WHERE user=&#8217;root&#8217;;<br />
mysql&gt; FLUSH PRIVILEGES;</p>
<p>To Create User</p>
<p>You must never use root password, so you might need to create a user to connect to mysql database for a PHP script. Alternatively you can add users to mysql database by using a control panel like webmin or phpMyAdmin to easily create or assign database permission to users. We will install Webmin and phpmyadmin during later once we complete basic mail LAMP installation.<br />
PhpMyAdmin Installation</p>
<p>PhpMyAdmin is a nice web based database management and administration software and easy to install and configure under apache. Managing databases with tables couldnt be much simpler by using phpmyadmin.</p>
<p>All you need to do is:</p>
<p>apt-get install phpmyadmin</p>
<p>The phpmyadmin configuration file is located at: /etc/phpmyadmin folder.</p>
<p>To setup under apache all you need to do is include the following line in /etc/apache2/apache2.conf</p>
<p>Include /etc/phpmyadmin/apache.conf</p>
<p>Now restart apache: /etc/init.d/apache2 restart</p>
<p>Point your browser to: http://domain/phpmyadmin</p>
<p>Thats it!! MySQL and phpMyAdmin is Ready !!! Login with your mysql root password and create users to connect to database from your 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>
