<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; tasksel</title> <atom:link href="http://www.ghacks.net/tag/tasksel/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>How to: Install a LAMP server</title><link>http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/</link> <comments>http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/#comments</comments> <pubDate>Thu, 23 Jul 2009 17:43:55 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[LAMP]]></category> <category><![CDATA[lamp server]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[php]]></category> <category><![CDATA[tasksel]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=14678</guid> <description><![CDATA[If you&#8217;ve read enough of my Ghacks tutorials you have most likely come across mention of a LAMP server. If you are not sure what a LAMP server is: Linux Apache MySQL P (can mean PHP or PERL &#8211; depends upon your needs) LAMP servers are very popular, cheap, effective, flexible, and reliable servers. But [...]]]></description> <content:encoded><![CDATA[<p>If you&#8217;ve read enough of my Ghacks tutorials you have most likely come across mention of a LAMP server. If you are not sure what a LAMP server is:</p><ul><li>Linux</li><li>Apache</li><li>MySQL</li><li>P (can mean PHP or PERL &#8211; depends upon your needs)</li></ul><p>LAMP servers are very popular, cheap, effective, flexible, and reliable servers. But how are they installed? Actually, it&#8217;s not that hard. In this tutorial I am going to show you how to install a LAMP in two different ways: From the command line (using separate tools) and using the <em>tasksel</em> tool.</p><p><span
id="more-14678"></span><strong>Hardware needed</strong></p><p>Fortunately a LAMP server can be installed on lower-end hardware and still serve as a fairly efficient server. Naturally if you are going to be using your LAMP server for high traffic, you will want to select your hardware wisely.</p><p><strong>Install prerequisite</strong></p><p>Before you begin the installation of your server you will need to have your operating system installed. This is the &#8220;L&#8221; of LAMP. So find your favorite Linux distribution and install the operating system. For the purposes of this installation I am going to be installing on a Ubuntu 9.04 server installation. This will be a console only server (no GUI desktop) which is fine because the installation is done via command line only.</p><p>Once you have your operating system installed you are ready to install your server.</p><p><strong>Apache</strong></p><p>This is the easiest portion to install. Either log in to your console or open up a terminal window (if you are working from a GUI desktop) and enter the following command:<br
/> <code>sudo apt-get install apache2</code></p><p>You will have to enter your sudo user password for this installation to continue. Once this installation is complete check it by pointing a browser to that server IP address. You should instantly know if Apache is up and running.</p><p><strong>PHP</strong></p><p>For the purposes of this article we will assume the &#8220;P&#8221; stands for PHP. To install PHP (and all of its requirements) issue the command:</p><p><code>sudo apt-get install php5 libapache2-mod-php5</code></p><p>Once this installation is complete restart Apache with the command:</p><p><code>sudo /etc/init.d/apache2 restart</code></p><p>Let&#8217;s make sure this portion works properly. To test this create a file in the Apache document root (for this install it will be <strong>/var/www</strong>) called test.php. The contents of this file will be:<br
/> <code>&lt; ?php phpinfo(); ?&gt;</code></p><p>Save that file and then point your browser to http://IP_ADDRESS/test.php</p><p>Where IP_ADDRESS is the actual IP address of your server.</p><p>You should see &#8220;Test PHP Page&#8221; written on your browsers page. If so, you&#8217;re good to go.</p><p><strong>MySQL</strong></p><p>Now to install MySQL. To do this issue the command:</p><p><code>sudo apt-get install mysql-server</code></p><p>Once this is done you then need to set a password for MySQL. To do this issue the command:</p><p><code>mysql -u root</code></p><p>which will put you in the MySQL prompt. From this prompt (which looks like <em>mysql&gt; </em>) enter the command:<br
/> <code>SET PASSWORD FOR 'root'@'localhost' = PASSWORD('YOURPASSWORD');</code></p><p>Where YOURPASSWORD is the password you want to use for the mysql user.</p><p>Now start your MySQL server with the command:</p><p><code>/etc/init.d/mysql start</code></p><p>That&#8217;s it. Your LAMP server is up and running.</p><p><strong>The quick version</strong></p><p>You can actually install a full-on LAMP server on a (Ubuntu server install) with a single command:</p><p><code>sudo tasksel</code></p><p>You will need to select LAMP from the list and you will eventually be prompted for a MySQL password. That&#8217;s it.</p><p><strong>Final thoughts</strong></p><p>Getting a powerful, flexible web server up and running will take you less time and effort than you think. LAMP servers are an outstanding choice for your web servers&#8217; needs.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> </channel> </rss>
