Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 05-13-2007, 05:10 PM
php_dev php_dev is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 19
Default Subdomains And 2° site

Hi all,
i have just buyed another domain and i want to setup this domain to have subdomains as well. I have done this with cp and the root of the new domain www.newsite.com work fine. But when i try to see test.newsite.com i get the index of/ page (but with no files or folders except the cgi folder). If i try to see test.newsite.com/index.php i get a 404 error page. What i can do?
Reply With Quote
  #2  
Old 05-13-2007, 05:48 PM
bzoeller bzoeller is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 9
Default Re: Subdomains And 2° site

Quote:
Originally Posted by php_dev View Post
Hi all,
i have just buyed another domain and i want to setup this domain to have subdomains as well. I have done this with cp and the root of the new domain www.newsite.com work fine. But when i try to see test.newsite.com i get the index of/ page (but with no files or folders except the cgi folder). If i try to see test.newsite.com/index.php i get a 404 error page. What i can do?
whats the problem?

each subdomain is it's own separate domain. they each have their own folder of files..
test.domain.com doesn't point to the same folder as www.domain.com
Reply With Quote
  #3  
Old 05-13-2007, 05:51 PM
riostyles riostyles is offline
Royal Croc
 
Join Date: Jan 2006
Location: Rio de Janeiro, Brazil
Posts: 764
Default Re: Subdomains And 2° site

apparently you don't have any index.xxx or equivalent in your folder having the subdomain name (Here test)
Reply With Quote
  #4  
Old 05-13-2007, 06:18 PM
php_dev php_dev is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 19
Default Re: Subdomains And 2° site

Thank for the fast reply,
yes i have a file index.php in each subdomains and when i go to sub.domain.com/index.php i get a 404 error page. And i have many folders whithin subdomains but when i try to see sub.domain.com/ i get a index of/page (and i can't see files and folders but only the folder named cgi).
P.s: when i go to www.domain.com/sub/ it work fine.
edit: when i have setup the new subdomain under the new domain a new folder has been setup under the root of the main site. And so the folder sub/ ( that is a subdomain of the second site) has been created under the first site and under the second site.

Last edited by php_dev; 05-13-2007 at 06:33 PM.
Reply With Quote
  #5  
Old 05-13-2007, 07:43 PM
riostyles riostyles is offline
Royal Croc
 
Join Date: Jan 2006
Location: Rio de Janeiro, Brazil
Posts: 764
Default Re: Subdomains And 2° site

Quote:
Originally Posted by php_dev View Post
Thank for the fast reply,
yes i have a file index.php in each subdomains and when i go to sub.domain.com/index.php i get a 404 error page. And i have many folders whithin subdomains but when i try to see sub.domain.com/ i get a index of/page (and i can't see files and folders but only the folder named cgi).
P.s: when i go to www.domain.com/sub/ it work fine.
edit: when i have setup the new subdomain under the new domain a new folder has been setup under the root of the main site. And so the folder sub/ ( that is a subdomain of the second site) has been created under the first site and under the second site.
seems to be an owner or permission prob. CHMOD 755 the indexes and verify the CHOWN.
Can also be a php.ini if you'r under sueexec see the threads about here.
Or a php versioning conflict
Reply With Quote
  #6  
Old 05-13-2007, 08:01 PM
php_dev php_dev is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 19
Default Re: Subdomains And 2° site

Hi RioStyles,
the folders are already setup to chmode 755. I have just setup a new subdomain to see if it work and no. it is not working. Dns are already propagated and the root of second site work fine. But the subdomains fails. I have checked my error_log but nothing...it is blank.
Php engine work fine. I have also uploaded a .htm file and do not work.

Last edited by php_dev; 05-13-2007 at 08:05 PM.
Reply With Quote
  #7  
Old 05-14-2007, 12:26 AM
php_dev php_dev is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 19
Default Re: Subdomains And 2° site

Ok, it work fine now. Great support here .Ten minutes and they have resolved my problems. (i have dropped my godaddy's account for the bad support. ).
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 02:36 AM.

 
Forum SEO by Zoints