Error Creating Domain

shanti

Verified User
Joined
Apr 8, 2009
Messages
94
Location
Wien / Vienna - Austria
Hi,
I experience a strange behavior on one of our system recently after a migration. when adding a domain , DA reports "permission denied"

Code:
Error creating /home/admin/domains/testdomain.xyz/public_html/cgi-bin
mkdir(/home/admin/domains/testdomain.xyz/public_html/cgi-bin) error: Keine Berechtigung

Error creating /home/admin/domains/testdomain.xyz/public_html/cgi-bin/.htaccess
Unable to open /home/admin/domains/testdomain.xyz/public_html/cgi-bin/.htaccess for writing: Keine Berechtigung

Errors encountered while creating domain.  Not adding domain to /etc/bind/named.conf

Error Creating Domain

on fs-level this looks like:

root@dam-cl03 /home/admin/domains/somedomain.xyz # ls -la
total 36
drwx--x--x 9 admin admin 4096 Jul 21 00:59 .
drwxr-x--- 7 admin access 4096 Jul 21 00:59 ..
drwxr-xr-x 2 admin admin 4096 Jul 21 00:59 .htpasswd
drwx------ 2 admin admin 4096 Jul 21 00:59 logs
lrwxrwxrwx 1 root root 13 Jul 21 00:59 private_html -> ./public_html
drwx--x--x 3 admin admin 4096 Jul 21 00:59 public_ftp
drwxr-x--- 2 root root 4096 Jul 21 00:59 public_html
drwxr-xr-x 3 admin admin 4096 Jul 21 00:59 tmp

what may cause DA to create the folder and its symlink as root, but trying to mkdir cgi-bin at userlevel again ?

thank you for any hints

br
-c-
 
Since i actually have no valid support-subscription - helpdesk would not help here:

as suggested I ran "setpermission all" , but to no avail .. anyway this would be a post-action-fix .. doesnt explain why DA does it wrong in the first place. it looks like parts of the procedure to create the public_html and private_html-symlink are run as root while the rest is well addressed as the particular user.

any ideas are welcome :) thank you
 
i can see more in debugging the DA-daemon:

a POC on fictional Domain "sdfghjk.at"

Code:
---end text
Apache::write_php_fpm_cgi: No domains for User admin are using php 73. Deleting /usr/local/directadmin/data/users/admin/php/php-fpm73.conf to reduce the number of unused pools.
Apache::write_php_fpm_cgi: No domains for User admin are using php 72. Deleting /usr/local/directadmin/data/users/admin/php/php-fpm72.conf to reduce the number of unused pools.
Cannot read /root/domains/default, reverting to global default folder
Using default directory: /usr/local/directadmin/data/templates/default
copyFile: Unable to open /home/admin/domains/sdfghjk.at/public_html/400.shtmlBiplSr with mkstemp for writing: Keine Berechtigung
copyFile: Unable to open /home/admin/domains/sdfghjk.at/public_html/401.shtmlLTjvBk with mkstemp for writing: Keine Berechtigung
copyFile: Unable to open /home/admin/domains/sdfghjk.at/public_html/403.shtmlW1pGkd with mkstemp for writing: Keine Berechtigung
copyFile: Unable to open /home/admin/domains/sdfghjk.at/public_html/404.shtmlEizS35 with mkstemp for writing: Keine Berechtigung
copyFile: Unable to open /home/admin/domains/sdfghjk.at/public_html/500.shtmlFeE5MY with mkstemp for writing: Keine Berechtigung
copyFile: Unable to open /home/admin/domains/sdfghjk.at/public_html/index.htmlvhMjwR with mkstemp for writing: Keine Berechtigung
copyFile: Unable to open /home/admin/domains/sdfghjk.at/public_html/logo.pngpMOyfK with mkstemp for writing: Keine Berechtigung
Unable to copy /usr/local/directadmin/data/templates/default to /home/admin/domains/sdfghjk.at/public_html : Unable to open /home/admin/domains/sdfghjk.at/public_html/400.shtmlBiplSr for writing<br>
Unable to open /home/admin/domains/sdfghjk.at/public_html/401.shtmlLTjvBk for writing<br>
Unable to open /home/admin/domains/sdfghjk.at/public_html/403.shtmlW1pGkd for writing<br>
Unable to open /home/admin/domains/sdfghjk.at/public_html/404.shtmlEizS35 for writing<br>
Unable to open /home/admin/domains/sdfghjk.at/public_html/500.shtmlFeE5MY for writing<br>
Unable to open /home/admin/domains/sdfghjk.at/public_html/index.htmlvhMjwR for writing<br>
Unable to open /home/admin/domains/sdfghjk.at/public_html/logo.pngpMOyfK for writing<br>




---end text
IP::add_to_domain_ips(domain=sdfghjk.at, ip=99.198.144.234): IP matches server IP (default). Not adding.
Domain::create:sdfghjk.at: DKIM: We wanted to create DKIM for this domain, but there was a previous error so it's skipped: <b>Error creating /home/admin/domains/sdfghjk.at/public_html/cgi-bin</b><br>
mkdir(/home/admin/domains/sdfghjk.at/public_html/cgi-bin) error: Keine Berechtigung<br>
<br>
<b>Error creating /home/admin/domains/sdfghjk.at/public_html/cgi-bin/.htaccess</b><br>
Unable to open /home/admin/domains/sdfghjk.at/public_html/cgi-bin/.htaccess for writing: Keine Berechtigung<br>
<br>
<b>Errors encountered while creating domain.  Not adding domain to /etc/bind/named.conf</b><br>

Dynamic(api=0, error=1):
    text='Error Creating Domain'
    result='<b>Error creating /home/admin/domains/sdfghjk.at/public_html/cgi-bin</b><br>
mkdir(/home/admin/domains/sdfghjk.at/public_html/cgi-bin) error: Keine Berechtigung<br>
<br>
<b>Error creating /home/admin/domains/sdfghjk.at/public_html/cgi-bin/.htaccess</b><br>
Unable to open /home/admin/domains/sdfghjk.at/public_html/cgi-bin/.htaccess for writing: Keine Berechtigung<br>
<br>
<b>Errors encountered while creating domain.  Not adding domain to /etc/bind/named.conf</b><br>
Generating RSA private key, 2048 bit long modulus (2 primes)
...............................+++++
.............................................+++++
e is 65537 (0x010001)
writing RSA key
<br>
<b>Error Creating Domain</b><br>
'
 
Back
Top