<?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>codetorment &#187; webdev</title>
	<atom:link href="http://www.codetorment.com/tag/webdev/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codetorment.com</link>
	<description>code, tech, random stuff</description>
	<lastBuildDate>Tue, 04 May 2010 21:04:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4003</generator>
		<item>
		<title>Tutorial : Installing and securing XAMPP on Ubuntu 9.10</title>
		<link>http://www.codetorment.com/2009/10/20/guide-install-xampp-on-ubuntu/</link>
		<comments>http://www.codetorment.com/2009/10/20/guide-install-xampp-on-ubuntu/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 14:12:04 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://codetorment.com/?p=3</guid>
		<description><![CDATA[<a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-Mozilla-Firefox.png"><img class="alignnone size-medium wp-image-28" title="Language selection page" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-Mozilla-Firefox-300x180.png" alt="Language selection page" width="300" height="180" /></a>

This page shows ...]]></description>
			<content:encoded><![CDATA[<p><strong>This tutorial will explain how to install XAMPP 1.7.1 in Ubuntu 9.10</strong></p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox.png"><img class="alignnone size-full wp-image-30" title="Welcome page" src="http://www.codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox.png" alt="Welcome page" width="353" height="212" /></a></p>
<h3>Introduction</h3>
<p>This is a step by step guide for installing and setting up a webdev server on a ubuntu machine. I will show you how to install the lampp stack using XAMPP version 1.7.1 on Ubuntu 9.10.</p>
<p><span style="color: #ffcc33;">You can follow the exact same steps for setting up XAMPP version 1.7.2</span></p>
<h3>Follow these steps to install XAMPP:</h3>
<p>1. For starters you need to go to the official XAMPP website and download XAMPP for Linux version 1.7.1,  <a title="Download XAMPP" href="http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.7.1/xampp-linux-1.7.1.tar.gz/download">click here</a> to download XAMPP for Linux version 1.7.1</p>
<p><span style="color: #ffcc33;">Make sure you download </span><span style="color: #ffcc33;">XAMPP</span><span style="color: #ffcc33;"> 1.7.1  if you want to use it together with wordpress.  XAMPP 1.7.2 uses PHP 5.3.0 which causes some problems when used in combination with wordpress 2.8.4</span></p>
<p>2. Place the downloaded .tar.gz archive on your desktop if it wasn&#8217;t already saved there by default.</p>
<p>3. Open a terminal ( Applications &gt; Accessoires &gt; Terminal )</p>
<p><span id="more-3"></span></p>
<p>4. Go to your desktop (or any other location where you placed the downloaded file)</p>
<pre><code style="color: white;">
cd Dekstop
</code></pre>
<p>&nbsp;<br />
5. Login as the super admin</p>
<pre><code style="color: white;">
sudo -s
</code></pre>
<p>&nbsp;<br />
6. Untarball the compressed file to the /opt directory</p>
<pre><code style="color: white;">
tar xvfz xampp-linux-1.7.1.tar.gz -C /opt
</code></pre>
<p>&nbsp;<br />
The above command installs xampp in the /opt/lampp directory</p>
<p>7. Start xampp by giving the command</p>
<pre><code style="color: white;">
/opt/lampp/lampp start
</code></pre>
<p>&nbsp;<br />
8. After starting xampp open a browserwindow and go to <a href="http://localhost/">localhost</a></p>
<p>If all went well you’ll see this page</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-Mozilla-Firefox.png"><img class="alignnone size-medium wp-image-28" title="Language selection page" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-Mozilla-Firefox-300x180.png" alt="Language selection page" width="300" height="180" /></a></p>
<p>9. After choosing your language you’ll be forwarded to the welcome page</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox.png"><img class="alignnone size-medium wp-image-30" title="Welcome page" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-300x180.png" alt="Welcome page" width="300" height="180" /></a></p>
<p>10. Go to the security page by clicking Security in the left menu.</p>
<p>You’ll see that everything is unsecured at the moment</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-1.png"><img class="alignnone size-medium wp-image-31" title="Security page" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-1-300x293.png" alt="Security page" width="300" height="293" /></a></p>
<p>When XAMPP will be used for local development these settings won’t matter much. It is good practice however to set it up securely.</p>
<h3>Next I’ll show you how to setup security</h3>
<p>&nbsp;<br />
11. Copy the code on the bottom of the security page and then paste it into a terminal</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-3.png"><img class="alignnone size-medium wp-image-35" title="Select code" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-3-300x293.png" alt="Select code" width="300" height="293" /></a></p>
<pre><code style="color: white;">
/opt/lampp/lampp security
</code></pre>
<p>&nbsp;<br />
This will start an interactive program to help you configure security settings</p>
<div><span style="color: #ffcc33;">Make sure you’re logged in as super admin to start xampp or you’ll get an error message!</span></div>
<p>&nbsp;<br />
<a href="http://codetorment.com/wp-content/uploads/Screenshot-tom@laptop-1.png"><img class="alignnone size-medium wp-image-36" title="Login as sudo" src="http://codetorment.com/wp-content/uploads/Screenshot-tom@laptop-1-300x199.png" alt="Login as sudo" width="300" height="199" /></a></p>
<p>12. Type yes when prompted to enter a password and enter a secure password twice</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop-.png"><img class="alignnone size-medium wp-image-38" title="Enter password" src="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop--300x199.png" alt="Enter password" width="300" height="199" /></a></p>
<p>13. Turn off MySQL network accesibility by entering yes, MySQL will now restart so the setting can take effect</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop-1.png"><img class="alignnone size-medium wp-image-39" title="MySQL restart" src="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop-1-300x199.png" alt="MySQL restart" width="300" height="199" /></a></p>
<p>14. You’ll be prompted to set a password for phpMyAdmin, do so.</p>
<p>15. And again for setting a MySQL root password, make sure you write this one down or you’ll be in trouble later on.</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop-2.png"><img class="alignnone size-medium wp-image-40" title="MySQL root password" src="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop-2-300x199.png" alt="MySQL root password" width="300" height="199" /></a></p>
<p>16. Now set a password for user nobody.</p>
<p>This should complete the security setup procedure.</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot2.png"><img class="alignnone size-medium wp-image-41" title="Done" src="http://codetorment.com/wp-content/uploads/Screenshot2-299x210.png" alt="Done" width="299" height="210" /></a></p>
<p>To confirm everything went ok, open a browserwindow and go to <a href="http://localhost/">localhost</a></p>
<p>17. You’ll be prompted for a username and password.</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-1.png"><img class="alignnone size-medium wp-image-46" title="Login" src="http://codetorment.com/wp-content/uploads/Screenshot-1-300x230.png" alt="Login" width="300" height="230" /></a></p>
<p>the username is ‘lampp’<br />
the password is the one you entered in step 12</p>
<p>18. Go the the security pages</p>
<p>This should show all subjects are now secured..</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-4.png"><img class="alignnone size-medium wp-image-44" title="Secured" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-4-300x293.png" alt="Secured" width="300" height="293" /></a></p>
<p>Place content you want to add to the webserver in the root web directory located in</p>
<pre><code style="color: white;">
/opt/lamp/htdocs
</code></pre>
<p>&nbsp;<br />
To make things easier we&#8217;ll add a link to the htdocs folder to a folder in our home directory.</p>
<p>You can do this in a terminal by typing</p>
<pre><code style="color: white;">
mkdir ~/public_html
</code></pre>
<p>&nbsp;<br />
Or just right-click in your home folder and create a new folder named &#8216;public_html&#8217;</p>
<p>19. Now we&#8217;ll make a link from the new folder to /opt/lampp/htdocs , open a terminal and enter</p>
<pre><code style="color: white;">
sudo ln -s ~/public_html /opt/lampp/htdocs/
</code></pre>
<p>&nbsp;<br />
20. To setup permissions for the htdocs folder, go to the terminal (still logged in as super user) and type</p>
<pre><code style="color: white;">
chown  yourusername -R /opt/lampp/htdocs
</code></pre>
<p>&nbsp;<br />
This changes the ownership of the htdocs folder to your user, the -R option makes the command recursive so all permissions of folders and files inside htdocs are changed aswell.<br />
&nbsp;</p>
<div><span style="color: #ffcc33;">Note that depending on the applications used to interact with content on your server, permissions might need to be altered to grant read/write access.</span></div>
<p>&nbsp;</p>
<h4>Congratulations that was it! Well sort of&#8230;</h4>
<p>&nbsp;<br />
After restarting your computer you have to manually start the server by entering</p>
<pre><code style="color: white;">
/opt/lampp/lampp start
</code></pre>
<p>&nbsp;<br />
in a terminal.</p>
<p>EDIT: MiD-AwE pointed out he had to install the ia32 libraries when installing XAMPP on Ubuntu 9.10 64-bit. The ia32 library is needed when installing a 64-bit version on a AMD64 or <a href="http://nl.wikipedia.org/wiki/IA-64">ia64</a>-system.</p>
<p>To do this open a terminal and type</p>
<pre><code style="color: white;">
sudo apt-get install ia32-libs
</code></pre>
<p>&nbsp;</p>
<h3>If you want xampp to automatically start at boottime, follow  <a href="http://www.apachefriends.org/en/faq-xampp-linux.html#fsl">these</a> steps.</h3>
<p>&nbsp;<br />
EDIT : Or as MiD-AwE suggested you can go to System &gt; Preferences and add an entry</p>
<pre><code style="color: white;">
 /opt/lampp/lampp start
</code></pre>
<p>&nbsp;<br />
to “Startup Applications”</p>
<h3>If you want to use a GUI to start and stop xampp do the following:</h3>
<p>1. Open a terminal and type</p>
<pre><code style="color: white;">
sudo gedit ~/.local/share/applications/xampp-control-panel.desktop
</code></pre>
<p>&nbsp;<br />
2. Paste this code in the new empty file in gedit</p>
<pre><code style="color: white;">
[Desktop Entry]
Comment=Start and Stop XAMPP
Name=XAMPP Control Panel
Exec=gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py
Icon[en_CA]=/usr/share/icons/Humanity/devices/24/network-wired.svg
Encoding=UTF-8
Terminal=false
Name[en_CA]=XAMPP Control Panel
Comment[en_CA]=Start and Stop XAMPP
Type=Application
Icon=/usr/share/icons/Humanity/devices/24/network-wired.svg
</code></pre>
<p>&nbsp;
<div>If you want to use another icon or if you are using another theme then make sure to change the path to the icon you want to showing up for the xampp control panel.</div>
<p>Change this line (twice) to match the location of the icon you want to use.</p>
<pre><code style="color: white;">
Icon[en_CA]=/usr/share/icons/Humanity/devices/24/network-wired.svg
</code></pre>
<p>&nbsp;<br />
3. The xampp control panel should now show up in Applications &gt; Other</p>
<p>You should get to see something like this :</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot.png"><img class="alignnone size-full wp-image-48" title="XAMPP control panel" src="http://codetorment.com/wp-content/uploads/Screenshot.png" alt="XAMPP control panel" width="268" height="256" /></a></p>
<h4>That was it!</h4>
<p>Now run along and go do something usefull</p>
<p><a title="home" href="http://www.codetorment.com/" target="_self">Back to homepage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codetorment.com/2009/10/20/guide-install-xampp-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>
