关于HostMonster外部域名指向说明

用户常遇到如下问题:
问题1:
假设HM主域名为A.com
外部域名B.cn
已将B.cn作为附加域,将B.cn指向到A.com的任何目录都无法访问。

B.cn也已指向到HM的IP。
请问如何解决?

问题2:
开始在HM主域名下添加了BBS、BLOG两个子域,为何public_html下会有
bbs
bbs.A
bbs.A.com
blog
blog.a
BBS三个,blog没有blog.A.com
不知道来什么会生成三个目录?

一般来说addon之后做好解析就可以使用了。如果出现上述情况,你可以查看设置是否有问题,重设一下,如果重设后不行,ping一下域名的解析的ip看看是否正确,假如ip正确了,但访问的时候是HostMonster默认的页面,那可能是你开通的时候的默认页面没有删除,你联系客服问问看。

HostMonster中打开SSH新方法

首先,打开以下页面
http://helpdesk.hostmonster.com/kb/index.php?x=&mod_id=4

之后你会看到类似下面这个页面

Main Menu
Home
Open a Ticket
My Ticket History
Browse Knowledgebase
My Account
Keyword Search
Search Knowledgebase:
  
(Enter keywords separated by a space. For example: product warranty information)
Logged In
 
Open a Ticket
Choose Destination:
A RECORD/MX/CNAME
Affiliates
Billing
CPU Exceeded Errors
Control Panel Issues

向下找,看到OTHER,然后点。进入下面这个页面

Open a Ticket in ‘Other’
* = Required Field
IP: 192.168.0.1
E-mail Address*:  
Full Name*:  
 
Domain*:  
 
Subject*:  
Body*:  
 

email:你的电子信箱
full name:你的全名
domain:你的域名
subject: 填入“about ssh”
body: 填入“i want to enable ssh on my account”
然后点“send ticket”  之后进入下面的界面

接着它会提示你先看看知识库和FAQ,实在找不到再提交TICKET
Before you send your ticket, we have compared your request with the articles in our knowledgebase. Please review the articles provided in order to help you with your request.

If none of these articles help you, you may proceed by clicking “Send Ticket” below.

不用管,点旁边那个“send ticket”进入下面的界面

Add File Attachment(s)
If you would like to attach files to your ticket, please click the buttons labled “Choose File” before sending your ticket.
 
File attachment #1:
File attachment #2:

先点浏览,然后上传你的证件照片。必须是有照片的,然后点send ticket

之后就是等待了,大概24小时之内就会有回复。祝大家使用愉快。

HostMonster中新建数据库

登录控制面板
点击MySQL® Databases进入mySQL管理界面
在New Database:中填入数据库名称,然后点击Create DataBase新建一个数据库
返回信息
Database Created
Added the database ceshi.
说明数据库建好.
然后在Username: 填写数据库用户名 Password:填写密码,点击Create user建立一个数据库用户
最后在数据库管理界面找到Add Users To Your Databases:
在左侧user选折你新建立的用户名,右侧Database选折刚建立的数据库,权限钩选ALL,然后点击Add User to Database将用户添加到对应的数据库中.
返回信息:
Account added to Access List
Added the user lunar_ceshi to the database lunar_ceshi.
说明用户名已经添加到了数据库中
这样一个数据库就建立好了,可以使用了.
在程序中填写数据库信息时需要注意一点,数据库名称和数据库用户并不是你建立时填写的,而是加一个前缀.例如在这个例子中我们用的数据库名是ceshi,用户名是ceshi,那么实际的名称应该分别是usename_ceshi,usename_ceshi,其中usename就是你在lunarpages的主机帐户名称.数据库服务器是localhost.
建好的数据库信息可以在数据库管理界面看到,类似这样的信息:
Current Databases:
lunar_ceshi
Users in ceshi
    lunar_ceshi (Privileges: ALL PRIVILEGES)

        Connection Strings
        Perl        $dbh = DBI->connect(“DBI:mysql:lunar_ceshi:localhost”,”lunar_ceshi”,”<ASSWORD HERE>”);
        PHP        $dbh=mysql_connect (“localhost”, “lunar_ceshi”, “<ASSWORD HERE>”) or die (‘I cannot connect to the database because: ‘ . mysql_error());
        mysql_select_db (“lunar_ceshi”);
信息里面给出了数据库名称lunar_ceshi,用户名 lunar_ceshi ,下面的Connection Strings是告诉你在perl和PHP中如何连接数据库的连接字串,不用去管它.

Hostmonster主机从哪里获得IP和用户名?

Hostmonster最近发出的帐户邮件都没有IP和用户名,只有域名和密码,如何获得主机的IP和用户名呢?

首先登陆hostmonster网站 www.hostmonster.com 在右上角可以通过你的域名和密码登陆主机帐户,进入以后点击进入Cpanel
在cpanel的左侧有一项:Shared Ip Address 显示的就是你的主机的IP

然后进入FTP Account,Directory 项对应/的FTP用户就是你的cpanel用户,也就是主FTP帐号。主FTP帐号与其他帐号的区别在于,主FTP帐号就是一串字母或者数字,没有类似@hostmonsterdemo.com的后缀