Problem with Apache Configuration Rebuild

Motamedi

Well-Known Member
Mar 14, 2015
81
0
6
Iran , Tehran
cPanel Access Level
Root Administrator
hello

my problem is when rebuile apache configuration show this error

Code:
Rebuilding httpd.conf …

[2019-09-30 12:05:28 +0330] warn [rebuildhttpdconf] [12043] TIME 1569832528 UID 0 clobbered stale lock file “/etc/apache2/conf/httpd.conf.lock” (NAME “whostmgr2 - rebuildhttpdconf - safeaprestart - locking config”, UID 0) written by PID 32307 at 1569832073 at /usr/local/cpanel/Cpanel/SafeFile.pm line 931.
    Cpanel::SafeFile::_lock_wait("/etc/apache2/conf/httpd.conf", Cpanel::SafeFileLock=ARRAY(0x1319188), "/etc/apache2/conf/httpd.conf.lock") called at /usr/local/cpanel/Cpanel/SafeFile.pm line 350
    Cpanel::SafeFile::_safelock("/etc/apache2/conf/httpd.conf") called at /usr/local/cpanel/Cpanel/SafeFile.pm line 553
    Cpanel::SafeFile::_safe_open(undef, 66, "/etc/apache2/conf/httpd.conf", CODE(0x1319038), "safesysopen") called at /usr/local/cpanel/Cpanel/SafeFile.pm line 210
    eval {...} called at /usr/local/cpanel/Cpanel/SafeFile.pm line 209
    Cpanel::SafeFile::safesysopen(undef, "/etc/apache2/conf/httpd.conf", 66, 384) called at /usr/local/cpanel/Cpanel/SafeFile.pm line 124
    Cpanel::SafeFile::safesysopen_no_warn_on_fail(undef, "/etc/apache2/conf/httpd.conf", 66, 384) called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 128
    Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::Raw", "path", "/etc/apache2/conf/httpd.conf") called at /usr/local/cpanel/Cpanel/Transaction.pm line 20
    eval {...} called at /usr/local/cpanel/Cpanel/Transaction.pm line 20
    Cpanel::Transaction::get_httpd_conf() called at /usr/local/cpanel/Cpanel/ApacheConf/Rebuild.pm line 85
    Cpanel::ApacheConf::Rebuild::rebuild_full_http_conf("/etc/apache2/conf/httpd.conf", 0, 0) called at /usr/local/cpanel/scripts/rebuildhttpdconf line 122
    BuildHttpdConf::run(BuildHttpdConf=HASH(0x86f8a8)) called at /usr/local/cpanel/scripts/rebuildhttpdconf line 70
Built /etc/apache2/conf/httpd.conf OK

Restarting Apache (hard) …

1

Done!
and when create new account to cpanel show this error on sites

Code:
503
Service Unavailable

The server is temporarily busy, try again later!
please help me for solve this problem

thanks ...
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Based on the last few lines it looks like it was built successfully:
Built /etc/apache2/conf/httpd.conf OK Restarting Apache (hard) … 1 Done!
If you run the following what it the output?

Code:
/scripts/restartsrv_httpd --status