<?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>Jamie Le Souef&#187; All posts filed under Apache</title> <atom:link href="http://jamielesouef.com/tag/apache/feed/" rel="self" type="application/rss+xml" /><link>http://jamielesouef.com</link> <description>website . blog . graphic design</description> <lastBuildDate>Sat, 31 Jul 2010 17:48:00 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Linux, OSX or any BSD/Unix Premission explained in amazing detail</title><link>http://jamielesouef.com/linux/linux-osx-or-any-bsdunix-premission-explained-in-amazing-detail/</link> <comments>http://jamielesouef.com/linux/linux-osx-or-any-bsdunix-premission-explained-in-amazing-detail/#comments</comments> <pubDate>Wed, 19 Nov 2008 23:29:33 +0000</pubDate> <dc:creator>Jamie Le Souef</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[osx]]></category><guid isPermaLink="false">http://jamielesouef.com/?p=466</guid> <description><![CDATA[ Over at AskApache they have an amazing article on nix permissions. The article goes into quite a bit of detail, but is defiantly worth the read in order to grasp one of the best features of any nix system. Header over to AskApache to check it out ]]></description> <content:encoded><![CDATA[<div class="tweetmeme_button" style="margin-right: 10px; margin-top:10px; margin-bottom:10px;"> <a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2Flinux-osx-or-any-bsdunix-premission-explained-in-amazing-detail%2F"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2Flinux-osx-or-any-bsdunix-premission-explained-in-amazing-detail%2F&amp;style=normal" height="61" width="50" /><br /> </a></div><p>Over at <a href="http://www.askapache.com/">AskApache</a> they have an amazing article on nix permissions. The article goes into quite a bit of detail, but is defiantly worth the read in order to grasp one of the best features of any nix system.</p><p>Header <a href="http://www.askapache.com/security/chmod-umask-fileperms-stat-tricks.html">over</a> to AskApache to check it out</p> ]]></content:encoded> <wfw:commentRss>http://jamielesouef.com/linux/linux-osx-or-any-bsdunix-premission-explained-in-amazing-detail/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Tip : Backing up a large MySQL Database (errno: 24)</title><link>http://jamielesouef.com/linux/tip-backing-up-a-large-mysql-database-errno-24/</link> <comments>http://jamielesouef.com/linux/tip-backing-up-a-large-mysql-database-errno-24/#comments</comments> <pubDate>Mon, 15 Sep 2008 01:02:23 +0000</pubDate> <dc:creator>Jamie Le Souef</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[command]]></category> <category><![CDATA[Database]]></category> <category><![CDATA[export table]]></category> <category><![CDATA[merry way]]></category> <category><![CDATA[mydatabase]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[mysql databases]]></category> <category><![CDATA[mysqldump]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[table feature]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[way]]></category><guid isPermaLink="false">http://jamielesouef.com/?p=402</guid> <description><![CDATA[(errno: 24) when using LOCK TABLE. How to dump a large MySQL database via SSH. ]]></description> <content:encoded><![CDATA[<div class="tweetmeme_button" style="margin-right: 10px; margin-top:10px; margin-bottom:10px;"> <a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2Ftip-backing-up-a-large-mysql-database-errno-24%2F"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2Ftip-backing-up-a-large-mysql-database-errno-24%2F&amp;style=normal" height="61" width="50" /><br /> </a></div><p>Today I&#8217;ve run into a bit of an issue with one of the MySQL databases from one of the sites that I manage. I&#8217;m used to going about my merry way with phpMyAdmin and it&#8217;s trusty (?) export table feature but that is no longer an option with this Database.</p><p>It&#8217;s a Wordpress Mu (Multi-user) site that has well over 5,000 MySQL Database tables in it. PhpMyAdmin just could not handle an export of that size and timed out on me over and over again.</p><p><strong>It&#8217;s time for some command line action!</strong></p><p>So I loged into my server via SSH and entered in the mysqldump command only to be greeted by</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysqldump: Got error: <span style="color: #000000;">1016</span>: Can<span style="color: #ff0000;">'t open file: '</span>.<span style="color: #000000; font-weight: bold;">/</span>databasename<span style="color: #000000; font-weight: bold;">/</span>table.frm<span style="color: #ff0000;">' (errno: 24) when using LOCK TABLES</span></pre></div></div><p>Great!</p><p>So after some searching I found that this is a bug in MySQL and to get around it and dump (not Drop!) a large database I needed to use the following in my mysqldump command : &#8211;lock-tables=false.</p><p>So my final MySQL command looked like this</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># mysqldump --add-drop-table -h 127.0.0.1 -u MyUsername -pMyPassword MyDatabase --lock-tables=false | gzip &gt; backup.bak.sql.gz</span></pre></div></div><p>I hope this helps someone else.</p><p>If there is a problem with the way I&#8217;m going about this please let me know of a better solution!</p> ]]></content:encoded> <wfw:commentRss>http://jamielesouef.com/linux/tip-backing-up-a-large-mysql-database-errno-24/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Speed up your site with some htaccess mojo</title><link>http://jamielesouef.com/web-design/speed-up-your-site-with-some-htaccess-mojo/</link> <comments>http://jamielesouef.com/web-design/speed-up-your-site-with-some-htaccess-mojo/#comments</comments> <pubDate>Sun, 14 Sep 2008 23:27:12 +0000</pubDate> <dc:creator>Jamie Le Souef</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[development]]></category> <category><![CDATA[Tips]]></category><guid isPermaLink="false">http://jamielesouef.com/?p=396</guid> <description><![CDATA[13 Year old Hayes Potter shares some htaccess tips for speeding up your website using mod_deflate and header expiration, css and java placement and external http request. ]]></description> <content:encoded><![CDATA[<div class="tweetmeme_button" style="margin-right: 10px; margin-top:10px; margin-bottom:10px;"> <a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjamielesouef.com%2Fweb-design%2Fspeed-up-your-site-with-some-htaccess-mojo%2F"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjamielesouef.com%2Fweb-design%2Fspeed-up-your-site-with-some-htaccess-mojo%2F&amp;style=normal" height="61" width="50" /><br /> </a></div><p>Over at <a href="http://www.catswhocode.com/blog/">Cats Who Code</a> they have a great about speeding up your Website using Apache&#8217;s <strong>mod_deflate</strong> and <strong>header expires</strong>. It&#8217;s a guest post by Hayes Potter &#8211; a 13 year old web developer!</p><p>Whilst I have some reservations about the extra CPU load on deflating files vs just waiting for the page to load, it&#8217;s defiantly a good read and has some smart tips.</p><p>Head on over to <a title="Speed Up your Website with htaccess mojo" href="http://www.catswhocode.com/blog/web-development/speed-up-your-website-quick-602#comment-8342">Cats Who Code</a> for the full article.</p> ]]></content:encoded> <wfw:commentRss>http://jamielesouef.com/web-design/speed-up-your-site-with-some-htaccess-mojo/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Updating MySQL Privilege Tables</title><link>http://jamielesouef.com/linux/updating-mysql-privilege-tables/</link> <comments>http://jamielesouef.com/linux/updating-mysql-privilege-tables/#comments</comments> <pubDate>Tue, 22 Jul 2008 00:57:40 +0000</pubDate> <dc:creator>Jamie Le Souef</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Tutorial]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[MySQL]]></category><guid isPermaLink="false">http://jamielesouef.com/linux/updating-mysql-privilege-tables/</guid> <description><![CDATA[ I also had this problem with Plesk servers. Upgrading the default MySQL4 instal to version 5 always gave me issues with the Privilege Tables and i could never get the command, mysql_fix_privilege_tables, to run &#8211; it would never accept my password. I little bit of searching and i came across a page entitles &#8216;Upgrade to PHP5 [...]]]></description> <content:encoded><![CDATA[<div class="tweetmeme_button" style="margin-right: 10px; margin-top:10px; margin-bottom:10px;"> <a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2Fupdating-mysql-privilege-tables%2F"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2Fupdating-mysql-privilege-tables%2F&amp;style=normal" height="61" width="50" /><br /> </a></div><p>I also had this problem with Plesk servers. Upgrading the default MySQL4 instal to version 5 always gave me issues with the Privilege Tables and i could never get the command, mysql_fix_privilege_tables, to run &#8211; it would never accept my password.</p><p>I little bit of searching and i came across a page entitles &#8216;<a href="http://kb.mediatemple.net/questions/127/Upgrade+to+PHP5+and+MySQL+4.1x+on+(dv)+2.0+Dedicated+Virtual+Servers">Upgrade to PHP5 and MySQL 4.1x on (dv) 2.0 Dedicated Virtual Servers</a>&#8216; and it worked like a charm for me!</p><p>Here is the bit i needed</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysql_fix_privilege_tables <span style="color: #660033;">--user</span>=admin <span style="color: #660033;">--password</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>psa<span style="color: #000000; font-weight: bold;">/</span>.psa.shadow<span style="color: #000000; font-weight: bold;">`</span></pre></div></div><p>All done :)<a href="http://kb.mediatemple.net/questions/127/Upgrade+to+PHP5+and+MySQL+4.1x+on+(dv)+2.0+Dedicated+Virtual+Servers"><br /> </a></p> ]]></content:encoded> <wfw:commentRss>http://jamielesouef.com/linux/updating-mysql-privilege-tables/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>301 How to Redirect a Web Page in ASP, ASP.NET or PHP</title><link>http://jamielesouef.com/linux/301-how-to-redirect-a-web-page-in-asp-asp-net-or-php/</link> <comments>http://jamielesouef.com/linux/301-how-to-redirect-a-web-page-in-asp-asp-net-or-php/#comments</comments> <pubDate>Mon, 03 Mar 2008 04:38:03 +0000</pubDate> <dc:creator>Jamie Le Souef</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Tutorial]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[ASP]]></category> <category><![CDATA[Code]]></category> <category><![CDATA[com]]></category> <category><![CDATA[domain]]></category> <category><![CDATA[file]]></category> <category><![CDATA[htaccess method]]></category> <category><![CDATA[linux servers]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[redirect]]></category> <category><![CDATA[redirection works]]></category> <category><![CDATA[response status]]></category> <category><![CDATA[search engine rankings]]></category> <category><![CDATA[SEO]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Web]]></category><guid isPermaLink="false">http://www.jamielesouef.com/linux/301-how-to-redirect-a-web-page-in-asp-asp.net-or-php/</guid> <description><![CDATA[ 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It&#8217;s not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it&#8217;s the safest option. The code &#8220;301&#8243; is interpreted as &#8220;moved permanently&#8221;. [...]]]></description> <content:encoded><![CDATA[<div class="tweetmeme_button" style="margin-right: 10px; margin-top:10px; margin-bottom:10px;"> <a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2F301-how-to-redirect-a-web-page-in-asp-asp-net-or-php%2F"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2F301-how-to-redirect-a-web-page-in-asp-asp-net-or-php%2F&amp;style=normal" height="61" width="50" /><br /> </a></div><p><a href="http://jamielesouef.com/linux/301-how-to-redirect-a-web-page-in-asp-asp-net-or-php/attachment/164/" rel="attachment wp-att-164" title="50200735006880.jpg"><img src="http://www.jamielesouef.com/wp-content/uploads/50200735006880.thumbnail.jpg" style="margin: 10px; width: 128px; height: 80px" alt="50200735006880.jpg" align="left" height="80" hspace="10" vspace="10" width="128" /></a>301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It&#8217;s not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it&#8217;s the safest option. The code &#8220;301&#8243; is interpreted as &#8220;moved permanently&#8221;.  If  been looking around for the ways on how to do this. So this is what i&#8217;ve found:</p><h3>ASP.NET</h3><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #006600; font-weight: bold;">&lt;</span>script runat<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;server&quot;</span><span style="color: #006600; font-weight: bold;">&gt;</span>
<span style="color: #990099; font-weight: bold;">private</span> void Page_Load<span style="color: #006600; font-weight:bold;">&#40;</span>object sender, System.<span style="color: #9900cc;">EventArgs</span> e<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
<span style="color: #990099; font-weight: bold;">Response</span>.<span style="color: #330066;">Status</span> <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #cc0000;">&quot;301 Moved Permanently&quot;</span><span style="color: #006600; font-weight: bold;">;</span>
<span style="color: #990099; font-weight: bold;">Response</span>.<span style="color: #330066;">AddHeader</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #cc0000;">&quot;Location&quot;</span>,<span style="color: #cc0000;">&quot;http://www.new-url.com&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
<span style="color: #006600; font-weight:bold;">&#125;</span>
<span style="color: #006600; font-weight: bold;">&lt;/</span>script<span style="color: #006600; font-weight: bold;">&gt;</span></pre></td></tr></table></div><h3>Classic ASP (ASP3.0)</h3><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;%</span><span style="color: #006600; font-weight: bold;">@</span> Language<span style="color: #006600; font-weight: bold;">=</span>VBScript<span style="color: #000000; font-weight: bold;">%&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;%</span>
<span style="color: #990099; font-weight: bold;">Response</span>.<span style="color: #330066;">Status</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;301 Moved Permanently&quot;</span>
<span style="color: #990099; font-weight: bold;">Response</span>.<span style="color: #330066;">AddHeader</span> <span style="color: #cc0000;">&quot;Location&quot;</span>,<span style="color: #cc0000;">&quot;http://www.new-url.com/&quot;</span>
<span style="color: #990099; font-weight: bold;">Response</span>.<span style="color: #990099; font-weight: bold;">End</span>
<span style="color: #000000; font-weight: bold;">%&gt;</span></pre></td></tr></table></div><h3>PHP Redirect</h3><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">Header</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 301 Moved Permanently&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">Header</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;Location: http://www.new-url.com&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div><h3>Redirect Old domain to New domain (htaccess redirect)</h3><p class="defaultfont" align="justify">The code belew, which you place into a file called .htaccess in the root folder of your <strong>old </strong>domain, will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.</p><p class="defaultfont" align="justify">The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Options +FollowSymLinks
RewriteEngine on
RewriteRule <span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.new-domain-name.com<span style="color: #000000; font-weight: bold;">/</span>$<span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">R</span>=<span style="color: #000000;">301</span>,L<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></td></tr></table></div><p class="defaultfont" align="justify"><strong>NOTE</strong>: REPLACE www.new-domain-name.com in the above code with your actual domain name.</p><p class="defaultfont" align="justify"> <strong>NOTE</strong>: This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.</p><h3>Redirect to www (htaccess redirect)</h3><p class="defaultfont" align="justify"> Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com</p><p class="defaultfont" align="justify">As with the last example, the .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Options +FollowSymlinks
RewriteEngine on
rewritecond <span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>http_host<span style="color: #7a0874; font-weight: bold;">&#125;</span> ^domain.com <span style="color: #7a0874; font-weight: bold;">&#91;</span>nc<span style="color: #7a0874; font-weight: bold;">&#93;</span>
rewriterule ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>$ http:<span style="color: #000000; font-weight: bold;">//</span>www.domain.com<span style="color: #000000; font-weight: bold;">/</span>$<span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">r</span>=<span style="color: #000000;">301</span>,nc<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></td></tr></table></div><p class="defaultfont" align="justify"><strong>NOTE</strong>: Replace domain.com with your domain name</p><p class="defaultfont" align="justify"> <strong>NOTE</strong>: Both of these last examples ONLY works on Linux servers having the Apache Mod-Rewrite moduled enabled.</p><p class="defaultfont" align="justify"> And there you have it. You can Test your redirection with <a href="http://www.webconfs.com/redirect-check.php">Search Engine Friendly Redirect Checker</a></p> ]]></content:encoded> <wfw:commentRss>http://jamielesouef.com/linux/301-how-to-redirect-a-web-page-in-asp-asp-net-or-php/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Installing Ubuntu Server LAMP, SSH, FTP, Webmin and phpMyAdmin for a newbie</title><link>http://jamielesouef.com/linux/installing-ubuntu-server-lampsshftpwebmin-and-phpmyadmin-for-a-newbie/</link> <comments>http://jamielesouef.com/linux/installing-ubuntu-server-lampsshftpwebmin-and-phpmyadmin-for-a-newbie/#comments</comments> <pubDate>Wed, 16 Jan 2008 00:45:28 +0000</pubDate> <dc:creator>Jamie Le Souef</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Tutorial]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[FTP]]></category> <category><![CDATA[LAMP]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Ubuntu]]></category><guid isPermaLink="false">http://www.jamielesouef.com/2008/web-design/installing-ubuntu-server-lampsshftpwebmin-and-phpmyadmin-for-a-newbie/</guid> <description><![CDATA[ I&#8217;m not interested in using Linux for my desktop, Gnome and KDE really don&#8217;t do it for me and Windows XP is doing me fine &#8211; though I am looking forward to moving my studio onto a Mac Pro. Another big reason Linux as a desktop isn&#8217;t for me is that Adobe&#8217;s Creative Suite 3 [...]]]></description> <content:encoded><![CDATA[<div class="tweetmeme_button" style="margin-right: 10px; margin-top:10px; margin-bottom:10px;"> <a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2Finstalling-ubuntu-server-lampsshftpwebmin-and-phpmyadmin-for-a-newbie%2F"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjamielesouef.com%2Flinux%2Finstalling-ubuntu-server-lampsshftpwebmin-and-phpmyadmin-for-a-newbie%2F&amp;style=normal" height="61" width="50" /><br /> </a></div><p>I&#8217;m not interested in using Linux for my desktop, Gnome and KDE really don&#8217;t do it for me and Windows XP is doing me fine &#8211; though I am looking forward to moving my studio onto a Mac Pro. Another big reason Linux as a desktop isn&#8217;t for me is that Adobe&#8217;s Creative Suite 3 does not, and won&#8217;t by the looks of things, support any flavor of Linux.</p><p>I&#8217;m after a new Server environment. I&#8217;m in the process of switching from Classic ASP (ASP3) over to PHP5. I&#8217;ve been using MySQL religiously for my dev work. But what I really want access to is the speed and reliability of Apache and PHP running on Linux. Also the chmod in ftp will save SO MUCH TIME when setting up blogs or any other site that requires permission changes.</p><p>So it&#8217;s time to learn &#8211; and by learning I mean command lines. Back to the good ‘ol DOS days.</p><p>I found Ubuntu 7.10 Server to be the solution for me. Why? Because a) It&#8217;s built on Debian and 2) they are the best at marking their flavor of Linux and bringing it to the attention of us Windows users.</p><p>Also a great feature that I found is that in around 15 minutes you can have a LAMP (Linux, Apache, MySQL and PHP) server up and ready to go! You just select it during installation!</p><p>The LAMP option means you don&#8217;t have to install and integrate each of the four separate LAMP components, a process which can take hours and requires someone who is skilled in the installation and configuration of the individual applications. Instead, you get increased security, reduced time-to-install, and reduced risk of misconfiguration, all of which results in a lower cost of ownership. New pre-configured installation options have been added to the Ubuntu Server. Mail Server, File Server, Print Server, and Database Server options join existing LAMP and DNS options for pre-configured installations, easing the deployment of common server configurations.</p><p>Here&#8217;s what will be installed</p><ul class="unIndentedList"><li> Ubuntu Gutsy Gibbon 7.10</li><li> Apache 2.2.4</li><li> Mysql 5.0.45</li><li> PHP 5.2.3</li></ul><p>Installing Ubutnu Server I found to be really simple and once I did it a couple of times (due to errors on my behalf) I quickly found it even easier to install then Windows 2003 Server</p><p><span id="more-123"></span><br /> You&#8217;ll need to first download Ubuntu Server from <a href="http://www.ubuntu.com/getubuntu/download">http://www.ubuntu.com/getubuntu/download</a>. Burn the ISO or mount it in VMWare if you are installing it on a virtual machine. Insert the CD a make sure you BIOS is set to boot from the CD/DVD drive</p><ol><li>Select &#8220;Install to the Hard Disk&#8221;<a title="ubnuntu_server_16.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_16.png"><br /> </a><a title="ubnuntu_server_16.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_16.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_16.thumbnail.png" alt="ubnuntu_server_16.png" /></a></li><li>Select your language<br /> <a title="ubnuntu_server_21.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_21.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_21.thumbnail.png" alt="ubnuntu_server_21.png" /></a><br /> <a title="ubnuntu_server_21.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_21.png"><br /> </a></li><li>Select your location<a title="ubnuntu_server_31.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_31.png"><br /> </a><a title="ubnuntu_server_31.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_31.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_31.thumbnail.png" alt="ubnuntu_server_31.png" /></a><a title="ubnuntu_server_31.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_31.png"></a></li><li>Ubuntu Server can try and detect your keyboard layout. For the most people will be using US English. Select No and chose your layout yourself.<br /> <a title="ubnuntu_server_41.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_41.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_41.thumbnail.png" alt="ubnuntu_server_41.png" /></a><br /> <a title="ubnuntu_server_41.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_41.png"><br /> </a>Go through the options for your keyboard. The installation will then detect your hardware.</li><li>Enter ubuntuLamp or what ever you want to call your Server<a title="ubnuntu_server_51.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_51.png"><br /> </a><a title="ubnuntu_server_51.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_51.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_51.thumbnail.png" alt="ubnuntu_server_51.png" /></a></li><li>The installer will detect your Hard Drive. Select &#8220;Guided &#8211; use entire disk&#8221;<br /> <a title="ubnuntu_server_61.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_61.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_61.thumbnail.png" alt="ubnuntu_server_61.png" /></a></li><li>When you receive the screen title &#8220;[!!] Partion Disks&#8221; select &lt;Yes&gt; and hit enter<br /> <a title="ubnuntu_server_71.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_71.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_71.thumbnail.png" alt="ubnuntu_server_71.png" /></a></li><li>Select &lt;Yes&gt; when presented about the system clock<br /> <a title="ubnuntu_server_81.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_81.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_81.thumbnail.png" alt="ubnuntu_server_81.png" /></a></li><li>Enter in administration for your name<br /> <a title="ubnuntu_server_91.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_91.png"><br /> </a><a title="ubnuntu_server_91.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_91.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_91.thumbnail.png" alt="ubnuntu_server_91.png" /></a><a title="ubnuntu_server_91.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_91.png"></a></li><li>Enter in administrator for your username<br /> <a title="ubnuntu_server_101.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_101.png"><br /> </a><a title="ubnuntu_server_101.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_101.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_101.thumbnail.png" alt="ubnuntu_server_101.png" /></a><a title="ubnuntu_server_101.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_101.png"></a></li><li>Enter in a secure password (<a href="http://www.jamielesouef.com/2007/general/secure-passwords-made-easy/">here is a great article on coming up with a secure password that you can remember</a>)<br /> <a title="ubnuntu_server_111.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_111.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_111.thumbnail.png" alt="ubnuntu_server_111.png" /></a></li><li>When you are presented with the screen [!] Software selection press the down arrow till the &#8220;* is in the &#8220;LAMP server&#8221; box and press space bar. As were also going to be using SSH I also select &#8220;OpenSSH server&#8221;<br /> <a title="ubnuntu_server_121.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_121.png"><br /> </a><a title="ubnuntu_server_121.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_121.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_121.thumbnail.png" alt="ubnuntu_server_121.png" /></a><a title="ubnuntu_server_121.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_121.png"></a></li><li>You&#8217;ll be presented with the option to change the MySQL root password. This is highly recommended as the standard password is blank<br /> <a title="ubnuntu_server_131.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_131.png"><br /> </a><a title="ubnuntu_server_131.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_131.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_131.thumbnail.png" alt="ubnuntu_server_131.png" /></a><a title="ubnuntu_server_131.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_131.png"></a></li><li>You&#8217;re done! Remove the CD from the CD drive and reboot<br /> <a title="ubnuntu_server_141.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_141.png"><br /> </a><a title="ubnuntu_server_141.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_141.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_141.thumbnail.png" alt="ubnuntu_server_141.png" /></a><a title="ubnuntu_server_141.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_141.png"></a></li><li>You server is now installed.<br /> <a title="ubnuntu_server_151.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_151.png"><br /> </a><a title="ubnuntu_server_151.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_151.png"><img src="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_151.thumbnail.png" alt="ubnuntu_server_151.png" /></a><a title="ubnuntu_server_151.png" href="http://www.jamielesouef.com/wp-content/uploads/ubnuntu_server_151.png"><br /> </a></li></ol><h2>Next I configure a Static IP.</h2><p>Log into your server using the details you entered during install. I&#8217;m using 192.168.0.150 as my example IP)</p><p>Type</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">su</span></pre></div></div><p>and enter your password again</p><p>Then Type</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>interfaces</pre></div></div><p>If you have typed it out correctly you&#8217;ll Also you will see the following:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># This file describes the network interfaces available on your system</span>
<span style="color: #666666; font-style: italic;"># and how to activate them. For more information, see interfaces(5).</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># The loopback network interface</span>
auto lo
iface lo inet loopback
&nbsp;
<span style="color: #666666; font-style: italic;"># The primary network interface</span>
auto eth0
iface eth0 inet dhcp</pre></div></div><p>Replace the last 3 lines with the following:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># The primary network interface</span>
auto eth0
iface eth0 inet static
address 172.19.0.10
netmask 255.255.255.0
network 172.19.0.0</pre></div></div><p>Try  Ctrl+O to write the file and then press enter</p><p>Type Ctrl+X to exit</p><p>To set your Nameservers, type</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>resolv.conf</pre></div></div><p>Enter in your nameservers as required &#8220;nameserver xxx.xxx.xxx.xxx&#8221;</p><p>Type Ctrl+O to write the file and then press enter</p><p>Type Ctrl+X to exit</p><p>Now you need to restart your network service. Type the following</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>networking restart</pre></div></div><p>You&#8217;ve now configured your network interface.</p><p>I also wanted to also install Webmin to manage my server remotely as well as SSH but I found that the install instructions on the above site just didn&#8217;t work for me. So here is how I installed Webmin on my Ubuntu Server.</p><p>You will need to enable the universe and universe and multiverse repositories in the /etc/apt/sources.list (<a href="https://wiki.ubuntu.com/AddingRepositoriesCliHowto">https://wiki.ubuntu.com/AddingRepositoriesCliHowto</a>)</p><p>This is also where I started to use Putty and SSH (<a href="http://the.earth.li/%7Esgtatham/putty/latest/x86/putty.exe">http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe</a>)</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">su</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>Webmin
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>Webmin
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>easynews.dl.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>sourceforge<span style="color: #000000; font-weight: bold;">/</span>webadmin<span style="color: #000000; font-weight: bold;">/</span>Webmin-1.390.tar.gz
<span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-cd</span> Webmin-1.390.tar.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvf -
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libauthen-pam-perl libnet-ssleay-perl libpam-runtime openssl <span style="color: #c20cb9; font-weight: bold;">perl</span> perl-modules</pre></div></div><p>Note I had heaps of problems with this command and it was to do with my sources.list file. No matter what I uncommented it just didn&#8217;t seam to work. I had to generate a new sources.list file from this site (<a href="http://www.ubuntu-nl.org/source-o-matic/">http://www.ubuntu-nl.org/source-o-matic/</a>) and past that into /etc/apt/sources.list then run sudo apt-get update before the above command would run</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #7a0874; font-weight: bold;">cd</span> Webmin<span style="color: #000000; font-weight: bold;">*</span>
.<span style="color: #000000; font-weight: bold;">/</span>setup.sh</pre></div></div><p>Basically just hit enter and choose SSL and the auto start the service at boot. Use these settings (or change as requried)</p><blockquote><p>Web server port (default 10000): (Feel Free to change this) Login name (default admin): Login password: AReallyGoodONE Password again: AReallyGoodONE Use SSL (y/n): y Start Webmin at boot time (y/n): y</p></blockquote><p>I found that the default instating module for PHP looks for the php.ini file in the Apache directory when it needs to look in the apache2 directory. After instating login into Webmin by visiting <a href="https://your-ip:10000/">https://your-ip:10000</a> and click on  &#8220;Other&#8221; in the right bar. Then click on &#8220;PHP Configureation&#8221;  You should see that following:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>apache<span style="color: #000000; font-weight: bold;">/</span>php.ini=Configuration <span style="color: #000000; font-weight: bold;">for</span> mod_php
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>cgi<span style="color: #000000; font-weight: bold;">/</span>php.ini=Configuration <span style="color: #000000; font-weight: bold;">for</span> scripts run via CGI
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>cli<span style="color: #000000; font-weight: bold;">/</span>php.ini=Configuration <span style="color: #000000; font-weight: bold;">for</span> command-line scripts</pre></div></div><p>Change the line /etc/php5/apache/php.ini=Configuration for mod_php to read /etc/php5/apache<strong>2</strong>/php.ini=Configuration for mod_php and click save</p><p>This should have configured the PHP moduble for Webmin for you.</p><p><strong>FTP</strong></p><p>Now were going to install ProFTPD FTP server.</p><p>Login into your Ubuntu Server via SSH, or how ever you wish to access the console, and type:</p><blockquote><p>sudo apt-get install proftpd</p></blockquote><p>When asked if you want to install the server as a inid or standalone, select standalone and continue.</p><p>Done! Now if you check back in Webmin under Servers you&#8217;ll see ProFTPD Server, if you click on that you should see the ProFTPd options up and running.</p><p>Adding a FTP user is done through the &#8220;System =&gt;  Users and Groups&#8221; area in Webmin. You just click on &#8220;Create a new user&#8221; enter in the details and select the home directory to /var/www (make sure you click the check box next to the home directory text box as it stays checked at &#8220;Automatic&#8221; even once you enter something into the text box.)</p><p>Fire up your ftp client and login!</p><p>You should now have a working LAMP+F (Linux, Apache, MySQL, PHP and FTP) Ubuntu Server. Next I&#8217;ll be looking into securing the server. I&#8217;ve read that ProFTPD isn&#8217;t the most secure FTP Server  to use with Linux, apparently  VSFTPD is the way to go there, but for the purpose of simplicity for the first time, and the fact that this is not a live server, rather just a testing box, it&#8217;s not such a big deal.</p><p>Please post your comments on this, if you find it useful please let me know &#8211; anything that needs further clarification tell me &#8211; I&#8217;m new to Linux as you might be so this is a big change.</p> ]]></content:encoded> <wfw:commentRss>http://jamielesouef.com/linux/installing-ubuntu-server-lampsshftpwebmin-and-phpmyadmin-for-a-newbie/feed/</wfw:commentRss> <slash:comments>21</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching using disk

Served from: jamielesouef.com @ 2010-08-01 05:10:31 -->