Toon posts:

apache wil niet meer starten na rebooten server.

Pagina: 1
Acties:

Verwijderd

Topicstarter
code:
1
2
3
4
5
6
Failed to start apache : 
[Mon Mar 29 22:17:24 2004] [warn] child process 9617 still did not exit, sending a SIGTERM
[Mon Mar 29 22:17:24 2004] [warn] child process 9618 still did not exit, sending a SIGTERM
[Mon Mar 29 22:17:33 2004] [error] child process 9616 still did not exit, sending a SIGKILL
[Mon Mar 29 22:17:34 2004] [error] could not make child process 9616 exit, attempting to continue anyway
[Mon Mar 29 22:17:34 2004] [notice] caught SIGTERM, shutting down
Situatie:
Ik heb een webserver proliant 3000/500 met 512mb ram met daarop debian 3.0 woody. Raid5 met voldoende schijfruime.
Met twee nic's 192.168.1.2 100mbit en zit op WAN en 192.168.2.1 1000mbit zit op LAN poorten door verbonden (brigde).

Ik heb het volgende al geprobeerd:
Apache gedeinstalleerd en weer geinstalleerd. httpd.conf mijn virtuals gecopieerd en jawel toen draaide hij even! Daarna kwam hij weer met de bovenstaande foutmelding!

de httpd.conf als volgt aangepast
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
< ServerType standalone
---
> ServerType inetd
===
< # LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
---
> LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
===
< #ServerName new.host.name
---
> ServerName http://192.168.1.2
===
<     DirectoryIndex index.html index.htm index.shtml index.cgi
---
>     DirectoryIndex default.html index.html index.htm index.php
===
< #NameVirtualHost 12.34.56.78
<
---
> NameVirtualHost 192.168.1.2
===
>
> <VirtualHost 192.168.1.2>
>     DocumentRoot /home/sites/xxxx.nl/web
>     ServerName www.xxxx.nl
>     LogLevel emerg
>     LogFormat "combined"
>     TransferLog /home/sites/xxxx.nl/logs/web.log
> </VirtualHost>


Deze instructie vondt ik ook nog op GOT werk ook niet!
code:
1
2
3
echo "33554432" > /proc/sys/kernel/shmmax
cat /proc/sys/kernel/shmmax
  33554432


Ik snap hem niet hier het error.log
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[Mon Mar 29 21:13:22 2004] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Mon Mar 29 21:13:22 2004] [alert] apache: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Mon Mar 29 21:13:23 2004] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Mon Mar 29 21:13:23 2004] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Mon Mar 29 21:13:23 2004] [alert] apache: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Mon Mar 29 21:13:23 2004] [crit] (98)Address already in use: make_sock: could not bind to port 80
[Mon Mar 29 21:13:23 2004] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Mon Mar 29 21:13:23 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Mon Mar 29 21:13:23 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Mar 29 21:14:55 2004] [notice] SIGHUP received.  Attempting to restart
[Mon Mar 29 21:14:55 2004] [alert] apache: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Mon Mar 29 21:14:56 2004] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Mon Mar 29 21:14:56 2004] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Mon Mar 29 21:14:56 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Mon Mar 29 21:14:56 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Mar 29 21:23:26 2004] [error] [client 192.168.2.2] File does not exist: /var/www/VARouwhorst
[Mon Mar 29 21:36:50 2004] [notice] SIGHUP received.  Attempting to restart
[Mon Mar 29 21:36:52 2004] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Mon Mar 29 21:36:52 2004] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 configured -- resuming normal operations
[Mon Mar 29 21:36:52 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Mon Mar 29 21:36:52 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Mar 29 21:43:29 2004] [notice] SIGHUP received.  Attempting to restart
[Mon Mar 29 21:43:33 2004] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Mon Mar 29 21:43:33 2004] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 configured -- resuming normal operations
[Mon Mar 29 21:43:33 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Mon Mar 29 21:43:33 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Mar 29 22:17:22 2004] [warn] child process 9616 still did not exit, sending a SIGTERM
[Mon Mar 29 22:17:24 2004] [warn] child process 9617 still did not exit, sending a SIGTERM
[Mon Mar 29 22:17:24 2004] [warn] child process 9618 still did not exit, sending a SIGTERM
[Mon Mar 29 22:17:33 2004] [error] child process 9616 still did not exit, sending a SIGKILL
[Mon Mar 29 22:17:34 2004] [error] could not make child process 9616 exit, attempting to continue anyway
[Mon Mar 29 22:17:34 2004] [notice] caught SIGTERM, shutting down


:?

[ Voor 7% gewijzigd door Verwijderd op 29-03-2004 23:25 ]


  • Dennis
  • Registratie: Februari 2001
  • Laatst online: 17:06
En

code:
1
killall httpd


?

[ Voor 40% gewijzigd door Dennis op 29-03-2004 23:27 ]


Verwijderd

Topicstarter
code:
1
bash: kill: httpd: no such pid

Dat werkt dus ook niet!

Ik heb hem zelfs al gereboot had het zelfde effect moeten hebben!

  • Wilke
  • Registratie: December 2000
  • Laatst online: 19:24
En wat is er precies onduidelijk aan de foutmelding :?

  • sebas
  • Registratie: April 2000
  • Laatst online: 16-12-2025
Wat is hiermee?
[error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic ?

\edit: hehe, Wilke :)

[ Voor 12% gewijzigd door sebas op 30-03-2004 00:00 ]

Everyone complains of his memory, no one of his judgement.


Verwijderd

Topicstarter
sebas schreef op 29 maart 2004 @ 23:59:
Wat is hiermee?
[error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic ?

\edit: hehe, Wilke :)
Tja deze bestaat niet!
/etc/apache/share/magic

maar moet er volgens mij ook niet zijn want die heb ik nooit gehad en op mijn test bak draait hij zonder ook prima!
Nou ja hij komt wel in het error.log voor maar hij loopt er niet op vast!
Zie hier onder de foutmelding van de TEST bak.

TEST BAK error.log dus niet die van de Proliant Server
code:
1
2
3
4
5
6
[Fri Mar 26 20:33:05 2004] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri Mar 26 20:33:05 2004] [alert] apache: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Fri Mar 26 20:33:06 2004] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri Mar 26 20:33:06 2004] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri Mar 26 20:33:06 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri Mar 26 20:33:06 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)

[error] (2)No such file or directory: mod_mime_magic: can't read magic
Hee heb dit ene probleem dan opgelost
in httpd.conf wordt verwezen naar share/magic
maar dit moet zijn /etc/magic
nu geeft hij deze fout melding niet meer in het log maar hij start nog steeds niet!!

[ Voor 65% gewijzigd door Verwijderd op 30-03-2004 00:59 ]


Verwijderd

Topicstarter
Ik snap niet echt goed waarom hij het nu wel doet maar ik heb in de httpd.conf
code:
1
ServerType inetd
veranderd in
code:
1
ServerType standalone
En nu draait hij wel in eens! Snappen doe ik het niet want dat had ik weken terug al veranderd! En op Apply gedrukt!
Maar goed hij doet het nu ik hoop ook dat apache wordt herstart als hij vast loopt!

Maar het resultaat is dat telt >:)

Heeft iemmand hier ervaring mee?
Waarom ik apache niet kan draaien als inetd :?

  • Jelmer
  • Registratie: Maart 2000
  • Laatst online: 19:43
Was het eerste dat me opviel in je diff, maar goed.

inetd is een tcpwrapper, een programma die apache weer aanroept. inetd gaat dus op poort 80 luisteren en als er een client is, start hij 1 apache proces op welke die client af handeld.

Maar goed, lees de manual er maar op na.
Pagina: 1