onkar

Member
Jul 9, 2007
10
0
51
Hello,

We are facing problems while upgrading to apache2. Following are the error details that we got while upgrading.

--------------------------------------------------------------------------------------------------
!! Failed to generate a syntactically correct Apache configuration (/usr/local/apache/conf/httpd.conf.1198026829):
Syntax error on line 380 of /usr/local/apache/conf/httpd.conf.1198026829:
error in condition clause
!!
!! Archiving successful build so it can be restored via --restore-archive once the httpd.conf are resolved !!
!! Done Archiving successful build !!
!! Restoring original working apache !!
!! Executing '/scripts/initfpsuexec' !!
!! Executing '/scripts/initsslhttpd' !!
Compiling report...
Sending report (469 bytes)...
!! If you want to create a support ticket with cPanel regarding this please reference 'BuildAP Report Id': '524591' !!
Report processed.
!! Feel free to submit a support ticket at https://tickets.cpanel.net/submit/index.cgi?reqtype=tickets !!
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1198025566' !!
-----------------------------------------------------------------------------------------------------

Please let us know if any one has the resolution for this error.

Thanks
Onkar
 

useradmin

Well-Known Member
Oct 8, 2004
107
0
166
INDIA
same problem

HI,

i am getting same problem.

379 CustomLog /usr/local/apache/domlogs/domainname.com combined
380 CustomLog /usr/local/apache/domlogs/domainname.com -bytes_log "%{%s}t %I .\n%{%s}t %O ."
381 ## User domain # Needed for Cpanel::ApacheConf
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
HI,

i am getting same problem.

379 CustomLog /usr/local/apache/domlogs/domainname.com combined
380 CustomLog /usr/local/apache/domlogs/domainname.com -bytes_log "%{%s}t %I .\n%{%s}t %O ."
381 ## User domain # Needed for Cpanel::ApacheConf
Is that actually a space between the m in .conf and the - in -bytes_log?
 

richu

Registered
Jul 14, 2007
4
0
51
india
Yes..your right...

Hello Kenneth,

your right,

its must like following
379 CustomLog /usr/local/apache/domlogs/domainname.com combined
380 CustomLog /usr/local/apache/domlogs/domainname.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."