1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Apache refuse to start

Discussion in 'Apache' started by Zappoboy, Aug 25, 2018.

  1. #1
    I install VSFTPD successfully, reboot the computer.
    Apache 2 server refuse to start???? Sudo service apache2 start - does not help
    I purge VSFTPD and apache server happy again.
    Anyone?
     
    Zappoboy, Aug 25, 2018 IP
  2. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #2
    Did you get an error message when tried to start Apache?
    You can get more details about the problem by running the following command:
    systemctl status apache2
    Code (markup):
    or
    journalctl -u apache2
    Code (markup):
     
    RoseHosting, Aug 26, 2018 IP
  3. Zappoboy

    Zappoboy Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Thanks for answering.
    server@Apache-server:~$ systemctl status apache2
    ● apache2.service - LSB: Apache2 web server
    Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
    Drop-In: /lib/systemd/system/apache2.service.d
    └─apache2-systemd.conf
    Active: inactive (dead) since จ. 2018-08-27 08:45:36 +07; 29s ago
    Docs: man:systemd-sysv-generator(8)
    Process: 1966 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS
    Process: 1771 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCE

    ส.ค. 27 08:45:36 Apache-server apache2[1771]: (98)Address already in use: AH0007
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: (98)Address already in use: AH0007
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: no listening sockets available, sh
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: AH00015: Unable to open logs
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: Action 'start' failed.
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: The Apache error log may have more
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: *
    ส.ค. 27 08:45:36 Apache-server apache2[1966]: * Stopping Apache httpd web serve
    ส.ค. 27 08:45:36 Apache-server apache2[1966]: *
    ส.ค. 27 08:45:36 Apache-server systemd[1]: Started LSB: Apache2 web server.


    server@Apache-server:~$ journalctl -u apache2
    -- Logs begin at จ. 2018-08-27 08:45:13 +07, end at จ. 2018-08-27 08:47:28 +07.
    ส.ค. 27 08:45:32 Apache-server systemd[1]: Starting LSB: Apache2 web server...
    ส.ค. 27 08:45:32 Apache-server apache2[1771]: * Starting Apache httpd web serve
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: AH00558: apache2: Could not reliab
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: (98)Address already in use: AH0007
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: (98)Address already in use: AH0007
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: no listening sockets available, sh
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: AH00015: Unable to open logs
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: Action 'start' failed.
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: The Apache error log may have more
    ส.ค. 27 08:45:36 Apache-server apache2[1771]: *
    ส.ค. 27 08:45:36 Apache-server apache2[1966]: * Stopping Apache httpd web serve
    ส.ค. 27 08:45:36 Apache-server apache2[1966]: *
    ส.ค. 27 08:45:36 Apache-server systemd[1]: Started LSB: Apache2 web server.
    lines 1-14/14 (END)
     
    Zappoboy, Aug 26, 2018 IP
  4. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    413
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #4
    It looks like a port issue make sure vsftp confige is okay and using port 21 not 80
     
    hostechsupport, Aug 27, 2018 IP
  5. Zappoboy

    Zappoboy Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    OK, I will check that of course. A bit surprising though that an FTP program uses port 80 as default.
     
    Zappoboy, Aug 27, 2018 IP
  6. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    413
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #6
    > Ok you can check with this.
     
    hostechsupport, Aug 27, 2018 IP
  7. Zappoboy

    Zappoboy Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #7
    No port 80 problem. I did disable Ipv6 in config.
    FTP still do not work but the apache server did not shut down this time.
    Went for dinner 30 minutes. When I came back all my web sites down.
    I purged VSFTPD, restart the computer. Apache server is up and running but web sites till down.
    I have no other choice than activate my old server. At least it works.
    This sickens me to much.
     
    Zappoboy, Aug 27, 2018 IP
  8. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #8
    '(98)Address already in use' means that there is a port collision. Make sure that there are no other services listening on port 80 and 443. You can check this using the following command:
    netstat -tunlp | grep -E ':80\W|:443\W'
    Code (markup):
    and check the log files for more details as suggested.
     
    RoseHosting, Sep 1, 2018 IP