Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Apache nie startuje z virtualnymi serverami., Błędy przy starcie apache.
Czarekplpl
post 23.11.2015, 15:10:30
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 23.11.2015

Ostrzeżenie: (0%)
-----


Witam.
Mam na swoim dedyku Centos 7 i Apache 2.4.6
Problem ma taki, że nie mogę skonfigurować servera virtualnego. Jak tylko dodam jakąś domenę apache się nie podnosi.
Logi są takie:
Kod
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since Mon 2015-11-23 21:49:06 CST; 5s ago
  Process: 21713 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 21711 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 21711 (code=exited, status=1/FAILURE)

Nov 23 21:49:06 kukuniek systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Nov 23 21:49:06 kukuniek kill[21713]: kill: cannot find process ""
Nov 23 21:49:06 kukuniek systemd[1]: httpd.service: control process exited, code=exited status=1
Nov 23 21:49:06 kukuniek systemd[1]: Failed to start The Apache HTTP Server.
Nov 23 21:49:06 kukuniek systemd[1]: Unit httpd.service entered failed state.


Kod
[root@kukuniek conf]# journalctl -xn
-- Logs begin at Mon 2015-11-23 18:28:15 CST, end at Mon 2015-11-23 21:49:06 CST. --
Nov 23 21:48:45 kukuniek postfix/smtp[21684]: 8A27F80ECE: to=<unplcn@gmail.com>, relay=gmail-smtp-in.l.google.com[64.233.189.26]:25, delay=5.3, delays=0.1/0.
Nov 23 21:48:45 kukuniek postfix/qmgr[16376]: 8A27F80ECE: removed
Nov 23 21:49:05 kukuniek systemd[1]: Stopping The Apache HTTP Server...
-- Subject: Unit httpd.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun shutting down.
Nov 23 21:49:06 kukuniek systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Nov 23 21:49:06 kukuniek kernel: type=1400 audit(1448286546.570:386556): avc:  denied  { write } for  pid=21711 comm="httpd" name="1cdeli.com.cn" dev="xvda1"
Nov 23 21:49:06 kukuniek systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Nov 23 21:49:06 kukuniek kill[21713]: kill: cannot find process ""
Nov 23 21:49:06 kukuniek systemd[1]: httpd.service: control process exited, code=exited status=1
Nov 23 21:49:06 kukuniek systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Nov 23 21:49:06 kukuniek systemd[1]: Unit httpd.service entered failed state.


Jak wywalę wirtualkę to chodzi a jak próbuję skonfigurować jakąś virtulaną domenę to pojawiają się te błędy.
Przy czy wcześniej wszystko działało dobrze w identycznej konfiguracji, dlatego poprostu już tracę głowę.
Czy ktoś może mi pomóc questionmark.gif

Pozdrawiam
Czarek.
Go to the top of the page
+Quote Post
mar1aczi
post 23.11.2015, 15:16:10
Post #2





Grupa: Zarejestrowani
Postów: 731
Pomógł: 141
Dołączył: 9.05.2011
Skąd: śląskie

Ostrzeżenie: (0%)
-----


Nie masz czasem włączonego SELinuxa?


--------------------
Szanuj innych czas! Kliknij , gdy pomocną wskazówkę otrzymasz.
Go to the top of the page
+Quote Post
Czarekplpl
post 23.11.2015, 16:51:33
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 23.11.2015

Ostrzeżenie: (0%)
-----


Tak to był Selinux. Wielkie Dzięki.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 23.04.2024 - 16:39