Are you trying to add a wildcard domain to your main domain as a parked domain? If so, you could instead go to /var/cpanel/userdata/username/domain.com file (or sub.domain.com if it's a subdomain) and add the *.yourdomainname.com entry into the serveralias line in the file. Of note, username
is your cPanel username, and domain.com
is your domain name.
You'd also want to add *.yourdomain.com into /var/cpanel/userdata/username/main file for the parked domains section or addon domain section (whichever this one happens to be).
After adding the details, you'd run the following:
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak121012