Troubleshooting: issue with subdomains i Cpanel


all subdomains under this account seem ok to me in dns zone but they don't resolve

exemple: but all others as well

What should be dns settings for subdomains under VPS if it's not what's there then please


Robert S.

Posted On: 14 Aug 2008 06:18 AM


actually is opening fine when tested from several locations and ISP's, but is opening directory listing of folder:


since you don't have any website or index files in there.

It is likely not yet resolving for you because your ISP does not recognize the subdomain yet (it doesn't have it yet in its DNS cache), but once it propagates fully it should be visible.

Please let us know if you need any further assistance.

Robert S.

HostForWeb Support


Posted On: 14 Aug 2008 06:53 AM


actually looks like I misplaced the problem:

actually it looks like the files have been replaced by empty folders...

all files with .php are now folders containing a cgi folder...

I'm not sure how that happened but I hope you can tell me.

also maybe we'd need to load a backup for this website please



Posted On: 14 Aug 2008 06:56 AM


by upload backup I mean backup from reseller reggaegu (IP

backup 1 month old'd be fine if you got one please


Robert S.

Posted On: 14 Aug 2008 07:00 AM


I'm not sure I quite understand you, you wan't us to restore main reseller account from backup, or just this account?

Please advise.

Robert S.

HostForWeb Support


Posted On: 14 Aug 2008 07:09 AM

yes please because it looks like the files are corrupt here...: you tell me:

in many folders the .php files are not files anymore. They are now folders. This is why i thought that subdomains were wrong... actually the file themselves now show an folder with the same name... rather than the file

So I think we should reload backup

also if you know why this happened, please tell me


To: Best hosting support

Posted On: 14 Aug 2008 07:31 AM


you did not answer to my question entirely, do you want only restored?

As for how this happened, it happened because when you created the subdomains in cPanel you set the document root paths for those subdomains incorrectly, for example for subdomain you have set document root path to:


You cant set document root path to a filename, only to a folder where that subdomain files are. Tthis should have been set to for example:


And than in folder japan you would have index.html or whatever index page for this subdomain.

So once you set the document root path to a file name cPanel basically created the folder with that filename and by that it owerwrote the actual file there.

Robert S.

HostForWeb Support


Posted On: 14 Aug 2008 07:45 AM


yes, only bookhostelbook

but then are subdomains going to work again? i guess not... how come it was working before though?

Should i rename all these files in these folders and re-make all subdomains?


Robert S.

Posted On: 14 Aug 2008 08:09 AM


yes it would be wise to remove all subdomains and than recreate them properly so their document root's are pointing to a folder not to a file.

However as I can see you don't have backups enabled on your server so we can't restore the account, however we can restore particular folder or files from full server backup that we have for your server, and we have following:

Aug 9 09:32

Aug 13 11:36

So we could restore only folder /public_html/country_info/asia/ from one of these 2 full VPS backup archives.

Please advise if we can go ahead with this and from which backup archive you would like this restored if so.

Robert S.

HostForWeb Support

This website uses Cookies