Problems with DNS and subdomains

Discussion in 'General' started by dkdzn, Jan 3, 2011.

  1. dkdzn

    dkdzn New Member

    I'm recently started using ISPConfig3 and it worked flawless until today. I've been trying to set up new sub domains and I've been unable to get it to work. I went through HowToForge and it appears a few people had similar problems and after trying their solutions, I've still been unable to get it to work.

    Basically, I'm trying to set up a subdomain like "subdomain.mysite.com". I can get to "mysite.com" just fine. But, after using ISPConfig to get up the new subdomain I get a 404 error when trying visit it via browser.

    Per some instructions, I tried just setting up the subdomain in the subdomain section of ISPConfig. I also tried adding a DNS Zone for it. I tried adding an "A" record for it in the current primary domain (mysite.com).

    I've tried no redirects and "L" redirects just to a subdirectory (/subdomain/) of the /web directory. Still, no luck.

    I also tried setting up some redirect logs suggested in another thread per these instructions: http://www.latenightpc.com/blog/archives/2007/09/05/a-couple-ways-to-debug-mod_rewrite

    And the log is always empty.

    To make matters worse, I'm getting these errors in my Apache error log (actual IP and domain name changed):

    [Mon Jan 03 14:17:55 2011] [error] [client 12.34.56.78] PHP Notice: Undefined index: domain in /usr/local/ispconfig/interface/web/dns/dns_wizard.php on line 127, referer: http://www.mysite.com:8080/index.php
    [Mon Jan 03 14:17:55 2011] [error] [client 12.34.56.78] PHP Notice: Undefined index: ip in /usr/local/ispconfig/interface/web/dns/dns_wizard.php on line 127, referer: http://www.mysite.com:8080/index.php
    [Mon Jan 03 14:17:55 2011] [error] [client 12.34.56.78] PHP Notice: Undefined index: ns1 in /usr/local/ispconfig/interface/web/dns/dns_wizard.php on line 127, referer: http://www.mysite.com:8080/index.php
    [Mon Jan 03 14:17:55 2011] [error] [client 12.34.56.78] PHP Notice: Undefined index: ns2 in /usr/local/ispconfig/interface/web/dns/dns_wizard.php on line 127, referer: http://www.mysite.com:8080/index.php
    [Mon Jan 03 14:17:55 2011] [error] [client 12.34.56.78] PHP Notice: Undefined index: email in /usr/local/ispconfig/interface/web/dns/dns_wizard.php on line 127, referer: http://www.mysite.com:8080/index.php
    [Mon Jan 03 14:17:55 2011] [error] [client 12.34.56.78] PHP Notice: Undefined index: create in /usr/local/ispconfig/interface/web/dns/dns_wizard.php on line 131, referer: http://www.mysite.com:8080/index.php
    [Mon Jan 03 14:18:27 2011] [error] [client 12.34.56.78] PHP Notice: Undefined index: xfer in /usr/local/ispconfig/interface/web/dns/dns_wizard.php on line 237, referer: http://www.mysite.com:8080/index.php

    So, what's going on here? So far I've been pretty happy with ISPConfig and I even purchased the manual. But, I'm at a loss to explain why the subdomains aren't working and why I'm getting these errors.

    Help!

    `dkdzn
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look in the error.log of the website if you want to know why your subdomain does not work.

    If a subdoamin shall have its own directory, then you should create a new website for it and not a subdomain record. Please see the ispconfig 3 manual, it is described there.


    The lines you posted above are no errors, it are php notices for developers. You see them because you set a wrong error reporting level in your php configuration. They are not related to your problem.
     
  3. dkdzn

    dkdzn New Member

    Okay, I got it working. It looks like I forgot to set up the DNS record, too. I thought I did but apparently didn't.

    Frankly, I don't like this set up because my clients will also be accessing their websites via FTP and I don't like them seeing a million different web domain directories instead of one root domain directory and the subdomains w/ subdirectories. Nevertheless, I read your instructions and I am doing that.

    But, I don't understand what the point is of being able to set up subdomains if you can have different "sub" directories for those "sub" domains?

    `dkdzn
     
  4. dkdzn

    dkdzn New Member

    *can't have sub directories...
     

Share This Page