<?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 MySQL</title> <atom:link href="http://jamielesouef.com/tag/mysql/feed/" rel="self" type="application/rss+xml" /><link>http://jamielesouef.com</link> <description>website . blog . graphic design</description> <lastBuildDate>Sat, 04 Sep 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>Easy Install of Wordpress with &#8220;Instant Install Wordpress&#8221;</title><link>http://jamielesouef.com/wordpress/easy-install-of-wordpress-with-instant-install-wordpress/</link> <comments>http://jamielesouef.com/wordpress/easy-install-of-wordpress-with-instant-install-wordpress/#comments</comments> <pubDate>Tue, 02 Jun 2009 00:31:14 +0000</pubDate> <dc:creator>Jamie Le Souef</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[Concept]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[tool]]></category><guid isPermaLink="false">http://jamielesouef.com/?p=653</guid> <description><![CDATA[So apparently installing Wordpress is a bit tricky. I tend to agree with some that the &#8216;famous 5-minute installation&#8217; is really nothing more than a marketing tool. If you don&#8217;t know how to create a MySQL database, or how to set the folder permission on your root folder, create your wp-content/uploads folder and set the [...]]]></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%2Fwordpress%2Feasy-install-of-wordpress-with-instant-install-wordpress%2F"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjamielesouef.com%2Fwordpress%2Feasy-install-of-wordpress-with-instant-install-wordpress%2F&amp;style=normal" height="61" width="50" /><br /> </a></div><p><img class="aligncenter size-full wp-image-652" title="instant-install-wordpress" src="http://jamielesouef.com/wp-content/uploads/instant-install-wordpress.jpg" alt="instant-install-wordpress" width="640" height="547" /></p><p>So apparently installing Wordpress is a bit tricky. I tend to agree with some that the &#8216;<a title="famous 5-minute installation" href="http://wordpress.org/download/">famous 5-minute installation&#8217;</a> is really nothing more than a marketing tool. If you don&#8217;t know how to create a MySQL database, or how to set the folder permission on your root folder, create your wp-content/uploads folder and set the permission so that Wordpress can upload all your fantastic flashy images then you are going to be spending a lot more time then 5 minutes trying to figure these things out.</p><p>Now don&#8217;t get me wrong I love Wordpress and how it works (and installs) but 5 minutes only applies to those who know what they are doing.</p><p>So &#8211; What can you do? Someone over at <a title="9 Miles Media" href="http://instantinstall.9milesmedia.com/wordpress/">9 Miles Media</a> has created an install script to do all the work for you. Now I haven&#8217;t tried it as I don&#8217;t have any use for it what so ever, but I did think it was an interesting concept that some might find useful.</p><p>If you <a title="9 Miles Media" href="http://instantinstall.9milesmedia.com/wordpress/">check it out</a>, please come back here and leave a comment</p> ]]></content:encoded> <wfw:commentRss>http://jamielesouef.com/wordpress/easy-install-of-wordpress-with-instant-install-wordpress/feed/</wfw:commentRss> <slash:comments>2</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>11</slash:comments> </item> <item><title>A Look at Some Essential Security Considerations</title><link>http://jamielesouef.com/web-design/a-look-at-some-essential-security-considerations/</link> <comments>http://jamielesouef.com/web-design/a-look-at-some-essential-security-considerations/#comments</comments> <pubDate>Mon, 04 Aug 2008 02:11:00 +0000</pubDate> <dc:creator>Jamie Le Souef</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[Web Design]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[SQL]]></category><guid isPermaLink="false">http://jamielesouef.com/web-design/a-look-at-some-essential-security-considerations/</guid> <description><![CDATA[ How secure is your website? Ben Charnock has put together a great article on Nettuts that focuses on security aspects of modern websites. His section on the % (like) operator in SQL and the limits of mysql_real_escape_string(); have made me re-think some of my coding practices. Hit up the below link and start protecting your scripts! NETTUTS [...]]]></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%2Fa-look-at-some-essential-security-considerations%2F"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjamielesouef.com%2Fweb-design%2Fa-look-at-some-essential-security-considerations%2F&amp;style=normal" height="61" width="50" /><br /> </a></div><p>How secure is your website? Ben Charnock has put together a great article on Nettuts that focuses on security aspects of modern websites. His section on the % (like) operator in SQL and the limits of mysql_real_escape_string(); have made me re-think some of my coding practices.</p><p>Hit up the below link and start protecting your scripts!</p><p><a href="http://nettuts.com/articles/can-you-hack-your-own-site-a-look-at-some-essential-security-considerations/">NETTUTS &#8211; Can You Hack Your Own Site? A Look at Some Essential Security Considerations</a>.</p> ]]></content:encoded> <wfw:commentRss>http://jamielesouef.com/web-design/a-look-at-some-essential-security-considerations/feed/</wfw:commentRss> <slash:comments>1</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>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>22</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-09-10 05:48:58 -->