PDA

View Full Version : Random HTML Script: using with other domains


Ann
04-02-2004, 11:15 AM
I am successfully using the Random HTML Script that comes prepackaged with my Control Panel on my main site. I would also like to use it with my other sites (add-on domains) that are hosted with my main site. I.e., Let's say my main site is mybigdomain.com and one of my subsites is mytinydomain.com. Mytinydomain.com is actually a folder or subdomain in mybigdomain.com (mybigdomain.com/mytinydomain), but it functions just like a regular domain account.

Since the code I insert for the random html on mybigdomain.com is (I've added some spaces here so we won't get something weird happening):

< ! - - # exec cmd = " cgi-bin/randhtml.cgi" - - >

then what would it be for tinydomain.com? Or am I not able to do this? I asked some people and they said I would need to know the path to CGI...and it would be something like /home/mybigdomain/public_html/cgi or something. I tried that and it didn't work.

Is this possible to do?

Gade Terbob
04-03-2004, 09:45 AM
Path to cgi==

subdomain-account-name/public_html/cgi-bin

All of my subdomains have their own cgi.

But don't all of your subdomains have a cpanel? Can't you just install script from subdomain's cpanel?

edited to correct spelling.

Ann
04-03-2004, 11:25 AM
So what you're saying in
subdomain-account-name/public_html/cgi-bin

would be
mytinydomain/public_html/cgi-bin

(does not include the .com after mytinydomain)

So I would use:

! - - # exec cmd = " mytinydomain/public_html/cgi-bin/randhtml.cgi" - - >

?

I tried that and it didn't work.

To answer your question regarding whether my subdomains (which don't function as subdomains, i.e., I don't access them as mytinydomain.mybigdomain.com) have cgi-bins, yes they do. But if they have a cpanel for each of them, I am not aware of it or know how to access it.

I tried http://www.mytinydomain.com:2082/frontend/x2/index.html

and got what appeared to be the same settings as the cpanel for my main domain.

Gade Terbob
04-03-2004, 12:34 PM
A subdomain (I think) would look like this:
subdomain.domain.com
is the same as:
username/public_html/subdomain

In it's simplest form a subdomain is nothing but a sub folder.

I think that if you've created an account, then WHM creates all necessary resources like cgi-bin.

If you only created a subfolder and access it via http, then you lose the ability to manage that subdomain's resources. The subdomain will share equally with the storage and b/w of the host domain. It also adds somewhat complexity to statistics.

The cpanel for an account you've created is accessed via:
http://www.subdomain.domain.com:2082
or
http://ipaddress:2082/

When using either of the above, you must login using the subdomain's account name and password.

Edited to add:
I suspect that everyone here knows more than I, so feel free to jump in and correct me.

Ann
04-03-2004, 12:45 PM
This is all really confusing to me.

when I go to http://www.mytinydomain.mybigdomain.com:2082, it doesn't work. When I take out the www., it asks for my account name & pw, and the only thing it recognizes is my acct name and pw for my main account. I don't think I even have a separate account name/pw for my subdomains.

I know I have a cgi-bin in my subdomain, but it doesn't have anything in it.

Is there a way to use the random html script in there, for example, uploading it, without using the cpanel to instal it, which it looks like I can't do?

Gade Terbob
04-03-2004, 12:52 PM
Start WHM.
Select "List Accounts"

You should be able to find the account name you've associated with the subdomain.

IF there is no account for that subdomain, then you know you'll need to get to the cgi-bin under username/public_html/cgi-bin.

IF it has an account name, then use that accounts cpanel.

Someone who knows more than I, should feel real free to jump in here....

Ann
04-03-2004, 03:37 PM
Start WHM.
Select "List Accounts"

You should be able to find the account name you've associated with the subdomain.

IF there is no account for that subdomain, then you know you'll need to get to the cgi-bin under username/public_html/cgi-bin.

IF it has an account name, then use that accounts cpanel.

Someone who knows more than I, should feel real free to jump in here....

I'm not sure what WHM is? Web Hosting Manager (just a guess) Is it associated with web hosting accounts? See, that's the thing...I don't have a web hosting account since I'm not a pro web hoster...just a regular account.

BUT I figured out how to do it anyway with some help on a different forum. Through my cpanel using File Manager, I copied the .randhtml file from mybigdomain.com to my subfolder, mytinydomain.com. I then did the same with the randhtml.cgi file, copying it from bigdomain's cgibin to tinydomain's cgi bin.

Seems to work fine!

Gade Terbob
04-03-2004, 03:56 PM
Seems to work fine!

Good for you! :D :D

Sorry for the confusion I caused.