logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Upgrade to Ubuntu16.04 broke apache2
Author
purvez



Joined: 13 Apr 2017
Posts: 2
Location: UK, London

PostPosted: Thu 13 Apr '17 12:09    Post subject: Upgrade to Ubuntu16.04 broke apache2 Reply with quote

Here is my full post on askubuntu:

http://askubuntu.com/questions/904042/upgrade-to-16-04-lts-has-broken-apache

Currently the biggest help I could get would be if someone would decipher what the following output means when I do :

systemctl status apache2.service

output:
===============
Code:

purvez@127:~$ systemctl status apache2.service
● 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 Thu 2017-04-13 10:01:02 BST; 11s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 6997 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 6978 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)

Apr 13 10:01:02 127.0.1.1purvez-Aspire-5750 apache2[6978]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 13 10:01:02 127.0.1.1purvez-Aspire-5750 apache2[6978]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 13 10:01:02 127.0.1.1purvez-Aspire-5750 apache2[6978]: no listening sockets available, shutting down
Apr 13 10:01:02 127.0.1.1purvez-Aspire-5750 apache2[6978]: AH00015: Unable to open logs
Apr 13 10:01:02 127.0.1.1purvez-Aspire-5750 apache2[6978]: Action 'start' failed.
Apr 13 10:01:02 127.0.1.1purvez-Aspire-5750 apache2[6978]: The Apache error log may have more information.
Apr 13 10:01:02 127.0.1.1purvez-Aspire-5750 apache2[6978]:  *
Apr 13 10:01:02 127.0.1.1purvez-Aspire-5750 apache2[6997]:  * Stopping Apache httpd web server apache2
Apr 13 10:01:02 127.0.1.1purvez-Aspire-5750 apache2[6997]:  *
Apr 13 10:01:02 127.0.1.1purvez-Aspire-5750 systemd[1]: Started LSB: Apache2 web server.
purvez@127:~$


The MAIN question is : Is Apache started and functioning or is it inactive (dead)?

The last line of the output suggests that it is working but the 5th / 6th line from the top suggests the opposite.

The errorlog is blank and the accesslog is blank as well since the day of the upgrade.

Thanks in advance
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Thu 13 Apr '17 13:25    Post subject: Reply with quote

Do you have any entries for Apache in your syslog?
Back to top
purvez



Joined: 13 Apr 2017
Posts: 2
Location: UK, London

PostPosted: Thu 13 Apr '17 14:09    Post subject: Reply with quote

Hi gijs thanks for responding. The syslog has got entries but they mirror what I've already posted. Here is the last lot of entries from this morning:

Code:

Apr 13 10:01:02 127 systemd[1]: Starting LSB: Apache2 web server...
Apr 13 10:01:02 127 apache2[6978]:  * Starting Apache httpd web server apache2
Apr 13 10:01:02 127 apache2[6978]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 13 10:01:02 127 apache2[6978]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 13 10:01:02 127 apache2[6978]: no listening sockets available, shutting down
Apr 13 10:01:02 127 apache2[6978]: AH00015: Unable to open logs
Apr 13 10:01:02 127 apache2[6978]: Action 'start' failed.
Apr 13 10:01:02 127 apache2[6978]: The Apache error log may have more information.
Apr 13 10:01:02 127 apache2[6978]:  *
Apr 13 10:01:02 127 apache2[6997]:  * Stopping Apache httpd web server apache2
Apr 13 10:01:02 127 apache2[6997]:  *
Apr 13 10:01:02 127 systemd[1]: Started LSB: Apache2 web server.


Doesn't seem to be saying much other than the same conflicting message.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Sun 14 May '17 12:37    Post subject: Reply with quote

Use

Code:

sudo netstat -tulpn


to see that what is using that port.
Back to top


Reply to topic   Topic: Upgrade to Ubuntu16.04 broke apache2 View previous topic :: View next topic
Post new topic   Forum Index -> Apache