Subdomain on Freebsd, new bug?

anest

Member
Sep 18, 2005
21
0
151
Face very strange error and think, that it is new bug of new version, because before on this server it works.

When create new subdomain, it put to httpd.conf Document path to account`s home, like

DocumentRoot /usr/home/username

So, it shown home directory, incl mail, public_html , etc

Tried:

upcp --force
fixsubconf
updateuserdomains

anybody can confirm that it is new bug?

latest release
freebsd 5.4
 

anest

Member
Sep 18, 2005
21
0
151
JamesSmith said:
The domain you're trying, is there a subdomain / wildcard record?
where? in httpd.conf ? I wrote quota from this file for <VirtualHost> of this subdomain, so it create it, but not correct.
 

JamesSmith

Well-Known Member
Sep 17, 2003
185
0
166
UK, Luton
We run many FreeBSD servers with cPanel, all running the latest release and have no problems with subdomains.

The domain you're trying, is there a subdomain / wildcard record?
 

JamesSmith

Well-Known Member
Sep 17, 2003
185
0
166
UK, Luton
anest said:
where? in httpd.conf ? I wrote quota from this file for <VirtualHost> of this subdomain, so it create it, but not correct.
You edited your own post to quote me, so its appeared before I made it :P

The domain name, has it the appropriate DNS entries to use the subdomain?

I.e. you're trying to use bob.yourdomain.com as a subdomain, but bob.yourdomain.com will need to point towards your server, either as a wildcard: *.yourdomain.com or the specific A record: bob.yourdomain.com
 

anest

Member
Sep 18, 2005
21
0
151
JamesSmith said:
The domain name, has it the appropriate DNS entries to use the subdomain?

I.e. you're trying to use bob.yourdomain.com as a subdomain, but bob.yourdomain.com will need to point towards your server, either as a wildcard: *.yourdomain.com or the specific A record: bob.yourdomain.com
There is no problem with dns
there is exactly trouble with DocumentRoot in apache
 

sukaslayer

Registered
Oct 19, 2005
3
0
151
I have faced the same problem.

After adding subdomain from cpanel next entry is creating in httpd.conf:

<VirtualHost ip.address>
ServerAlias www.subdomain.domain.com
ServerAdmin [email protected]
DocumentRoot /usr/home/username
BytesLog domlogs/subdomain.domain.com-bytes_log
ServerName subdomain.domain.com
User username
Group username
CustomLog /usr/local/apache/domlogs/subdomain.domain.com combined
ScriptAlias /cgi-bin/ /usr/home/username/cgi-bin/
</VirtualHost>

So, DocumentRoot is misconfigured, as it should be /usr/home/username/public_html/subdomain instead of /usr/home/username

WHM 10.8.0 cPanel 10.9.0-R44
FreeBSD 5.4-RELEASE-p16 i386 - WHM X v3.1.0