前两天收到Bluehost的来信,说我账户下面的文件数超过50,000了,如果不处理会将账户冻结。
前两天收到Bluehost的来信,说我账户下面的文件数超过50,000了,如果不处理会将账户冻结。
来信吓得我一跳,我所有的站都放在BlueHost上面。看了一下,drupa的站一个就差不多5k左右的文件数,我上面有几个drupal的站。Dokuwiki的站一个也有6k,主要是缓存文件和索引文件。这样很容易就超过了bluehost 50k的文件数限制。
只好把之前分开的drupal站又合并到一块,发现文件数少了一些,但是还是超过了50K。只好一个一个文件夹去看,哪个文件夹文件多,就想办法把它archive起来。
发现drupal的module暂了不少,sites/all/module下面的文件数有3k,想到了把所有drupal站的module放到一块,然后做一些链接,这样就搞定了。
Linux查看文件数方法:
du -a | wc
BlueHost的文件数限制警告信:
Dear Donghua:
It has come to our attention that your site is using an excessive number of files stored on your BlueHost.Com account. This is causing performance problems on your website as well as for other customers that are on this server. It can cause our servers to crash and cause additional downtime.
Our research shows that server performance degrades when accounts have over 50,000 files. In order to ensure optimal performance for your account and the others in your shared hosting environment, we request that you reduce the number of files on your account to under 50,000 in 14 days.
Your account information:
File Count: 205261Top 10 Largest Folders:
/home3/gudonghu/****** 10652
/home3/gudonghu/******
We do understand that these files may have been created without your knowledge. There are programs/scripts that will create files automatically unless you change the settings. The following are some suggestions to help you in this process:
Spam E-mail: If you have set up Box Trapper or Spam Assassin, you will need to log into your cPanel account and go to the Spam Assassin icon. In here you will see a Clear Spam Box button, please click on this button to empty out the spam folders.
Caching: Some programs will use caching to speed up the loading of a page. If not properly maintained, these cache folders can grow very large. Please refer to the knowledgebase or help files for your individual program for instructions on how to clear these files.
Log Files: Log files for most programs are stored in the root of your account in the tmp folder. You should review and clear these off the server periodically.
After removing some files you may request a rescan of the account. Please see the following tutorial on viewing the updated file count:
http://tutorials.bluehost.com/
filecount/ If you need assistance with removing these files or to help troubleshoot the reason for this problem we will be happy to assist you in this process.
Per conditions stated in the Terms of Service, this issue needs to be resolved:
http://www.bluehost.com/cgi/
terms
7.02. BlueHost.Com employs complex mechanisms to protect its Subscribers and systems from abuse. BlueHost.Com’s offering of "unlimited" services is not intended to allow the actions of a single or few Subscribers to unfairly or adversely impact the experience of other Subscribers. … However, in order to ensure a consistent and quality experience for all Subscribers, BlueHost.Com does place automated safeguards to protect against any one site growing too quickly and adversely impacting the system until BlueHost.Com can evaluate said sites resource needs.We offer unlimited space, bandwidth, and domains, but not in an unlimited number of files. We cannot maintain our internal backups for sites that host more than 50,000 files. The reason this is important, is that even though we do not guarantee backups for your account in any way, we still attempt to maintain a backup of your account. If there were a server failure, we would need to restore your account to get your sites back online. Without these backups, you would be required to restore your own account from the backups that you maintain. For this reason we are asking you to reduce the number of files on your account.
11.02. Backups. For its own operational efficiencies and purposes, BlueHost.Com from time to time backs up data on its servers, but is under no obligation or duty to Subscriber to do so under these Terms. IT IS SOLELY SUBSCRIBER’S DUTY AND RESPONSIBILITY TO BACKUP SUBSCRIBER’S FILES AND DATA ON BLUEHOST.COM SERVERS, AND under no circumstance will BlueHost.Com be liable to anyone FOR DAMAGES OF ANY KIND under any legal theory for loss of Subscriber FILES AND/or data on any BlueHost.Com server.
Proper maintenance of your account will ensure the best performance for your website. If you are unable to comply with these requests your account will be automatically deactivated in 14 days to maintain proper server performance. Thank you for your help in resolving this issue.
Terms of Service Compliance Department
1958 South 950 East
Provo, UT 84606
Phone line: (888) 401-HOST Option 5 | Fax line: 801-765-1992