<?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>RussTaylor &#187; Linux</title>
	<atom:link href="http://russtaylor.co.uk/category/computers/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://russtaylor.co.uk</link>
	<description>Things I&#039;ve done, seen, or thought about ...</description>
	<lastBuildDate>Thu, 05 Aug 2010 13:27:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Cleanup failed to process the following, can&#8217;t move svn-work to svn-base, access is&#160;denied.</title>
		<link>http://russtaylor.co.uk/2010/01/cleanup-failed-to-process-the-following-cant-move-svn-work-to-svn-base-access-is-denied/</link>
		<comments>http://russtaylor.co.uk/2010/01/cleanup-failed-to-process-the-following-cant-move-svn-work-to-svn-base-access-is-denied/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 11:58:06 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Access is denied]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[svn-base]]></category>
		<category><![CDATA[svn-work]]></category>
		<category><![CDATA[Tortoise]]></category>

		<guid isPermaLink="false">http://russtaylor.co.uk/?p=466</guid>
		<description><![CDATA[Had this error a lot, we only seemed to have a problem when we were committing images though, so I thought it was a problem with that. Cleanup failed to process the following paths: - \\ourServer\ourDirectory\ In directory &#8216;\\ourServer\ourDirectory\images&#8217; Error processing command &#8216;committed&#8217; in &#8216;\\ourServer\ourDirectory\images&#8217; Can&#8217;t move &#8216;\\ourServer\ourDirectory\images\.svn\props\imageName.jpg.svn-work&#8217; to &#8216;\\ourServer\ourDirectory\images\.svn\prop-base\imageName.jpg.svn-base&#8217;: Access is denied We run [...]]]></description>
			<content:encoded><![CDATA[<p>Had this error a lot, we only seemed to have a problem when we were committing images though, so I thought it was a problem with that.</p>
<blockquote><p>Cleanup failed to process the following paths:<br />
- \\ourServer\ourDirectory\<br />
In directory &#8216;\\ourServer\ourDirectory\images&#8217;<br />
Error processing command &#8216;committed&#8217; in &#8216;\\ourServer\ourDirectory\images&#8217;<br />
Can&#8217;t move &#8216;\\ourServer\ourDirectory\images\.svn\props\imageName.jpg.svn-work&#8217;<br />
to<br />
&#8216;\\ourServer\ourDirectory\images\.svn\prop-base\imageName.jpg.svn-base&#8217;:<br />
Access is denied</p></blockquote>
<p>We run VisualSVN server on Win7, serving up a local (Win 7) repository. All our files are checked out using Tortoise to a samba share under Debian. After some googling it turns out that a particular version of samba causes this error. To solve it I did a few things</p>
<ol>
<li>Established what version of Samba we were running by running<br />
smbstatus</li>
<li>I then updated our samba by running<br />
apt-get update<br />
apt-get upgrade samba</li>
<li>I then edited smb.conf following the discussion at <a href="http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&amp;dsMessageId=989775">http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&amp;dsMessageId=989775</a>, what to do can be found at <a href="http://tortoisesvn.tigris.org/faq.html#samba">http://tortoisesvn.tigris.org/faq.html#samba</a> but basically<br />
nano /etc/samba/smb.conf<br />
find the line [global] and underneath add<br />
delete readonly = yes</li>
<li>Restart samba with<br />
/etc/init.d/samba restart</li>
</ol>
<p>And things played nicely ever since!</p>
<p>If this helped you please check out the business directory I work for, for example here are <a href="http://www.thenationalpages.co.uk/somerset/taunton/computer-consultants-in-taunton.html">Computer Consultants in Taunton, Somerset</a>. You can get a free advert with us!</p>
]]></content:encoded>
			<wfw:commentRss>http://russtaylor.co.uk/2010/01/cleanup-failed-to-process-the-following-cant-move-svn-work-to-svn-base-access-is-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fatal error: Maximum execution time of 300 seconds exceeded under MySQL&#160;CLI</title>
		<link>http://russtaylor.co.uk/2009/11/fatal-error-maximum-execution-time-of-300-seconds-exceeded-under-mysql-cli/</link>
		<comments>http://russtaylor.co.uk/2009/11/fatal-error-maximum-execution-time-of-300-seconds-exceeded-under-mysql-cli/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 10:50:35 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Maximum execution time]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://russtaylor.co.uk/?p=415</guid>
		<description><![CDATA[I received this error a few times, and variations of it, when trying to import some sql at the command prompt (CLI). ERROR 1064 (42000) at line 3499917: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;Fatal error: [...]]]></description>
			<content:encoded><![CDATA[<p>I received this error a few times, and variations of it, when trying to import some sql at the command prompt (CLI).</p>
<blockquote><p>ERROR 1064 (42000) at line 3499917: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;<strong>Fatal error</strong>:  Maximum execution time of 300 seconds exceeded in <strong>/usr/share/phpmyadmin/libraries/export/sql.php</strong> on line <strong>757</strong>&#8216;</p></blockquote>
<p>Lots of googling kept pointing to changing the maximum execution time of Apache or PHP, by default Apache is 300 seconds (as per my error) and PHP 30 seconds. It didn&#8217;t make sense as I was doing am import at the CLI, which doesn&#8217;t use Apache or PHP. The mistake I made was using phpmyadmin to export the sql file I was trying to import. Despite the sql file downloading correctly from phpmyadmin and not reporting any errors, the last lines in my sql file were</p>
<blockquote><p>[End of file snippet ...]<br />
(3566987, 1225461, 4, 52530, &#8217;2009-05-00&#8242;),<br />
(3566988, 1225464, 4, 52530, &#8217;2009-05-00&#8242;),<br />
(3566989, 1577089, 4, 4422, &#8217;2009-05-00&#8242;),<br />
(3566990, 1762231, 8, 4422, &#8217;2009-05-00&#8242;),<br />
(3566991, 1768654, 8, 4422, &#8217;2009-05-00&#8242;)&lt;br /&gt;<br />
&lt;b&gt;Fatal error&lt;/b&gt;:  Maximum execution time of 300 seconds exceeded in &lt;b&gt;/usr/share/phpmyadmin/libraries/export/sql.php&lt;/b&gt; on line &lt;b&gt;757&lt;/b&gt;&lt;br /&gt;</p></blockquote>
<p>The solution is of course to do things properly and use mysqldump -u [USERNAME] -p [DATABASE NAME] [TABLE] &gt; [OUTPUT FILE NAME].sql.</p>
]]></content:encoded>
			<wfw:commentRss>http://russtaylor.co.uk/2009/11/fatal-error-maximum-execution-time-of-300-seconds-exceeded-under-mysql-cli/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Find files from Unix bash&#160;prompt</title>
		<link>http://russtaylor.co.uk/2008/12/find-files-from-unix-bash-prompt/</link>
		<comments>http://russtaylor.co.uk/2008/12/find-files-from-unix-bash-prompt/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 15:37:35 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://russtaylor.co.uk/?p=269</guid>
		<description><![CDATA[To find files under Linux as su (super user): find location -name filename e.g. find / -name php.ini (find in the root and subdirectories anything with php.ini in it. And easier way to find your php.ini file is to look in php_info).]]></description>
			<content:encoded><![CDATA[<p>To find files under Linux as su (super user):</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">find</span> location -name filename</div>
</li>
</ol>
</div>
<p>e.g.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">find</span> <span class="sy0">/</span> -name php.ini</div>
</li>
</ol>
</div>
<p>(find in the root and subdirectories anything with php.ini in it. And easier way to find your php.ini file is to look in php_info).</p>
]]></content:encoded>
			<wfw:commentRss>http://russtaylor.co.uk/2008/12/find-files-from-unix-bash-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fastest way to transfer files between two (linux) web&#160;servers</title>
		<link>http://russtaylor.co.uk/2008/08/fastest-way-to-transfer-files-between-two-linux-web-servers/</link>
		<comments>http://russtaylor.co.uk/2008/08/fastest-way-to-transfer-files-between-two-linux-web-servers/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 10:37:04 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[FTP]]></category>

		<guid isPermaLink="false">http://russtaylor.co.uk/?p=206</guid>
		<description><![CDATA[So far it seems that ftping between two online servers is the fastest way to move your data. Why go the route of downloading all the data to your local machine on your slow connection, then pushing it back up on your slow connection to the new server, when you can use your servers fast [...]]]></description>
			<content:encoded><![CDATA[<p>So far it seems that ftping between two online servers is the fastest way to move your data. Why go the route of downloading all the data to your local machine on your slow connection, then pushing it back up on your slow connection to the new server, when you can use your servers fast connections and do it direct? I found this guide (), but simply the commands I used were</p>
<blockquote><p><strong>ftp [your domain/ip]</strong> &#8211; open ftp program from bash prompt<br />
<strong>ls</strong> &#8211; list all files at ftp<br />
<strong>!ls</strong> &#8211; list all files locally (! in front of most commands performs them on your local server)<br />
<strong>prompt</strong> &#8211; turn prompting on/off, usefully to saving having to answer Y to each mget file<br />
<strong>mget *.sql</strong> &#8211; (multi) get all files ending .sql<br />
<strong>get mybackup.sql</strong> &#8211; get a single file called mybackup.sql<br />
<strong>bye</strong> &#8211; quit ftp client</p></blockquote>
<p>Top tip, when you ftp connect to the server ip, not the domain. When I was moving from old zclub.net server to new zclub.net server the new server resolved the domain to it&#8217;s own IP, and ftp&#8217;d to itself!</p>
]]></content:encoded>
			<wfw:commentRss>http://russtaylor.co.uk/2008/08/fastest-way-to-transfer-files-between-two-linux-web-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transferring large websites between linux&#160;servers</title>
		<link>http://russtaylor.co.uk/2008/08/transferring-large-websites-between-linux-servers/</link>
		<comments>http://russtaylor.co.uk/2008/08/transferring-large-websites-between-linux-servers/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 10:14:05 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://russtaylor.co.uk/?p=201</guid>
		<description><![CDATA[I&#8217;ve been up all night moving ZClub.net to a new dedicated server. This guide (http://www.electronic-equipments.co.uk/tutorial/linux/backup_large_files.html) was really helpful. Here are the commands I used for future reference. tar -cz public_html &#124; split -b 200m &#8211; public_htmlarchive.tgz. This created a tarball of my public_html folder, this was piped to the split tool, and I ended up [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been up all night moving ZClub.net to a new dedicated server. This guide (<a href="http://www.electronic-equipments.co.uk/tutorial/linux/backup_large_files.html">http://www.electronic-equipments.co.uk/tutorial/linux/backup_large_files.html</a>) was really helpful. Here are the commands I used for future reference.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">tar</span> -cz public_html <span class="sy0">|</span> <span class="kw2">split</span> -b 200m &#8211; public_htmlarchive.tgz.</div>
</li>
</ol>
</div>
<p>This created a tarball of my public_html folder, this was piped to the split tool, and I ended up with a lot of 200mb split archives ready for download.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">md5sum public_htmlarchive.tgz.<span class="sy0">*</span> <span class="sy0">&amp;</span>gt; public_htmlarchive.md5</div>
</li>
</ol>
</div>
<p>This produced an md5 file for the archives, so once downloaded and reuploaded to the new server I could check their integrity. I moved all above created files (having done the same for my .sql backup) to the new server and then verified them using</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">md5sum -c public_htmlarchive.md5</div>
</li>
</ol>
</div>
<p>If that&#8217;s reports the files are ok I rejoin the tar files using</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">cat</span> myarchive.tgz.<span class="sy0">*</span> <span class="sy0">|</span> <span class="kw2">tar</span> -xz</div>
</li>
</ol>
</div>
<p>Cat concatenates the files together, which are then piped to tar to extract them.</p>
]]></content:encoded>
			<wfw:commentRss>http://russtaylor.co.uk/2008/08/transferring-large-websites-between-linux-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install MySQL 4.0.27 on&#160;Debian</title>
		<link>http://russtaylor.co.uk/2008/08/install-mysql-4027-on-debian/</link>
		<comments>http://russtaylor.co.uk/2008/08/install-mysql-4027-on-debian/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 15:19:44 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHPMyAdmin]]></category>

		<guid isPermaLink="false">http://russtaylor.co.uk/?p=59</guid>
		<description><![CDATA[Ok, I needed a specific version to run on our Debian server. This wasn&#8217;t part of the Debian packages. I tried using http://dev.mysql.com/doc/refman/5.0/en/installing-binary.html but I had a big fight with this; so thought I&#8217;d write my own guide. Grab the tar.gz file for the version you need, for example I used mysql-4.0.27.tar.gz which I found [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, I needed a specific version to run on our Debian server. This wasn&#8217;t part of the Debian packages. I tried using http://dev.mysql.com/doc/refman/5.0/en/installing-binary.html but I had a big fight with this; so thought I&#8217;d write my own guide.</p>
<ol>
<li>Grab the tar.gz file for the version you need, for example I used mysql-4.0.27.tar.gz which I found on an old mirror using google. Starting from the root folder
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># wget http://www.sfr-fresh.com/unix/misc/mysql-4.0.27.tar.gz -P /usr/local/src/</span></div>
</li>
</ol>
</div>
<p>This saved the version I needed in /usr/local/src/</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># tar -xvvzf /usr/local/src/mysql-4.0.27.tar.gz -C /usr/local/src/ ; rm /usr/local/src/mysql-4.0.27.tar.gz</span></div>
</li>
</ol>
</div>
<p>This extracts the folder into /usr/local/src then deletes the original archive.</li>
<li>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># cd /usr/local/src/mysql-4.0.27</span></div>
</li>
</ol>
</div>
</li>
<li>I ran ./configure, and got the error
<div class="geshi no text">
<ol>
<li class="li1">
<div class="de1">checking for termcap functions library&#8230; configure: error: No curses/termcap library found</div>
</li>
</ol>
</div>
<p>To overcome this (<a href="http://bugs.mysql.com/bug.php?id=1279">I read this guide and</a>) I had to run configure using the &#8211;with-named-curses-lib flag, pointing to my libncurses library, e.g.<strong> ./configure &#8211;with-named-curses-libs=/lib/libncurses.so.5</strong>. That worked, but then gave me all sorts of grief later. Having read <a href="http://bugs.mysql.com/bug.php?id=1279">this guide</a> I found I should suffix ./configure with &#8211;prefix=/usr/local/mysql, so you should run<strong>./configure &#8211;with-named-curses-libs=/lib/libncurses.so.5 &#8211;prefix=/usr/local/mysql</strong></li>
<li>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># make</span></div>
</li>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># make install</span></div>
</li>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># ./scripts/mysql_install_db</span></div>
</li>
</ol>
</div>
</li>
<li>That completes the installation, but when I ran mysqld_safe to start the server I got
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span>usr<span class="sy0">/</span><span class="kw3">local</span><span class="sy0">/</span>bin<span class="co0"># mysqld_safe</span></div>
</li>
<li class="li1">
<div class="de1">Starting mysqld daemon with databases from <span class="sy0">/</span>usr<span class="sy0">/</span><span class="kw3">local</span><span class="sy0">/</span>var</div>
</li>
<li class="li1">
<div class="de1">STOPPING server from pid <span class="kw2">file</span> <span class="sy0">/</span>usr<span class="sy0">/</span><span class="kw3">local</span><span class="sy0">/</span>var<span class="sy0">/</span>debianbox.pid</div>
</li>
<li class="li1">
<div class="de1"><span class="nu0">080807</span> <span class="nu0">15</span>:<span class="nu0">54</span>:<span class="nu0">36</span>  mysqld ended</div>
</li>
</ol>
</div>
<p>To understand why it was failing I needed to find the log file. I did this by running find . -name *.err from the root folder. The mysql error log file was called /usr/local/var/debianbox.err (debianbox is my machine name). This said</p>
<div class="geshi no text">
<ol>
<li class="li1">
<div class="de1">080807 18:45:09 mysqld started</div>
</li>
<li class="li1">
<div class="de1">080807 18:45:09 InnoDB: Started</div>
</li>
<li class="li1">
<div class="de1">080807 18:45:09 /usr/local/libexec/mysqld: Can&#39;t find file: &#39;./mysql/host.frm&#39; (errno: 13)</div>
</li>
<li class="li1">
<div class="de1">080807 18:45:09 Fatal error: Can&#39;t open privilege tables: Can&#39;t find file: &#39;./mysql/host.frm&#39; (errno: 13)</div>
</li>
<li class="li1">
<div class="de1">080807 18:45:09 Aborting</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">080807 18:45:09 InnoDB: Starting shutdown&#8230;</div>
</li>
<li class="li1">
<div class="de1">080807 18:45:11 InnoDB: Shutdown completed</div>
</li>
<li class="li1">
<div class="de1">080807 18:45:11 /usr/local/libexec/mysqld: Shutdown Complete</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">080807 18:45:11 mysqld ended</div>
</li>
</ol>
</div>
</li>
<li>Firstly I checked the file host.frm existed
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># find / -name host.frm</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">/</span>var<span class="sy0">/</span>lib<span class="sy0">/</span>mysql<span class="sy0">/</span>mysql<span class="sy0">/</span>host.frm</div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">/</span>usr<span class="sy0">/</span><span class="kw3">local</span><span class="sy0">/</span>var<span class="sy0">/</span>mysql<span class="sy0">/</span>host.frm</div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">/</span>usr<span class="sy0">/</span><span class="kw3">local</span><span class="sy0">/</span>mysql<span class="sy0">/</span>var<span class="sy0">/</span>mysql<span class="sy0">/</span>host.frm</div>
</li>
</ol>
</div>
</li>
<li>errno: 13 is a permissions error. Next you need to add the mysql user and groups to the list of permissions as per the following
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># groupadd mysql</span></div>
</li>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># useradd -g mysql mysql</span></div>
</li>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># chown -R root /usr/local/mysql</span></div>
</li>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># chown -R mysql /usr/local/mysql/var</span></div>
</li>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># chgrp -R mysql /usr/local/mysql</span></div>
</li>
</ol>
</div>
</li>
<li>That didn&#8217;t appear to help me at all, my problem was I was running mysqld_safe from the wrong location, so the relative link to ./mysql/host.frm was wrong.
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># cd /usr/local/mysql/bin</span></div>
</li>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># ./mysqld_safe &#8211;user=mysql &amp;amp;</span></div>
</li>
</ol>
</div>
<p>Tada! I could then use the mysql client to connect and &#8216;show databases;&#8217; produced an output.</li>
<li>Next up my phpmyadmin install, and anything using mysql through errors.
<div class="geshi no html4strict">
<ol>
<li class="li1">
<div class="de1">Warning: mysql_connect() [function.mysql-connect]: Can&#39;t connect to local MySQL server through socket &#39;/var/run/mysqld/mysqld.sock&#39; (2) in /myscript.php on line 4</div>
</li>
<li class="li1">
<div class="de1">ERROR: Unable to connect to database server: Can&#39;t connect to local MySQL server through socket &#39;/var/run/mysqld/mysqld.sock&#39; (2)</div>
</li>
</ol>
</div>
<p>and when viewing phpmyadmin</p>
<div class="geshi no html4strict">
<ol>
<li class="li1">
<div class="de1">phpMyAdmin &#8211; error</div>
</li>
<li class="li1">
<div class="de1">#2002 &#8211; The server is not responding (or the local MySQL server&#39;s socket is not correctly configured)</div>
</li>
</ol>
</div>
<p>The problem was that because I specified prefix when configuring my mysql install the default locations that apache looks in for mysql where all wrong. I found my sock file like this</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># find / -name *.sock</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">/</span>var<span class="sy0">/</span>run<span class="sy0">/</span>cups<span class="sy0">/</span>cups.sock</div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">/</span>tmp<span class="sy0">/</span>mysql.sock</div>
</li>
</ol>
</div>
<p>Then edited my php.ini file on the line</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">mysql</span><span class="sy0">.</span>default_socket <span class="sy0">=</span></div>
</li>
</ol>
</div>
<p>to</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">mysql</span><span class="sy0">.</span>default_socket <span class="sy0">=</span> <span class="sy0">/</span>tmp<span class="sy0">/</span><span class="kw3">mysql</span><span class="sy0">.</span>sock</div>
</li>
</ol>
</div>
<p>restarted apache, and everything (so far) works great!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://russtaylor.co.uk/2008/08/install-mysql-4027-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set up a Debian box with&#160;SSH/Apache/MySql/PHP/</title>
		<link>http://russtaylor.co.uk/2008/08/how-to-set-up-a-debian-box-with-sshapachemysqlphp/</link>
		<comments>http://russtaylor.co.uk/2008/08/how-to-set-up-a-debian-box-with-sshapachemysqlphp/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 15:41:45 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://russtaylor.co.uk/?p=51</guid>
		<description><![CDATA[I found a nice guide from Mark Shrader on how to set up a Debian box with a bunch of web hosting software. http://markshrader.wordpress.com/2007/10/14/step-by-step-debian-webserver/ I actually dodged using VMWare (or Virtual PC 2007, my personal preference) and installed it on a fresh server.  To do that I just downloaded CD 1 of the Debian cd [...]]]></description>
			<content:encoded><![CDATA[<p>I found a nice guide from Mark Shrader on how to set up a Debian box with a bunch of web hosting software.</p>
<p><a href="http://markshrader.wordpress.com/2007/10/14/step-by-step-debian-webserver/">http://markshrader.wordpress.com/2007/10/14/step-by-step-debian-webserver/</a></p>
<p>I actually dodged using VMWare (or Virtual PC 2007, my personal preference) and installed it on a fresh server.  To do that I just downloaded CD 1 of the Debian cd install sets (NOT the network install CD) and ran that, then used the net to download the remaining packages I needed.</p>
<p>NB: Just remember the packages in the setup (e.g. wget http://apache.rmplc.co.uk/httpd/httpd-<strong>2.2.4</strong>.tar.gz) are mostly out of date, so you&#8217;ll need to adjust accordingly (I used wget http://apache.rmplc.co.uk/httpd/httpd-<strong>2.2.9</strong>.tar.gz).</p>
]]></content:encoded>
			<wfw:commentRss>http://russtaylor.co.uk/2008/08/how-to-set-up-a-debian-box-with-sshapachemysqlphp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find what version of Linux you are running from telnet session /&#160;shell</title>
		<link>http://russtaylor.co.uk/2008/07/find-what-version-of-linux-you-are-running-from-telnet-session-shell/</link>
		<comments>http://russtaylor.co.uk/2008/07/find-what-version-of-linux-you-are-running-from-telnet-session-shell/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 11:02:10 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://russtaylor.co.uk/?p=50</guid>
		<description><![CDATA[I needed to find what Linux distro one of my online servers was running. From shell you can use debianbox:/# uname -a also try debianbox:/# ls /etc/*release* debianbox:/# ls /etc/*version* and then run debianbox:/# cat [the file the command above returned]]]></description>
			<content:encoded><![CDATA[<p>I needed to find what Linux distro one of my online servers was running. From shell you can use</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># uname -a</span></div>
</li>
</ol>
</div>
<p>also try</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># ls /etc/*release*</span></div>
</li>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># ls /etc/*version*</span></div>
</li>
</ol>
</div>
<p>and then run</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">debianbox:<span class="sy0">/</span><span class="co0"># cat [the file the command above returned]</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://russtaylor.co.uk/2008/07/find-what-version-of-linux-you-are-running-from-telnet-session-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
