<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en">
<title>Small Packages: Frequently Asked Questions</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/" />
<modified>2005-07-09T14:02:49Z</modified>
<tagline>FAQ&apos;s and &quot;how-to&apos;s&quot; related to running your own web site at Small Packages</tagline>
<id>tag:www.small-packages.com,2005:/faq//2</id>
<generator url="http://www.movabletype.org/" version="3.15">Movable Type</generator>
<copyright>Copyright (c) 2005, ShelaghG</copyright>
<entry>
<title>Dealing With Referrer Spam</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/archives/2005/03/post.php" />
<modified>2005-07-09T14:02:49Z</modified>
<issued>2005-03-04T11:40:49Z</issued>
<id>tag:www.small-packages.com,2005:/faq//2.56</id>
<created>2005-03-04T11:40:49Z</created>
<summary type="text/plain">In the last year referrer spam has been increasingly common. The target of the spammers are those people who publish their stats and/or referrers on their web sites, the spammers hope that by getting their links on those pages they...</summary>
<author>
<name>ShelaghG</name>

<email>shelagh@small-packages.com</email>
</author>
<dc:subject>Site Management</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.small-packages.com/faq/">
<![CDATA[<p>In the last year referrer spam has been increasingly common.  The target of the spammers are those people who publish their stats and/or referrers on their web sites, the spammers hope that by getting their links on those pages they will increase their visibility on search engines.  Regardless of whether we do or don't publish our referrers we all get hit by referrer spam.</p>

<p>There is a way of combatting referrer spam using the .htaccess file.  Basically what you need to do is create a list of referrers that are banned from your site.  You can edit your .htaccess file using the File Manager in cPanel.</p>]]>
<![CDATA[<p>Log into cPanel and click <strong>File Manager</strong>, which will open in a new window.  You will see something like this: (click to see a larger version)</p>

<p><a href="http://www.small-packages.com/faq/mt_images/refer_spam01.php" onclick="window.open('http://www.small-packages.com/faq/mt_images/refer_spam01.php','popup','width=793,height=95,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/mt_images/refer_spam01-thumb.jpg" width="200" height="23" border="0" /></a></p>

<p>Next, click on the <strong>folder</strong> next to public_html - this will open the public_html folder (if you click on the name you will only get a list of options for the folder) and you will see the following:<br />
<a href="http://www.small-packages.com/faq/mt_images/refer_spam021.php" onclick="window.open('http://www.small-packages.com/faq/mt_images/refer_spam021.php','popup','width=813,height=440,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/mt_images/refer_spam02-thumb.jpg" width="200" height="108" border="0" /></a></p>

<p>If you don't have an existing .htaccess file I will tell you how to create one near the end.  Assuming you do, this time you need to click on the <strong>name</strong> of the .htaccess file and you will see some options appear in the top, right-hand side of the File Manager screen:<br />
<a href="http://www.small-packages.com/faq/mt_images/refer_spam03.php" onclick="window.open('http://www.small-packages.com/faq/mt_images/refer_spam03.php','popup','width=368,height=215,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/mt_images/refer_spam03-thumb.jpg" width="200" height="116" border="0" /></a></p>

<p>Click on <strong>Edit File</strong>.  If you already have something in there you need to copy and past it into notepad and save it somewhere safe.</p>

<p>You need to add the following to the bottom of your .htaccess file:</p>

<p><strong>SetEnvIfNoCase Referer ".*(terashells|crescentarian|future-2000|6q|yelucie|smsportali|nutzu|ronnieazza|isacommie|<br />
chat-nett|musicbox1|psxtreme|credit|canadianlabels|8gold|texas-hold|hold-em|holdem|<br />
fidelityfunding|condo|sportsparent|mortgage|spoodles|money|cash|hotel|houseofseven|stmaryonline|<br />
newtruths|popwow|oiline|flafeber|thatwhichis|tmsathai|pisoc|crepesuzette|mediavisor|commerce|<br />
easymoney|911|////.vi|gb////.com|4free|macsurfer|teen|pussy|discount|blogincome|lillystar|aizzo|<br />
webdevsquare|laser-eye|escal8|xopy|vixen1|linkerdome|youradulthosting|fick|inkjet-toner|fuck|ime.nu|<br />
perfume-cologne|italiancharmsbracelets|shoesdiscount|psnarones|hasfun|casino|gambling|poker|porn|sex|<br />
paris|gabriola|nude|xxx|hilton|pics|video|adminshop|devaddict|iaea|empathica|insuranceinfo|atelebanon|<br />
handy-sms|peng|just-deals|pisx|rimpim).*" BadReferrer</strong><br />
order deny,allow<br />
deny from env=BadReferrer</p>

<p>The section in bold needs to be one, unbroken line otherwise you will get server errors when you try to view your site.  It's best if you copy and paste into notepad (make sure word wrap is off) and get that long line right, then copy it into the file edit screen in cPanel. As you can see, it looks like there is a hard return after <strong>SetEnvIfNoCase Referer</strong> and before <strong>BadReferrer</strong> but there isn't, they are spaces.</p>

<p><a href="http://www.small-packages.com/faq/mt_images/refer_spam041.php" onclick="window.open('http://www.small-packages.com/faq/mt_images/refer_spam041.php','popup','width=529,height=115,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/mt_images/refer_spam04-thumb.jpg" width="200" height="43" border="0" /></a></p>

<p>Click <strong>Save</strong> and close the editing screen, which will have been opened in a new window.  You should be able to access your site as normal, if you get any errors at all <a href="http://www.small-packages.com/contact.html">contact me</a>.</p>

<p>Keep an eye on your stats and you should see those fake referrers dropping off your stats.  As new URLs appear you can edit the list in the .htaccess file as necessary by adding <strong><em>string</em>|</strong> after the "("</p>

<p>If you don't have an exisiting .htaccess file in public_html you will have to create one.  You can create it in something like notepad and ensure that you have the one long line in the middle.  call it .htaccess and upload it to your public_html folder either by using File Manager or your ftp client.</p>

<p>Thanks for this solution go to Dorothea at <a href="http://cavlec.yarinareth.net/archives/2005/01/11/killing-referrer-spam/">Caveat Lector</a></p>]]>
</content>
</entry>
<entry>
<title>Managing Your E-Mail</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/archives/2004/12/managing_your_e.php" />
<modified>2005-07-09T14:02:48Z</modified>
<issued>2004-12-28T18:47:02Z</issued>
<id>tag:www.small-packages.com,2004:/faq//2.23</id>
<created>2004-12-28T18:47:02Z</created>
<summary type="text/plain">It&apos;s very important to keep on top of your e-mail. Many people don&apos;t seem to realise that the spaced used for mailboxes is part of their disk allocation. I&apos;ve seen people use up their whole hosting account on e-mail! There...</summary>
<author>
<name>ShelaghG</name>

<email>shelagh@small-packages.com</email>
</author>
<dc:subject>Email</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.small-packages.com/faq/">
<![CDATA[<p>It's very important to keep on top of your e-mail.  Many people don't seem to realise that the spaced used for mailboxes is part of their disk allocation.  I've seen people use up their whole hosting account on e-mail!  There are a few things to remember :<br />
1.  There is no ceiling on the size of your default mailbox.  If you don't clear down your e-mail, either by downloading it or logging in via webmail and deleting it, your mailbox grows and grows until you run out of disk space.  When you run out of disk space you don't get any more mail messages, instead they hang around on the server, slowing it down.  In addition every time a message doesn't get delivered to you a return message is generated to the sender telling them your mailbox is full.  If the message is from a legitimate address this isn't such a big problem but if you are getting a lot of spam the chances are the sender's address is spoofed meaing that the server is unable to deliver the reply.  This also sits on the mail queue, slowing down the server even more.  The server will try to deliver messages in the mail queue for about a week before it discards them.</p>

<p>2.  Enable SpamAssassin via cPanel.  It's very good at weeding out spam.  Do bear in mind though that you need to clear down your spam folder (viewable via Horde or Neomail) otherwise it will grow and grow until it uses up all the space in your account, or your mailbox if you have set up a named mailbox with a finite space limit.</p>

<p>3.  If you use webmail to send mail clear down your Sent Mail folders.  This sits on the server using part of your space allocation until you delete it.</p>

<p>4.  As well as using SpamAssassin you can dump a lot of spam by setting the default mail address, as outlined in <a href="http://www.small-packages.com/faq/archives/2004/12/avoiding_spam_b.php">this tutorial</a></p>]]>

</content>
</entry>
<entry>
<title>Backups</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/archives/2004/12/backups.php" />
<modified>2005-07-09T14:02:48Z</modified>
<issued>2004-12-26T18:52:51Z</issued>
<id>tag:www.small-packages.com,2004:/faq//2.22</id>
<created>2004-12-26T18:52:51Z</created>
<summary type="text/plain">Backups are taken every night. We save a daily backup, a weekly backup and a monthly backup. These backups are NOT guaranteed, your data is YOUR responsibility. It is very important that you back up your own files, particularly if...</summary>
<author>
<name>ShelaghG</name>

<email>shelagh@small-packages.com</email>
</author>
<dc:subject>General</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.small-packages.com/faq/">
<![CDATA[<p>Backups are taken every night.  We save a daily backup, a weekly backup and a monthly backup. These backups are NOT guaranteed, your data is YOUR responsibility.  It is very important that you back up your own files, particularly if you use a MySQL database as you will not have an original copy of this on your own computer.</p>]]>

</content>
</entry>
<entry>
<title>Refunds</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/archives/2004/12/refunds.php" />
<modified>2005-07-09T14:02:47Z</modified>
<issued>2004-12-26T18:50:18Z</issued>
<id>tag:www.small-packages.com,2004:/faq//2.21</id>
<created>2004-12-26T18:50:18Z</created>
<summary type="text/plain">30 Day Money Back Guarantee/Refunds: Should you become unsatisfied with our services within the first 30 days of your account activation, Small Packages will refund your hosting fee. Cancellation Refunds: We DO NOT refund partial annual/quarterly fees to accounts canceling...</summary>
<author>
<name>ShelaghG</name>

<email>shelagh@small-packages.com</email>
</author>
<dc:subject>General</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.small-packages.com/faq/">
<![CDATA[<p><strong>30 Day Money Back Guarantee/Refunds:</strong><br />
Should you become unsatisfied with our services within the first 30 days of your account activation, Small Packages will refund your hosting fee.</p>

<p><strong>Cancellation Refunds:</strong><br />
We DO NOT refund partial annual/quarterly fees to accounts canceling after their 30 day initial account activation period.</p>]]>

</content>
</entry>
<entry>
<title>Bandwidth</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/archives/2004/12/bandwidth.php" />
<modified>2005-07-09T14:02:47Z</modified>
<issued>2004-12-26T18:49:16Z</issued>
<id>tag:www.small-packages.com,2004:/faq//2.20</id>
<created>2004-12-26T18:49:16Z</created>
<summary type="text/plain">Bandwidth is allocated on a ration of 20:1 (bandwidth:disk space). Overusage of bandwidth is billed at $1/Gb. Bandwidth is calculated on a monthly basis....</summary>
<author>
<name>ShelaghG</name>

<email>shelagh@small-packages.com</email>
</author>
<dc:subject>General</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.small-packages.com/faq/">
<![CDATA[<p>Bandwidth is allocated on a ration of 20:1 (bandwidth:disk space). Overusage of bandwidth is billed at $1/Gb. Bandwidth is calculated on a monthly basis.</p>]]>

</content>
</entry>
<entry>
<title>Billing</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/archives/2004/12/billing.php" />
<modified>2005-07-09T14:02:45Z</modified>
<issued>2004-12-26T18:48:37Z</issued>
<id>tag:www.small-packages.com,2004:/faq//2.19</id>
<created>2004-12-26T18:48:37Z</created>
<summary type="text/plain">We DO NOT send out invoices. All credit cards are billed automatically annually (or monthly if you take this option). It is the client&apos;s responsibility to ensure that they have sufficient credit to cover this transaction. In the event that...</summary>
<author>
<name>ShelaghG</name>

<email>shelagh@small-packages.com</email>
</author>
<dc:subject>General</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.small-packages.com/faq/">
<![CDATA[<p>We <strong>DO NOT</strong> send out invoices. All credit cards are billed automatically annually (or monthly if you take this option). It is the client's responsibility to ensure that they have sufficient credit to cover this transaction. In the event that a card is declined for any reason we will suspend the web site and send an e-mail with instructions for submitting a new credit card. If a new credit card is not submitted within 72 hours, the web site will be deleted without further warning.</p>]]>

</content>
</entry>
<entry>
<title>Avoiding Spam By Setting The Default Mail Address</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/archives/2004/12/avoiding_spam_b.php" />
<modified>2005-07-09T14:02:45Z</modified>
<issued>2004-12-24T12:18:39Z</issued>
<id>tag:www.small-packages.com,2004:/faq//2.17</id>
<created>2004-12-24T12:18:39Z</created>
<summary type="text/plain">Spam is an ever-increasing problem but there are some steps you can take to avoid it. When your hosting account is set up a mailbox is created with the address username@yourdomain.com*. Any mail addressed to your domain is automatically routed...</summary>
<author>
<name>ShelaghG</name>

<email>shelagh@small-packages.com</email>
</author>
<dc:subject>Email</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.small-packages.com/faq/">
<![CDATA[<p>Spam is an ever-increasing problem but there are some steps you can take to avoid it.  When your hosting account is set up a mailbox is created with the address <em><strong>username@yourdomain.com</strong></em>*.  Any mail addressed to your domain is automatically routed to this mailbox, so e-mails addressed to webmaster@yourdomain.com, anyone@yourdomain.com or ahgdgcjhg@yourdomain.com will all end up in this mailbox, this is your default mail address.  99.9% of this will be spam; spammers don't need to know your e-mail address, they just need to know your domain name.  Of course you can enable SpamAssassin which is very good at weeding out the spam but this means that your spam folder gets full very quickly.  Whilst this doesn't count against your mailbox space, it <em>does</em> count against your disk space.  If you don't clear it out very regularly you can soon end up with a spam folder that's used up all your web space.  It quickly gets tedious logging into your webspace every day and clearing hundreds of messages from your spam folder.</p>]]>
<![CDATA[<p>There's a more efficient way to get rid of spam as soon as it hits your mail box.  The first step is to set up a new mailbox which will only catch e-mail explicitly addressed to it, eg, <strong><em>yourname@yourdomain.com</em></strong>.  Any mail not addressed to this e-mail address will be routed to the default mail address.  The second step is to tell the default mail address what to do with e-mail that gets routed there. If you have already created additional e-mail accounts you can skip the first step.</p>

<p>To create a new e-mail account log into cPanel; in the <strong>E-Mail</strong> category click <strong><em>Manage Accounts</em></strong><br />
<img alt="default_mail_1.jpg" src="http://www.small-packages.com/faq/images/default_mail_1.jpg" width="199" height="213" /></p>

<p>This will take you to the <strong>Mail Account Maintenance</strong> window.  You will see a list of your e-mail accounts.  If you have already created additional e-mail accounts they will be listed here, in addition to the default mail address. (click to enlarge)<br />
<a href="http://www.small-packages.com/faq/images/default_mail_2.php" onclick="window.open('http://www.small-packages.com/faq/images/default_mail_2.php','popup','width=585,height=205,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/default_mail_2-thumb.jpg" width="200" height="70" border="0" /></a></p>

<p>Click <em><strong>Add Mail Account</strong></em> to create a new account.  This will take you to the <strong>Add Mail Account</strong> window where you can enter the details of the new e-mail account.  (click to enlarge)<br />
<a href="http://www.small-packages.com/faq/images/default_mail_3.php" onclick="window.open('http://www.small-packages.com/faq/images/default_mail_3.php','popup','width=519,height=175,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/default_mail_3-thumb.jpg" width="200" height="67" border="0" /></a></p>

<p>When you have entered the details of the account your screen will look like this (click to enlarge); click <em><strong>Create</strong></em> to create the new e-mail account.<br />
<a href="http://www.small-packages.com/faq/images/default_mail_4.php" onclick="window.open('http://www.small-packages.com/faq/images/default_mail_4.php','popup','width=557,height=175,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/default_mail_4-thumb.jpg" width="200" height="62" border="0" /></a></p>

<p>You will be told that the account has been created.  Click <em><strong>Go Back</strong></em> to return to the main <strong>Mail Account Maintenance</strong> window.  (click to enlarge)<br />
<a href="http://www.small-packages.com/faq/images/default_mail_5.php" onclick="window.open('http://www.small-packages.com/faq/images/default_mail_5.php','popup','width=583,height=139,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/default_mail_5-thumb.jpg" width="200" height="47" border="0" /></a></p>

<p>In the <strong>Mail Account Maintenance</strong> window you will see that your new account has been added to the list of e-mail accounts.     (click to enlarge)<br />
<a href="http://www.small-packages.com/faq/images/default_mail_6.php" onclick="window.open('http://www.small-packages.com/faq/images/default_mail_6.php','popup','width=771,height=221,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/default_mail_6-thumb.jpg" width="200" height="57" border="0" /></a></p>

<p>Click <em><strong>Go Back</strong></em> to return to the main cPanel window.  In the <strong>E-Mail</strong> category click <strong><em>Default Address</em></strong>.  This will take you to the <strong>Default Address Maintenance</strong> window where it will tell you what is being done with all unrouted mail.  It will say that it's being routed to <em><strong>username</strong></em>, ie, the default mailox.  Click <em><strong>Set Default Address</strong></em> (Click to enlarge)<br />
<a href="http://www.small-packages.com/faq/images/default_mail_7.php" onclick="window.open('http://www.small-packages.com/faq/images/default_mail_7.php','popup','width=433,height=145,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/default_mail_7-thumb.jpg" width="200" height="66" border="0" /></a></p>

<p>In the <strong>Default Address Maintenance</strong> window you can see it gives you a couple of suggestions on what to do with unrouted mail.  You can either send it to a "blackhole", ie, delete it, or you can "bounce" it - this option will generate a reply to the sender that the e-mail address they used doesn't exist.  If you elect to send all your unrouted mail to a blackhole the server has to download it to the server then delete it.  If you elect to bounce it the server checks the address the e-mail is being sent to and replies with a failed message before the e-mail is downloaded.  It's better to bounce it.  In the "to" box type <strong><em>:fail: no such address here</em></strong> and click the <strong><em>Change</em></strong> button.  (Click to enlarge)<br />
<a href="http://www.small-packages.com/faq/images/default_mail_81.php" onclick="window.open('http://www.small-packages.com/faq/images/default_mail_81.php','popup','width=666,height=129,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/default_mail_8-thumb.jpg" width="200" height="38" border="0" /></a></p>

<p>You will be taken to a window confirming the new action to be taken with unrouted mail (Click to enlarge)<br />
<a href="http://www.small-packages.com/faq/images/default_mail_9.php" onclick="window.open('http://www.small-packages.com/faq/images/default_mail_9.php','popup','width=535,height=122,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/default_mail_9-thumb.jpg" width="200" height="45" border="0" /></a></p>

<p>Click <em><strong>Go Back</strong></em> to return to the main <strong>Default Address Maintenance</strong> window.  You will see that unrouted mail is no longer being sent to <em><strong>username</strong></em> but <em><strong>:fail: no such address here</strong></em> (Click to enlarge)<br />
<a href="http://www.small-packages.com/faq/images/default_mail_101.php" onclick="window.open('http://www.small-packages.com/faq/images/default_mail_101.php','popup','width=252,height=110,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/default_mail_10-thumb.jpg" width="200" height="87" border="0" /></a></p>

<p>*This has changed since April 2005.  All new accounts are created with the default mail address set to <strong>:fail: no such address here</strong></p>]]>
</content>
</entry>
<entry>
<title>Logging In Using SSH</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/archives/2004/12/logging_in_usin.php" />
<modified>2005-07-09T14:02:45Z</modified>
<issued>2004-12-23T21:19:36Z</issued>
<id>tag:www.small-packages.com,2004:/faq//2.16</id>
<created>2004-12-23T21:19:36Z</created>
<summary type="text/plain">If you like to work from the command line you can log into the server via SSH. There is an SSH utility within cPanel but I find it rather slow and unpleasant to use. Putty is a great little SSH...</summary>
<author>
<name>ShelaghG</name>

<email>shelagh@small-packages.com</email>
</author>
<dc:subject>Site Management</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.small-packages.com/faq/">
<![CDATA[<p>If you like to work from the command line you can log into the server via SSH.  There is an SSH utility within cPanel but I find it rather slow and unpleasant to use.  <a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html">Putty</a> is a great little SSH client - just download the executable file, save it to your PC and you're set to go.</p>

<p>To use it open the file, enter your domain name and make sure the SSH option is clicked.  At this point you can enter a name in <strong>Saved Sessions</strong> and click Save - this will make logging into the server quicker in the future, just double-click on the name you saved and away you go.  This first time you will have to click Load.</p>

<p>This will connect to the server and you will get a warning message (click to enlarge)<br />
<a href="http://www.small-packages.com/faq/images/putty.php" onclick="window.open('http://www.small-packages.com/faq/images/putty.php','popup','width=663,height=419,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/putty-thumb.jpg" width="200" height="126" border="0" /></a><br />
Click Yes, then enter your username and password at the prompts (these are the same as your cPanel login).  You only get the warning message the first time you use Putty to connect to a domain, it will not appear in future sessions.</p>]]>

</content>
</entry>
<entry>
<title>Exporting A MySQL Database From The Command Line</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/archives/2004/12/exporting_a_mys.php" />
<modified>2005-07-09T14:02:44Z</modified>
<issued>2004-12-23T21:02:05Z</issued>
<id>tag:www.small-packages.com,2004:/faq//2.15</id>
<created>2004-12-23T21:02:05Z</created>
<summary type="text/plain">Log into the server via SSH, either through cPanel&apos;s SSH utility or a SSH client such as Putty. At the prompt type : mysqldump -h server -u username -ppassword database &gt; filename server - your MySQL server name (usually localhost)...</summary>
<author>
<name>ShelaghG</name>

<email>shelagh@small-packages.com</email>
</author>
<dc:subject>Site Management</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.small-packages.com/faq/">
<![CDATA[<p>Log into the server via SSH, either through cPanel's SSH utility or a SSH client such as <a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html">Putty</a>.  At the prompt type :<br />
<strong>mysqldump -h <em>server</em> -u <em>username</em> -p<em>password</em> <em>database</em> > <em>filename</em></strong></p>

<p><em>server</em> - your MySQL server name (usually localhost)<br />
<em>username</em> - your database username<br />
<em>password</em> - your database password (note there is no space between -p and the password)<br />
<em>database</em> - your database name<br />
<em>filename</em> - the name you want for the dump file</p>

<p>Download the file via FTP.</p>]]>

</content>
</entry>
<entry>
<title>Exporting Your MySQL Database</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/archives/2004/12/exporting_your.php" />
<modified>2005-07-09T14:02:44Z</modified>
<issued>2004-12-23T19:59:03Z</issued>
<id>tag:www.small-packages.com,2004:/faq//2.14</id>
<created>2004-12-23T19:59:03Z</created>
<summary type="text/plain">Although a full back up of your account is taken every night there may be occasions when you want to take an export of your database(s); before an MT upgrade is a good time to do one, if the upgrade...</summary>
<author>
<name>ShelaghG</name>

<email>shelagh@small-packages.com</email>
</author>
<dc:subject>Site Management</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.small-packages.com/faq/">
<![CDATA[<p>Although a full back up of your account is taken every night there may be occasions when you want to take an export of your database(s); before an MT upgrade is a good time to do one, if the upgrade goes wrong you may need to re-install MT.</p>

<p>Taking a backup of your MySQL database is easy, the only downside is it can take a while if you're on a dial-up connection and have a big database.  In the past I've had trouble trying to back up databases using Internet Explorer, for some reason it resets the connection part way through unless the database is very small, however I've had no problems downloading backups of large databases using <a href="http://www.mozilla.org/products/firefox/central.html">Firefox</a>.</p>]]>
<![CDATA[<p>The first thing you need to do is log into cPanel.  At the bottom-right there's a link to PHPMyAdmin.<br />
<img alt="db_export_1.jpg" src="http://www.small-packages.com/faq/images/db_export_1.jpg" width="191" height="96" /><br />
Click on the link and PHPMyAdmin will open in a new window.</p>

<p>On the left-hand side you will see the name of your database (if you have more than one database there will be a drop-down list.<br />
<img alt="db_export_2.jpg" src="http://www.small-packages.com/faq/images/db_export_2.jpg" width="260" height="220" /><br />
Click on the name of your database to select it.</p>

<p>When you select your database the right-hand side of the window will change.  You'll see a list of the tables on the right and a row of tabs at the top.<br />
<img alt="db_export_3.jpg" src="http://www.small-packages.com/faq/images/db_export_3.jpg" width="466" height="80" /><br />
Click on the <strong>Export</strong> tab.</p>

<p>This will load the export view on the right-hand side of the window.  You need to make the following selections :<br />
<strong>Export</strong> - underneath the list of tables click "Select All", the list of tables should turn grey.</p>

<p><strong>SQL options</strong> - in Structure the following boxes should be ticked : Add DROP TABLE, Add AUTO_INCREMENT value, Enclose table and field names with backquotes.  In Data none of the boxes should be checked.</p>

<p>Tick the <strong>save as file</strong> but DO NOT enter a file name.</p>

<p>Your screen should look like this (click to enlarge)<br />
<a href="http://www.small-packages.com/faq/images/db_export_41.php" onclick="window.open('http://www.small-packages.com/faq/images/db_export_41.php','popup','width=601,height=541,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/db_export_4-thumb.jpg" width="200" height="180" border="0" /></a></p>

<p>Finally click on the "Go" button.  A download box should open and you can select somewhere on your PC to save the file. (click to enlarge)<br />
<a href="http://www.small-packages.com/faq/images/db_export_5.php" onclick="window.open('http://www.small-packages.com/faq/images/db_export_5.php','popup','width=559,height=453,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.small-packages.com/faq/images/db_export_5-thumb.jpg" width="200" height="162" border="0" /></a></p>

<p>As you can see PHPMyAdmin assigned a perfectly sensible file name.</p>]]>
</content>
</entry>
<entry>
<title>Changing File Permissions</title>
<link rel="alternate" type="text/html" href="http://www.small-packages.com/faq/archives/2004/12/changing_file_p.php" />
<modified>2005-07-09T14:02:43Z</modified>
<issued>2004-12-23T18:30:21Z</issued>
<id>tag:www.small-packages.com,2004:/faq//2.13</id>
<created>2004-12-23T18:30:21Z</created>
<summary type="text/plain">If you log into your account via SSH you can bring up a list of files using the ls command. To see more information about the files use ls -l. This will bring up a list of files in the...</summary>
<author>
<name>ShelaghG</name>

<email>shelagh@small-packages.com</email>
</author>
<dc:subject>Site Management</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.small-packages.com/faq/">
<![CDATA[<p>If you log into your account via SSH you can bring up a list of files using the ls command. To see more information about the files use ls -l. This will bring up a list of files in the following format:<br />
-rw-r--r--   1   username groupname   13987 May 5 22:58 filename</p>

<p>The first part, <strong>-rw-r--r--</strong> tells you if it's a file or a directory and what permissions exist. The first character is usually "-"(meaning it's a file) or "d" (it's a directory). Occasionally you will see "l" or "s" which denotes a linked directory or a symbolic link. The next 9 characters indicate the permissions, r=read, w=write, x=executable. These permissions are assigned to user (the owner of the file), group (the group the user belongs to) and other (anybody else). Just to make things more confusing permissions also have numerical values assigned to them:<br />
Read=r=4<br />
Write=w=2<br />
Executable=x=1</p>]]>
<![CDATA[<p>The command used to change file permissions is <strong>chmod</strong>. Depending how extensively you want to change the permissions there are 2 ways to use the command. The first way is:<br />
<em><strong>chmod ugo+rwx filename</strong></em> or <em><strong>chmod ugo-rwx filename</strong></em></p>

<p>This is more useful if you just want to tweak the permissions. "<strong>ugo</strong>" refers to user, group, other - in other words <strong>who</strong> you want to assign the permisions to. You do not have to use all 3. "<strong>rwx</strong>" indicates the permissions you want to assign. Again, you do not have to use all 3 which is why using the chmod command this way is so useful for teaking file permissions. Use + to give permissions and use - to take them away.</p>

<p>For example if you realise you've assigned write permissions to everybody and only the user should have write permissions (otherwise anybody can update your file!) use the command:<br />
<em><strong>chmod go-w filename</strong></em></p>

<p>The second way to use the chmod command is by assigning permissions using numerical values. You need to specify a 3 digit number. The first digit is the user's permissions, the 2 digit is the group permissions and the 3rd digit is everyone else's permissions. You need to add together the read, write and executable values to arrive at each digit (see above for these values). You would use the command like this:<br />
<em><strong>chmod 755 filename</strong></em></p>

<p>755 is the value commonly assigned to cgi scripts. The user has full permissions (denoted by the 7). Both the group and other permissions are set to 5, ie, read and executable.</p>

<p>Many ftp packages allow you to change file permissions. You can also change via the Cpanel interface.</p>]]>
</content>
</entry>

</feed>