Recently in WebHosting Category

正式启用HostUS

| No Comments

目前使用的12$/年的美国机房VPS方案,参考链接:12$/年VPS,还是非常划算的。

对比之前几年一直使用的FastDomain价格:一次购买3年,每个月要7$,域名每年15$,3年就要近300$,以前真是太不懂得打算直接续费了2次,现在想来确实好贵。

本来这次也是快要到FastDomain的续期时间了,但因为还是想弄个VPS,所以先是测试HostUS在香港的机房,在公司的网络下延迟只有5ms左右,爽歪歪,回到家才发现真的要绕行美国兜一大圈,而且价格还比美国机房的VPS贵一倍,果断退款,重新购买了美国机房的VPS。

购买后,完成了nginx/mysql/php/perl/mt/wp/pptp/openvpn/ss的搭建,基本把想玩的都玩了,还算挺顺利。

最后再把FastDomain上的2个域名也都迁移了过来,但设置DNS居然还闹出一出笑话:

我在HostUS的管理后台傻傻的设置了它帮助文档中提到的Nameserver,结果3天了也没生效,发起一个ticket后人家告诉我HoustUS根本不提供DNS服务,只好立即在DNSPod注册登记,然后在HostUS设置了免费的DNSPod的DNS服务器,1个小时后就生效,效果杠杠的。

--EOF--

FastDomain修改Primary Domain

| No Comments
几年前的春节值班,无聊之下在now.cn注册了guduo.net,而后好久才又到FastDomain成功注册和购买主机空间,再后来就是把guduo.net迁移到FastDomain。

一直以来,Primary Domain都是yimutian.net,guduo.net是作为Addon Domain来管理。但几年下来,都是使用的guduo.net的域名,yimutian.net的域名没有使用,暂时也没有继续使用的计划,所以也就想把guduo.net作为Primary Domain进行管理了。

通过查询FastDomain的帮助文档,很方便的找到了相关信息:
How to change the Primary Domain

https://my.fastdomain.com/cgi/help/345

What to do before renaming your account

  1. The rename Process normally takes from 20 minutes to 5 hours, depending on the size of the account.

  2. The domain you are changing to must be associated with the account first.

  3. The current main domain can never become the main domain again.

  4. The current account's username, password, files, databases and e-mails will remain unchanged.

  5. The new primary domain will point to the public_html directory itself, the same way the main domain does currently.

  6. The website files may need to be moved into the public_html directory and out of the public_html directory, to correspond with the new primary domain and assignment of the old primary domain to a subfolder. 
    Please note that this will be your responsibility to do, and may cause some site files, scripts or other applications to break, requiring modification to work with the new site location.

  7. Custom DNS entries will be deleted for both domains involved in this change and will need to be recreated after the rename is complete.

  8. If you have an SSL certificate, please note it will only work for the main domain; if the SSL was purchased through our cPanel, it will automatically be revoked for the original domain, and re-assigned to the new primary domain. 
    Note: This most often will only take a few minutes, but could take up to a few hours.

  9. Although renaming an account should not move or delete any files on the account, we do recommend creating/downloading a backup of all files and databases prior to requesting the rename. Please Click Here for information about creating and downloading backups.

  10. The new primary domain must be registered to you. If needed, you may register new domains for $13.99 each, per year, via the Domain Manager in the cPanel.

修改之后呢,之前用子目录管理的guduo.net没法访问了,再找资料:
How to host the Primary Domain from a subfolder (.htaccess)
https://my.fastdomain.com/cgi/help/347

You will want to insert the following code block and make modifications as noted in the (#) comments. You will need to change the two instances of example.com to your domain, and the three instances of subdirectory to the folder where you want your site.

# FastDomain.com
# .htaccess main domain to subdirectory redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.
# Do not change this line.
RewriteEngine on
# Change example.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/subdirectory/
# Don't change these line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteRule ^(.*)$ /subdirectory/$1
# Change example.com to be your main domain again.
# Change 'subdirectory' to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteRule ^(/)?$ subdirectory/index.html [L]

Visitors to your Web site will not be able to tell that your main domain is using a subdirectory, they will still see the Web site address as http://www.example.com/page.html.

Note: This will not work with some website software. You will also need to modify the $base_url$live_site or other configuration settings in those to finish the process.


原来是通过.htaccess来做Rewrite

后面的事情,那就是重新好好维护这个域名和空间了。

最近一直有弄一个VPS的冲动,忍住!

http://www.ramhost.us/?page=virtual-dedicated-server

--EOF--

SSH帐号恢复,备份升级完成

| No Comments
1.FastDomain的工作人员的效率还是非常高,提交Ticket之后几分钟就收到了QQ Mail中的回信。
2.备份,升级过程非常顺利,实际只是升级MT的Professional Pack。
3.简单修改了一下模板,将评论部分去掉了。
4.针对类目的模版页,本来想修改一下,将默认的最近10个Post扩大一下,但发现这个和首页好像也是使用同一个变量,还是算了。

--EOF--

FastDomain shell帐号被无故关闭

| No Comments
好久没ssh进去了,今天准备做数据备份和做MT5.04 升级却发现无法登录,相关信息如下:

Your shell account is NOT enabled.

Please FAX the following message to +1 (801) 765-1992:

=====================================================
From: xxx@xxx.com
Subject: ENABLE SHELL xxx@guduo.net

+-------------------------+
|                         |
|                         |
|   BLOW UP OF PHOTO ID   |
|                         |
|                         |
+-------------------------+


Or, submit a ticket to our helpdesk at:
http://helpdesk.fastdomain.com/

Or scan and send your PHOTO ID as an email attachment.

现在都感觉有些担心了?为啥需要我提供这个信息?

不过比较奇怪的一点是,plink居然还是可以正常访问做ssh tunnel的。

--EOF--

最初记录这个Blog的时候还没完全用上Google Reader,导致有部分Blog没有收入,刚才特意改了一下模板,放大RSS到最大500条,不知道是否会更新呢?我要试试,如果不更新的话,我是否可以通过刷新最老的几十篇Blog来强制它更新呢?

墨西哥 vs 南非 1:1

--EOF--

升级到MT 5.01

| No Comments

参考了一下:

http://www.movabletype.org/documentation/installation/install-movable-type-via-ssh.html

当然还有这里的升级过程

发布来测试一把。

--EOF--

和FastDomain的多个客服线上确认,即使购买了Dedicated IP,也无法更改SSHD的访问端口,而对于我来说,这个东西实际上还是很重要的。

但经过前几天的一些探索,有了另外一个想法,直接使用ssh提供的Port Forward功能或许可以达到类似的效果,前提当然是能让我绑定很多其它端口了:)

 

https://www.fastdomain.com/cgi/dedicated_ip

 

What is a Dedicated IP Address?
An IP address is a number like 234.123.66.7 that identifies the unique server where your website can be found. In shared hosting, you share the same IP address as other web sites on your server. By upgrading to a Dedicated IP address, you can enable your site for e-commerce and other advanced capabilities, and minimize the risk of being impacted by other sites on your shared server.


Top Reasons to get a Dedicated IP:
So you can enable SSL on your web site - SSL Certificates are crucial if you have a business oriented website, especially if you want to accept secure transactions like credit card payments or sending personal information through your site. Secure SSL Certificates require your site to have a Dedicated IP in order to work.
Ability to run more software on your server - Certain programs require a dedicated IP address before they can be setup and used. With a dedicated IP you will have more options on the type of scripts you can run.
Ability to open non-standard ports - Purchasing a dedicated IP will allow us to grant you access to additional ports you may need to run special services on that are blocked for shared IPs.
So you won't be negatively impacted by the actions of others - On a shared IP, if someone else sharing your same IP happens to get blocked by IP or censored, as some countries or ISPs sometimes do. Their IP (and yours) could get banned or blacklisted, causing problems for your web site or search engine rankings.
Your website may perform better in the search engines - Although difficult to prove, many people believe that sites with a dedicated IP address rank better in the search engine results than those utilizing shared IP addresses.
You can view your web site by typing its IP address - This is handy for situations where you want to access your site, but your domain name is inaccessible, such as during domain name propagation periods.

Only $2.50 per month ($30.00 per year)*

--EOF--

VPS vs Dedicated IP Address(ssh)

| No Comments

最新IP列表:

inet addr:74.220.199.22  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:70.40.192.43  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.52  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:74.220.199.100  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.107  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.113  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.123  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.180  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.185  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.200  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.209  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.231  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.246  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.249  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.55  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.56  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.74  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.75  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.81  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.87  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.99  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:70.40.192.91  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.112  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.158  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.193.241  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.193.79  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.193.157  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.53  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.181  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.193.226  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.82  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.59  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:74.220.199.76  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:70.40.193.95  Bcast:70.40.193.255  Mask:255.255.254.0

 

FastDomain提供的Decicated IP 2.5$/Month。

 

看看现在VPS的价格:

Xen 6$/Mon

rashost 68¥/Mon

不过目前来说FastDomain的服务我基本够用,在SD还在正常提供服务的情况下~

linode是另外一个VPS,价格稍贵。

 

--EOF--

升级到MT 4.25 Pro

| No Comments

升级:

1)备份mysql db

mysqldump -uxx -p xx_mtblog > mtlbog.dump.20090321

2)mt系统备份

    Tools->Backup

3)整个目录打包备份

    tar zcvf guduo.net.20090320.tgz ..../guduo.net/*/  --exclude "...guduo.net/awstats/*"   --exclude ".../guduo.net/digest/*"

4)备份mt源文件

     mv  guduo.net/cgi-bin/mt guduo.net/cgi-bin/mt_backup

     mv guduo.net/mt-static  guduo.net/mt-static_backup

     mkdir guduo.net/cgi-bin/mt

5)tar zxvf MT-4.25-en.tar.gz

6)mv MT-4.25-en/mt-static  guduo.net/mt-static

     mv MT-4.25-en/*  guduo.net/cgi-bin/mt

7)cp guduo.net/cgi-bin/mt_backup/mt-config.cgi  guduo.net/cgi-bin/mt/mt-config.cgi


 

--EOF--

主机上最新的IP列表

| No Comments

new:

inet addr:74.220.199.22  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:70.40.192.43  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.52  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:74.220.199.100  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.107  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.113  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.123  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.130  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.180  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.185  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.190  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.200  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.209  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.231  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.240  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.246  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.249  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.55  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.56  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.57  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.73  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.74  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.75  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.76  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.81  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.84  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.87  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:74.220.199.99  Bcast:74.220.199.255  Mask:255.255.255.0
inet addr:70.40.192.91  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.112  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.158  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.193.241  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.193.79  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.193.157  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.53  Bcast:70.40.193.255  Mask:255.255.254.0
inet addr:70.40.192.181  Bcast:70.40.193.255  Mask:255.255.254.0

 

old:

inet addr:74.220.199.22
inet addr:70.40.192.43 
inet addr:70.40.192.52 
inet addr:74.220.199.100
inet addr:74.220.199.107
inet addr:74.220.199.113
inet addr:74.220.199.123
inet addr:74.220.199.130
inet addr:74.220.199.180
inet addr:74.220.199.185
inet addr:74.220.199.190
inet addr:74.220.199.200
inet addr:74.220.199.209
inet addr:74.220.199.215
inet addr:74.220.199.231
inet addr:74.220.199.240
inet addr:74.220.199.246
inet addr:74.220.199.249
inet addr:74.220.199.55
inet addr:74.220.199.56
inet addr:74.220.199.57
inet addr:74.220.199.73
inet addr:74.220.199.74
inet addr:74.220.199.75
inet addr:74.220.199.76
inet addr:74.220.199.81
inet addr:74.220.199.84
inet addr:74.220.199.87
inet addr:74.220.199.99
inet addr:70.40.193.232
inet addr:70.40.192.91 
inet addr:70.40.192.112
inet addr:70.40.192.158
inet addr:70.40.193.241
inet addr:70.40.193.79 

 

--EOF--

Pages

June 2016

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

About this Archive

This page is an archive of recent entries in the WebHosting category.

Tech is the previous category.

Find recent content on the main index or look in the archives to find all content.