Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [DE] apache startet nicht  (Read 2581 times)

Offline harley-peter

  • User
  • Posts: 1.024
[DE] apache startet nicht
« on: 2015/04/27, 15:39:40 »
Hi,

ich habe Apache2 installiert aber er mag nicht starten. Leider kann ich mit den Statusmeldungen nicht viel anfangen:

Code: [Select]
apache2 status
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: active (exited) since Mo 2015-04-27 15:29:49 CEST; 32s ago

Apr 27 15:29:49 thinkpad apache2[30268]: Starting web server: apache2AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127...this message
Apr 27 15:29:49 thinkpad apache2[30268]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 27 15:29:49 thinkpad apache2[30268]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 27 15:29:49 thinkpad apache2[30268]: no listening sockets available, shutting down
Apr 27 15:29:49 thinkpad apache2[30268]: AH00015: Unable to open logs
Apr 27 15:29:49 thinkpad apache2[30268]: Action 'start' failed.
Apr 27 15:29:49 thinkpad apache2[30268]: The Apache error log may have more information.
Apr 27 15:29:49 thinkpad apache2[30268]: .

Die error.log vom apache ist leer. Weiß jemand Rat?

« Last Edit: 2015/04/27, 16:37:37 by harley-peter »

Offline piper

  • User
  • Posts: 1.785
  • we are the priests ... of the temples of syrinx
Re: apache startet nicht
« Reply #1 on: 2015/04/27, 16:23:36 »
What happens after you do this

Code: [Select]
systemctl stop apache2.service
Code: [Select]
systemctl start apache2.service
Code: [Select]
systemctl enable apache2.service
And as root show the output of

Code: [Select]
netstat -ltnp | grep ':80'
Free speech isn't just fucking saying what you want to say, it's also hearing what you don't want to fucking hear

I either give too many fucks or no fucks at all, it's like I cannot find a middle ground for a moderate fuck distribution, it's like what the fuck

Offline harley-peter

  • User
  • Posts: 1.024
Re: apache startet nicht
« Reply #2 on: 2015/04/27, 16:42:39 »
I found the problem: pywwetha used the port 80. First I killed the process and then I have to stop first apache although is was not running! Then after a restart it works.

Do the system need pywwetha or can I remove the package?

Offline Penyelam

  • User
  • Posts: 222
Re: apache startet nicht
« Reply #3 on: 2015/04/27, 16:47:07 »
Peter,
pywwetha brauchst du für die lokale Version vom Siduction Manual.

Offline piper

  • User
  • Posts: 1.785
  • we are the priests ... of the temples of syrinx
Re: apache startet nicht
« Reply #4 on: 2015/04/27, 17:07:50 »
Quote from: harley-peter
I found the problem: pywwetha used the port 80. First I killed the process and then I have to stop first apache although is was not running! Then after a restart it works.

Do the system need pywwetha or can I remove the package?
Yup, why I asked  for

netstat -ltnp | grep ':80'

as root (if you don't use manual)

Code: [Select]
kill -9 19971
then

Code: [Select]
apt-get remove --purge pywwetha
That removes

Code: [Select]
pywwetha* sidu-manual* sidu-manual-data*
You can always reinstall if needed
Free speech isn't just fucking saying what you want to say, it's also hearing what you don't want to fucking hear

I either give too many fucks or no fucks at all, it's like I cannot find a middle ground for a moderate fuck distribution, it's like what the fuck

Offline harley-peter

  • User
  • Posts: 1.024
Re: apache startet nicht
« Reply #5 on: 2015/04/27, 17:18:45 »
Thank's!

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
Re: apache startet nicht
« Reply #6 on: 2015/04/27, 17:36:52 »
or one could use apache with the right settings ....

it is utter bullshit (false since years) that apache say: I'm your only god - and i claim all *:80 Adresses for me :) - so changing the default vhost to 127.0.0.1:80 will change this stupid apache behaviour.
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

Offline piper

  • User
  • Posts: 1.785
  • we are the priests ... of the temples of syrinx
Re: apache startet nicht
« Reply #7 on: 2015/04/27, 17:52:00 »
Quote from: melmarker
or one could use apache with the right settings ....

it is utter bullshit (false since years) that apache say: I'm your only god - and i claim all *:80 Adresses for me - so changing the default vhost to 127.0.0.1:80 will change this stupid apache behaviour.
True, and if he said he used manual, I would have said to change vhost, my bad because I was in a hurry and shouldn't have replied at all without the correct answer(s) :)
Free speech isn't just fucking saying what you want to say, it's also hearing what you don't want to fucking hear

I either give too many fucks or no fucks at all, it's like I cannot find a middle ground for a moderate fuck distribution, it's like what the fuck

joachimF

  • Guest
Re: apache startet nicht
« Reply #8 on: 2015/06/09, 16:38:23 »
changing the default vhost to 127.0.0.1:80 will change this stupid apache behaviour.

had i to change the data file /etc/apache2/sites-available/000-default.conf ?

old <VirtualHost *:80>
new <VirtualHost 127.0.0.1:88>

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
Re: apache startet nicht
« Reply #9 on: 2015/06/09, 16:56:32 »
yes - and i would suggest the usage of port 80 instead 88
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

hefee

  • Guest
Re: apache startet nicht
« Reply #10 on: 2015/06/11, 09:34:25 »
Nope you have to update /etc/apache2/ports.conf:

Code: [Select]
Listen <IPv4>:80
Listen [<IPv6>]:80

<IfModule ssl_module>
        Listen <IPv4>:443
</IfModule>

<IfModule mod_gnutls.c>
        Listen <IPv4>:443
</IfModule>

The ports.conf discribe all ports/ips that apache will listen to. The VirtualHost is only a logic on what <IP> it should give you awnser. You don't have to touch <VirtualHost *:80>. This only means, for all ip addresse, that apache will listen to give me the result. If you wanna change the port from 80->88 than you also have to add this port to port.conf first.