Accidentally deleted records in httpd.conf

ipaq_2210

Member
Aug 9, 2007
7
0
51
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!!
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
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.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
/scripts/rebuildhttpdconf

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