Unable to create subdomain (2011)

iamthezio

Verified User
Joined
Apr 6, 2011
Messages
36
Location
Alabama, USA
A general User gets this error when asking DA to create a subdomain

Permissions look good on the files and directories. DNS is generally not used on this system, but named is running.

domain.com has been substituted for actual domain name.

---------------------
Unable to create subdomain

Error writing the db file: Unable to save dns zone: named-zonecheck returned:
loading "domain.com" from "/var/named/domain.com.db.temp" class "IN"
dns_rdata_fromtext: /var/named/domain.com.db.temp:15: near 'ftp': syntax error
zone taillc.com/IN: loading master file /var/named/domain.com.db.temp: syntax error

Any ideas?
 
Your dns zone has errors. You will have to figure out what is wrong. Maybe have to manually edit the zone to see where the error is.
 
Check if you have a custom named template in

Code:
/usr/local/directadmin/data/templates/custom/

If yes, something should be wrong on it.

Also, tru

Code:
/usr/local/directadmin/scripts/set_permissions.sh all

Regards
 
Issue resolved.

SeLLeRoNe and mr.applesauce.

Thank you for the suggestions, I revised the DNS zone file and inspected the custom template folder, and ran the permission script.

All is working well.

Zio
 
Update

Just a secondary note.

I did run set_permissions.sh all on this CentOS server.

It broke mysql, stopped mysql, and removed the pid info so it could not restart.

The solution was to add the line

socket=/tmp/mysql.sock back to the file

/var/local/directadmin/conf/mysql.conf

and restart mysql.

Some how a more restrictive permission was added to a system file and mysql count not continue.

Check if you have a custom named template in

Code:
/usr/local/directadmin/data/templates/custom/

If yes, something should be wrong on it.

Also, tru

Code:
/usr/local/directadmin/scripts/set_permissions.sh all

Regards
 
Addendum.

MySQL is running on the system, but the DirectAdmin interface cannot see it.

It also hosed my Tomcat sites, which need MySQL. This has been a bad, bad, day.
 
you should remove

Code:
socket=/tmp/mysql.sock

from /var/local/directadmin/conf/mysql.conf

and restart directadmin, as mysql socket is not placed in /tmp on Linux by default.
 
Back
Top