Problem with apache2

Discussion in 'ISPConfig 3 Priority Support' started by zustudios, Dec 10, 2015.

  1. zustudios

    zustudios Member

    I followed the tutorial:https://www.howtoforge.com/tutorial...pureftpd-bind-postfix-doveot-and-ispconfig/2/
    and apache2 will not start. What did I do wrong?
    My error:
    service apache2 restart

    Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.


    journalctl -xe

    Dec 10 01:44:01 zuroot CRON[7137]: pam_unix(cron:session): session opened for us

    Dec 10 01:44:01 zuroot CRON[7138]: (root) CMD (/usr/local/ispconfig/server/serve

    Dec 10 01:44:02 zuroot CRON[7137]: pam_unix(cron:session): session closed for us

    Dec 10 01:44:10 zuroot pkexec[7154]: pam_unix(polkit-1:session): session opened

    Dec 10 01:44:10 zuroot pkexec[7154]: pam_systemd(polkit-1:session): Cannot creat

    Dec 10 01:44:10 zuroot pkexec[7154]: zuroot: Executing command [TTY=

    Dec 10 01:44:11 zuroot com.ubuntu.OneConf[1830]: WARNING:oneconf.hosts:Error in

    Dec 10 01:45:01 zuroot CRON[7183]: pam_unix(cron:session): session opened for us

    Dec 10 01:45:01 zuroot CRON[7184]: (root) CMD (/usr/local/ispconfig/server/serve

    Dec 10 01:45:01 zuroot CRON[7182]: pam_unix(cron:session): session opened for us

    Dec 10 01:45:01 zuroot CRON[7187]: (getmail) CMD (/usr/local/bin/run-getmail.sh

    Dec 10 01:45:01 zuroot CRON[7182]: pam_unix(cron:session): session closed for us

    Dec 10 01:45:01 zuroot pure-ftpd[7217]: ([email protected]) [INFO] New connection from

    Dec 10 01:45:01 zuroot pure-ftpd[7217]: ([email protected]) [INFO] Logout.

    Dec 10 01:45:01 zuroot dovecot[3429]: imap-login: Disconnected (disconnected bef

    Dec 10 01:45:01 zuroot dovecot[3429]: pop3-login: Disconnected (no auth attempts

    Dec 10 01:45:01 zuroot postfix/smtpd[7219]: connect from localhost[127.0.0.1]

    Dec 10 01:45:01 zuroot postfix/smtpd[7219]: lost connection after CONNECT from l

    Dec 10 01:45:01 zuroot postfix/smtpd[7219]: disconnect from localhost[127.0.0.1]

    Dec 10 01:45:02 zuroot CRON[7183]: pam_unix(cron:session): session closed for us

    Dec 10 01:46:01 zuroot CRON[7245]: pam_unix(cron:session): session opened for us

    Dec 10 01:46:01 zuroot CRON[7246]: (root) CMD (/usr/local/ispconfig/server/serve

    Dec 10 01:46:01 zuroot CRON[7245]: pam_unix(cron:session): session closed for us
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to get the full error message incl. the file name where the error is by e.g. by making the terminal window larger.
     
  3. zustudios

    zustudios Member

    IncludeOptional mods-enabled/*.load

    root@zuroot:~# systemctl status apache2.service -l

    apache2.service - LSB: Apache2 web server

    Loaded: loaded (/etc/init.d/apache2)

    Active: failed (Result: exit-code) since Thu 2015-12-10 02:16:32 CST; 35s ago

    Docs: man:systemd-sysv-generator(8)

    Process: 8299 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)


    Dec 10 02:16:32 zuroot apache2[8299]: *

    Dec 10 02:16:32 zuroot apache2[8299]: * The apache2 configtest failed.

    Dec 10 02:16:32 zuroot apache2[8299]: Output of config test was:

    Dec 10 02:16:32 zuroot apache2[8299]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/fastcgi.load: Cannot load /usr/lib/apache2/modules/mod_fastcgi.so into server: /usr/lib/apache2/modules/mod_fastcgi.so: cannot open shared object file: No such file or directory

    Dec 10 02:16:32 zuroot apache2[8299]: Action 'configtest' failed.

    Dec 10 02:16:32 zuroot apache2[8299]: The Apache error log may have more information.

    Dec 10 02:16:32 zuroot systemd[1]: apache2.service: Control process exited, code=exited status=1

    Dec 10 02:16:32 zuroot systemd[1]: Failed to start LSB: Apache2 web server.

    Dec 10 02:16:32 zuroot systemd[1]: apache2.service: Unit entered failed state.

    Dec 10 02:16:32 zuroot systemd[1]: apache2.service: Failed with result 'exit-code'.
     
  4. zustudios

    zustudios Member

  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The mod_fastcgi module is not installed correctly. Please reinstall it.

    There are no problems with newer Ubuntu versions as well, there is just a apache module not fully installed on your server. Ubuntu 12.04 is outdated, it should not be used anymore for new servers.

    yes.
     
  6. zustudios

    zustudios Member

    How do I install the missing apache module?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Which Ubuntu version do you use (the link in the first post is incomplete), is it 14.04?
     
  8. zustudios

    zustudios Member

    ubuntu 15.10
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    run:

    apt-get install --reinstall libapache2-mod-fastcgi
     
  10. zustudios

    zustudios Member

    root@zuroot:~# systemctl status apache2.service -l

    apache2.service - LSB: Apache2 web server

    Loaded: loaded (/etc/init.d/apache2)

    Active: failed (Result: exit-code) since Thu 2015-12-10 15:52:31 CST; 34s ago

    Docs: man:systemd-sysv-generator(8)

    Process: 31722 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)


    Dec 10 15:52:30 zuroot apache2[31722]: *

    Dec 10 15:52:30 zuroot apache2[31722]: * The apache2 configtest failed.

    Dec 10 15:52:30 zuroot apache2[31722]: Output of config test was:

    Dec 10 15:52:30 zuroot apache2[31722]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/fcgid.load: Cannot load /usr/lib/apache2/modules/mod_fcgid.so into server: /usr/lib/apache2/modules/mod_fcgid.so: cannot open shared object file: No such file or directory

    Dec 10 15:52:30 zuroot apache2[31722]: Action 'configtest' failed.

    Dec 10 15:52:30 zuroot apache2[31722]: The Apache error log may have more information.

    Dec 10 15:52:31 zuroot systemd[1]: apache2.service: Control process exited, code=exited status=1

    Dec 10 15:52:31 zuroot systemd[1]: Failed to start LSB: Apache2 web server.

    Dec 10 15:52:31 zuroot systemd[1]: apache2.service: Unit entered failed state.

    Dec 10 15:52:31 zuroot systemd[1]: apache2.service: Failed with result 'exit-code'.

    root@zuroot:~#
     
  11. zustudios

    zustudios Member

    LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Any errors while you reinstalled the package with apt?
    Does the file /usr/lib/apache2/modules/mod_fcgid.so exist on your server?
     
  13. zustudios

    zustudios Member

    I'm going to install ubuntu 13.04 so I can use openvz so that I won't have to keep installing my os. Does
    Installing OpenVZ + Management Of VMs Through ISPConfig 3 (Debian 6.0) tutorial work with ubuntu 13.04?
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    I havent tested it with Ubuntu, but it might work.
     
  15. zustudios

    zustudios Member

    ok thank you
     

Share This Page