Unable to create new subdomain in 11.36.0 (build 11)

znypan

Member
Oct 18, 2011
12
0
51
cPanel Access Level
Website Owner
Code:
[2013-03-14 09:30:32 +0000] warn [Cpanel::SafeDir::MK] mkdir /home/nyartcc/public_html/moodle failed: Permission denied at /usr/local/cpanel/Cpanel/SafeDir/MK.pm line 160
        Cpanel::SafeDir::MK::safemkdir('/home/nyartcc/public_html/moodle', 0755) called at /usr/local/cpanel/Cpanel/SubDomain.pm line 286
        Cpanel::SubDomain::_addsubdomain('moodle', 'nyartcc.org', 1, 0, 'public_html/moodle') called at /usr/local/cpanel/Cpanel/SubDomain.pm line 183
        Cpanel::SubDomain::addsubdomain('moodle', 'nyartcc.org', 1, 0, 'public_html/moodle') called at cpanel line 2998
        main::dosubdomain('addsubdomain', ARRAY(0xaaf291c)) called at cpanel line 1813
        eval {...} called at cpanel line 1813
        main::real_exectag('<cpanel SubDomain="addsubdomain($RAW_FORM{\'domain\'},$RAW_FORM{\'rootdomain\'},1,0,$RAW_FORM{\'dir\'})">') called at cpanel line 4101
        main::dotag_finished_headers(1) called at cpanel line 3925
        main::cpanel_parseblock('<cpanel setvar="headerimg=../images/topsubdomains.gif">\x0A<cpanel setvar="dprefix=../">\x0A<cpanel Branding="include(stdheader.html)">\x0A<style type="text/css">\x0A<?cp Branding::spritelist(.spriteicon_img_mini {float:left;margin-right:5px;background: url\\{leftparenthesis}"%"\\{rightparenthesis};} %,@spriteurl,images::#icon-${img}_mini {background-position\\{colon}0 -${cssposition}px;width\\{colon}${width}px;height\\{colon}${height}px; }:) imgtype=icon,subtype=img,method=scale_60percent,format=png,img=subdomains ?>\x0A</style>\x0A<div class="body-content">\x0A\x0A\x09<div class="h1Title"><div class="spriteicon_img_mini" id="icon-subdomains_mini"></div><cptext "Subdomain Creation"></div>\x0A\x09<!--<cpanel SubDomain="addsubdomain($RAW_FORM{\'domain\'},$RAW_FORM{\'rootdomain\'},1,0,$RAW_FORM{\'dir\'})">-->\x0A\x09<cpanelif !$CPERROR{\'subdomain\'}>\x0A        <div class="success_details">\x0A                <span style="word-wrap: break-word"><cpanel print="$FORM{\'domain\'}">.<cpanel print="$FORM{\'rootdomain\'}"></span>&nbsp;<cpanel langprint="AODCreateYes">!\x0A         </div>   \x0A\x09</cpanelif>\x0A\x09<cpanelif $CPERROR{\'subdomain\'}>\x0A        <div class="error_details">\x0A            <cpanel langprint="SubCreateText">:\x0A\x09\x09\x09<cpanel print="$CPERROR{\'subdomain\'}">    \x0A\x09    </div>\x0A\x09</cpanelif>\x0A\x0A<cpanelif $FORM{\'from_cpaddon\'}>\x0A  <div class="return-link"><a href="../addoncgi/cpaddons.html?addon=<cpanel print="$URI_ENCODED_FORM{\'from_cpaddon\'}">&subdomain=<cpanel print="$URI_ENCODED_FORM{\'domain\'}">.<cpanel print="$URI_ENCODED_FORM{\'rootdomain\'}">">Back to cPAddon Page</a></div>\x0A</cpanelif> \x0A<cpanelif !$FORM{\'from_cpaddon\'}>\x0A<div class="return-link"><a href="index.html">&larr; <cptext "Go Back"></a></div>\x0A</cpanelif>\x0A</div>\x0A<cpanel Branding="include(stdfooter.html)">\x0A') called at cpanel line 3839
        main::y(GLOB(0xa8c7fac)) called at cpanel line 5144
        main::run_standard_mode() called at cpanel line 766
[2013-03-14 09:30:32 +0000] warn [SubDomain::addsubdomain] Encountered error in SubDomain::addsubdomain: The directory, /home/nyartcc/public_html/moodle could not be created.
Any ideas?
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
cPanel Access Level
Root Administrator
Code:
mkdir /home/nyartcc/public_html/moodle failed: Permission denied at /usr/local/cpanel/Cpanel/SafeDir/MK.pm line 160
This indicates you have permission problems with one or more directories. Please check both the modes and ownership of the directories to ensure they are correct.
 

znypan

Member
Oct 18, 2011
12
0
51
cPanel Access Level
Website Owner
Code:
mkdir /home/nyartcc/public_html/moodle failed: Permission denied at /usr/local/cpanel/Cpanel/SafeDir/MK.pm line 160
This indicates you have permission problems with one or more directories. Please check both the modes and ownership of the directories to ensure they are correct.
You were absolutely right.
One of those awkward "doh" moments.
Thanks!