Apache fail to start after update from ubuntu 12.04 to 14.04

Discussion in 'ISPConfig 3 Priority Support' started by pawan, Mar 7, 2016.

  1. pawan

    pawan Member HowtoForge Supporter

    I have upgraded my server to 14.04 from 12.04.
    Deleted all files in etc/apache2/sites-enabled except 000-ispconfig.vhost ,000-ispconfig.conf and 000-apps.vhost.

    Reinstalled ispconfig. reconfigure all services. But apache fails to start.
    The error I am getting is
    Code:
    * Restarting web server apache2
       ...fail!
    * The apache2 configtest failed.
    Output of config test was:
    apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory
    Action 'configtest' failed.
    The Apache error log may have more information.
    What step I should take to get the apache start.
    Thanks.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Run.

    touch /etc/apache2/httpd.conf

    and then restart apache.
     
  3. pawan

    pawan Member HowtoForge Supporter

    Hi Till I am still getting the error config test failed.
    Code:
    AH01574: module ssl_module is already loaded, skipping
    [Mon Mar 07 15:29:01.176977 2016] [so:warn] [pid 11830] AH01574: module status_module is already loaded, skipping
    [Mon Mar 07 15:29:01.177007 2016] [so:warn] [pid 11830] AH01574: module suexec_module is already loaded, skipping
    [Mon Mar 07 15:29:01.177037 2016] [so:warn] [pid 11830] AH01574: module suphp_module is already loaded, skipping
    apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 206 of /etc/apache2/httpd.conf: Exceeded maximum include depth of 128, There appears to be a recursion.
    Action 'configtest' failed.
    
    in line 210 of httpd.conf is like this
    # Include all the user configurations:
    Include /etc/apache2/httpd.conf
     
    Last edited: Mar 7, 2016
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to comment out that line.
     
  5. pawan

    pawan Member HowtoForge Supporter

    Hi Till I have done that now I am getting error on line57
    Code:
    [Mon Mar 07 15:56:31.743701 2016] [so:warn] [pid 13126] AH01574: module suphp_module is already loaded, skipping
    AH00526: Syntax error on line 57 of /etc/apache2/apache2.conf:
    Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration
    Action 'configtest' failed.
    The Apache error log may have more information.
    
    Should I comment out that line as well?
    The line is like this:
    LockFile /var/lock/apache2/accept.lock
     
  6. pawan

    pawan Member HowtoForge Supporter

    I have tried commenting many lines still finally I am getting these errors:
    Code:
    [Mon Mar 07 16:22:28.883326 2016] [so:warn] [pid 11095] AH01574: module status_module is already loaded, skipping
    [Mon Mar 07 16:22:28.883362 2016] [so:warn] [pid 11095] AH01574: module suexec_module is already loaded, skipping
    [Mon Mar 07 16:22:28.883395 2016] [so:warn] [pid 11095] AH01574: module suphp_module is already loaded, skipping
    [Mon Mar 07 16:22:28.898172 2016] [core:warn] [pid 11095] AH00117: Ignoring deprecated use of DefaultType in line 177 of /etc/apache2/apache2.conf.
    [Mon Mar 07 16:22:28.898614 2016] [core:warn] [pid 11095] AH00117: Ignoring deprecated use of DefaultType in line 177 of /etc/apache2/httpd.conf.
    [Mon Mar 07 16:22:28.898647 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/mods-enabled/alias.conf at line 15 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.899246 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/phpmyadmin.conf at line 3 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.899308 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/roundcube.conf at line 2 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.899340 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/roundcube.conf~ at line 2 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.899375 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/webftp.conf at line 10 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.899387 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/webftp.conf at line 11 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.899404 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/webftp.conf~ at line 10 will probably never match because it overlaps an earlier Alias.
    AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.conf:62
    [Mon Mar 07 16:22:28.901238 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.901343 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/apache2-doc~ at line 1 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.901364 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/apache2-doc~ at line 11 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.901419 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/phpmyadmin.conf at line 3 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.901460 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/roundcube.conf at line 2 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.901492 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/roundcube.conf~ at line 2 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.901525 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/webftp (copy).conf at line 5 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.901538 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/webftp (copy).conf at line 6 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.901549 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/webftp.conf at line 10 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.901558 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/webftp.conf at line 11 will probably never match because it overlaps an earlier Alias.
    [Mon Mar 07 16:22:28.901576 2016] [alias:warn] [pid 11095] AH00671: The Alias directive in /etc/apache2/conf.d/webftp.conf~ at line 10 will probably never match because it overlaps an earlier Alias.
    (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8080
    (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
    (98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
    (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8081
    (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8080
    (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8080
                                                                   [fail]
    * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
    
    What next I should do? I am really stuck.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess that apache reads files twice. Please check that the directory /etc/apache2/conf.d is not included more than once inside apache2.conf and if you have a ports.conf file, then ensure that the ports.conf file is also not included more than once inside apache2.conf.

    And please post the outpout of:

    ls -la /etc/apache2/httpd.conf
     
  8. pawan

    pawan Member HowtoForge Supporter

    Hi Till I have checked but both the lines for include is once only in apache2.conf.
    The output of ls -la /etc/apache2/httpd.conf
    Code:
    -rw-r--r-- 1 root root 8455 Mar  7 16:20 /etc/apache2/httpd.conf
    
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    So both things are ok, strange. I thought that httpd.conf is maybe a symlink so that this causes the double include. Currently I have no good idea why everything is included twice....
     

Share This Page