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.

Accidentally deleted records in httpd.conf

Discussion in 'General Discussion' started by ipaq_2210, Feb 13, 2008.

  1. ipaq_2210

    ipaq_2210 Member

    Joined:
    Aug 9, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    The situation is:
    We had a park domain need to delete. My staff accidentally deleted the main domain info also in httpd.con (we guess so) Now that account is not able to use FTP and when login to cpanel the error are shown as below:

    isdedicatedip() requires one argument (this probably means a domain is missing from httpd.conf) at /usr/local/cpanel/Cpanel/DIp.pm line 37
    Cpanel::DIp::isdedicatedip(undef) called at /usr/local/cpanel/Cpanel/ExpVar.pm line 193
    Cpanel::ExpVar::expvar('$hasdedicatedip') called at cpanel.pl line 1975
    main::execiftag('<cpanelif $hasdedicatedip') called at cpanel.pl line 4618
    main::ifresult('$hasdedicatedip') called at /usr/local/cpanel/Cpanel/Branding.pm line 805
    Cpanel::Branding::api2_applist('nvarglist', 'domains|mail|db|logs|files|pref|sec|software|advanced') called at (eval 136) line 1
    eval '$dataref = [Cpanel::Branding::api2_applist(%CFG)];' called at cpanel.pl line 4894
    main::api2_exec('Branding', 'applist', 'HASH(0x99821b8)', 'HASH(0x91b8d38)') called at cpanel.pl line 1374
    main::cpexectag('<?cp Branding::applist([div id="%" class="itembox"]^J [div id="%...') called at cpanel.pl line 4693
    main::dotag(undef) called at cpanel.pl line 4560
    main::cpanel_parseblock('SCALAR(0x9570b1c)') called at cpanel.pl line 4514
    main::cpanel_parse('GLOB(0x94444a4)') called at cpanel.pl line 2809
    main::doinclude('/usr/local/cpanel/base/frontend/x3/branding//index.html', 0, 1) called at /usr/local/cpanel/Cpanel/Branding.pm line 81
    Cpanel::Branding::Branding_include('index.html') called at (eval 8) line 1
    eval 'Cpanel::Branding::Branding_include(@{$argref});' called at cpanel.pl line 1534
    main::exectag('<cpanel Branding="include(index.html)">') called at cpanel.pl line 4693
    main::dotag(undef) called at cpanel.pl line 4560
    main::cpanel_parseblock('SCALAR(0x9171140)') called at cpanel.pl line 4514
    main::cpanel_parse('GLOB(0x93d2180)') called at cpanel.pl line 1213
    Carp::cluck('isdedicatedip() requires one argument (this probably means a dom...') called at /usr/local/cpanel/Cpanel/DIp.pm line 37
    Cpanel::DIp::isdedicatedip(undef) called at /usr/local/cpanel/Cpanel/ExpVar.pm line 193
    Cpanel::ExpVar::expvar('$hasdedicatedip') called at cpanel.pl line 1975
    main::execiftag('<cpanelif $hasdedicatedip') called at cpanel.pl line 4618
    main::ifresult('$hasdedicatedip') called at /usr/local/cpanel/Cpanel/Branding.pm line 805
    Cpanel::Branding::api2_applist('nvarglist', 'domains|mail|db|logs|files|pref|sec|software|advanced') called at (eval 136) line 1
    eval '$dataref = [Cpanel::Branding::api2_applist(%CFG)];' called at cpanel.pl line 4894
    main::api2_exec('Branding', 'applist', 'HASH(0x99821b8)', 'HASH(0x91b8d38)') called at cpanel.pl line 1374
    main::cpexectag('<?cp Branding::applist([div id="%" class="itembox"]^J [div id="%...') called at cpanel.pl line 4693
    main::dotag(undef) called at cpanel.pl line 4560
    main::cpanel_parseblock('SCALAR(0x9570b1c)') called at cpanel.pl line 4514
    main::cpanel_parse('GLOB(0x94444a4)') called at cpanel.pl line 2809
    main::doinclude('/usr/local/cpanel/base/frontend/x3/branding//index.html', 0, 1) called at /usr/local/cpanel/Cpanel/Branding.pm line 81
    Cpanel::Branding::Branding_include('index.html') called at (eval 8) line 1
    eval 'Cpanel::Branding::Branding_include(@{$argref});' called at cpanel.pl line 1534
    main::exectag('<cpanel Branding="include(index.html)">') called at cpanel.pl line 4693
    main::dotag(undef) called at cpanel.pl line 4560
    main::cpanel_parseblock('SCALAR(0x9171140)') called at cpanel.pl line 4514
    main::cpanel_parse('GLOB(0x93d2180)') called at cpanel.pl line 1213


    Is there anyway to solve this problem?
    Thanks in advance!!
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Well, the most obvious is to ask if you create regular backups. Reference the recent httpd.conf for that vhost. You may have a backup or two in /usr/local/apache/conf as well if you performed any updates recently.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    /scripts/rebuildhttpdconf

    will rebuild the file based upon info stored elsewhere (cPanel user files for example).
     
Loading...

Share This Page