Archive for October, 2009

Limit Number Of Emails Per Hour Per Account

Friday, October 30th, 2009

As you know, you can limit the number of emails any account can send, per hour, in WHM. Just click Tweak Settins, below Server Configuration. But, how do you assign a different value for an individual account, different fro the value assigned to everyother account? You might want to give a certain account a greater limit. Or even restrict that account’s hability to send emails.

SSH to your server. And open the file /var/cpanel/maxemails. Then just add the code:

domain.com=100

This value will override the default value for this domain. So, if you assigned a 2000 limit in Tweak Settings, domain.com would have a limit of 100.

Moniker TRAFFIC New York auction

Thursday, October 29th, 2009

Moniker just held a domain auction and the top 20 sellers were:

  1. multivitamins.com, sold for $45,000
  2. originals.com, sold for $37,500
  3. raspberry.com. sold for $27,500
  4. istream.com, sold for $25,000
  5. trademarklawyers.com, sold for $24,000
  6. hockey.org, sold for $22,500
  7. costumerentals.com, sold for $21,000
  8. designersunglasses.com, sold for $21,000
  9. i.biz, sold for $17,000
  10. newyorkers.com, sold for $14,500
  11. tested.com, sold for $12,000
  12. lnn.com, sold for $11,000
  13. cuffs.com, sold for $9,500
  14. skilodge.com, sold for $9,500
  15. ustrademarks.com, sold for $9,000
  16. tenniscamp.com, sold for $8,000
  17. organic.info, sold for $7,700
  18. recipebooks.com, sold for $7,500
  19. collectiblecoins.com, sold for $7,000
  20. ny.biz, sold for $7,000

Domains can be a very good investment.

Missing Images In Oscommerce

Thursday, October 29th, 2009

Is your oscommerce script not displaying images? You access your site and every image is missing. And you’re not using a ssl certificate. Try this:

Do you know how to access your script’s files? You can do that with an ftp client, ssh client or through a file manager in your hosting control panel. Find both configuration files. You will find one of the configuration files in includes/ and the other in admin/includes/

Open it. There’s a variable for the https url. Just put the same value that’s in your http url. That will probably fix your image issue.

Unlimited Disk Space

Thursday, October 29th, 2009

Sometimes, you list accounts in WHM and the disk limit of each account is unlimited. That’s obviously a problem, because you wont be able to limit disk space usage. The fix is normally an easy fix. Just login to your server with ssh and run this command

/scripts/fixquotas

Usually this script will fix this problem.

/usr Partition Full

Thursday, October 29th, 2009

Is your /usr partition full? Or almost full? That could be a problem. Here’s a way to fix it.

Run:

cd /usr/local/apache/logs/

List the contents of that directory with ll. Are there any big files? Empty those files. Here’s an example. If you want to empty error_log for example, just run:

echo > error_log

You can repeat this procedure in /usr/local/cpanel/logs/. Just empty any large files.

Then go to /usr/local/apache/domlogs/. And list the biggest 10 or 20 files. For the top 10, run:

ls -al -SR | head -10 —>

Are there any big files? Running awstats for that domain should clear the file. Just run:

/scripts/runweblogs user

Login to WHM. Check if log rotation is active for apache and cpanel logs. For apache, click Service Configuration -> Apache Configuration -> Log Rotation. For cpanel, click Service Configuration -> cPanel Log Rotation Configuration.

Domain Iframe Redirect

Thursday, October 29th, 2009

Do you want to point your domain to a different domain, but in such a way that your domain appears always in the address bar of the visitor’s browser?

This is very useful when someone wants to point a domain to a free hosted application. Example: you build a website in a free hosting service or a free website builder service. And the website is hosted in a subdomain of that free service. And you don’t want your visitors to access that subdomain. You want them to access your domain instead.

It only applies if you have a hosting service. If you don’t, ask your domain registrar to point the domain to whatever url you want the domain to point to. Ask them to add a mask to the domain forward, so that the your domain remains always in the visitor’s address bar. In case you do have a hosting account, here’s how you can do that redirection. It’s called a Domain Iframe Redirect.

Upload an index.html with this code:

<html>

<head>
<title>Replace with title visitors will see if browser doesn't support javascript</title>
<script type="text/javascript">
function changeTitle()
   {
   if (top.frames['main'].document.title)
      {
      top.document.title=top.frames['main'].document.title;
      }
   }
</script>
</head>

<frameset>
<frame name="main" src="http://replace-this-url.destination-domain.com"scrolling="auto" target="main" ONLOAD="changeTitle();">

<noframes>

<body>
Please enable iframe support in your browser to access this website.
</body>

</noframes>

</frameset>

</html>

Read the comments in the code. Replace what needs to be replaced. And you’re ready to go!

Empty MySQL Backup – 20 bytes

Thursday, October 29th, 2009

If you login to cpanel, download a mysql backup and the backup is empty, try this:

Go to your home directory. You can use cpanel’s File Manager. Or you can access your home directory through ftp. Find a file called my.cnf. Rename it to my.cnf.backup.

What will happen? You probably changed your cpanel password. The new password was not updated in my.cnf. By deleting this file, the next time you login to cpanel, it will have to recreate it with your new password. And that will solve your mysql backup problem.

The mysql backup process uses that file to access the mysql databases. If the password is incorrect, the cpanel process will be denied access to those databases. You will not see any error, because it’s not logged in your cpanel interface. But you will get an empty database backup instead.