The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unable to create new subdomain in 11.36.0 (build 11)

Discussion in 'General Discussion' started by znypan, Mar 14, 2013.

  1. znypan

    znypan Member

    Joined:
    Oct 18, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Are you using some sort of custom theme or are you on the x3 theme?
     
  3. znypan

    znypan Member

    Joined:
    Oct 18, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I use the x3 theme.
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
  5. znypan

    znypan Member

    Joined:
    Oct 18, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    You were absolutely right.
    One of those awkward "doh" moments.
    Thanks!
     
Loading...

Share This Page