Virtualhost

1. Virtualhost

Patrick Junio Campolina Pereira
patrickjunioo

(usa CentOS)

Enviado em 05/01/2017 - 21:26h

Ao efetuar as configurações para hospedar vários sites, vou tentar reiniciar o apache e o mesmo me retorna o seguinte erro:

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

Como devo proceder?



  


2. Re: Virtualhost

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 05/01/2017 - 21:49h

patrickjunioo escreveu:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Como devo proceder?


a principio vc procede assim ... faça o q o erro diz .. de os comandos 'systemctl status httpd.service' e 'journalctl -xe' para ver mais detalhes do erro !!!
___________________________________________________________________________________________
" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"


3. Re: Virtualhost

Patrick Junio Campolina Pereira
patrickjunioo

(usa CentOS)

Enviado em 05/01/2017 - 22:10h

[root@ip109 ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset : disabled)
Active: failed (Result: exit-code) since Qui 2017-01-05 21:25:45 BRST; 41min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 10684 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAI LURE)
Process: 10683 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, s tatus=1/FAILURE)
Main PID: 10683 (code=exited, status=1/FAILURE)

Jan 05 21:25:45 ip109.ip-198-50-139.net systemd[1]: Starting The Apache HTTP ...
Jan 05 21:25:45 ip109.ip-198-50-139.net httpd[10683]: AH00557: httpd: apr_soc...
Jan 05 21:25:45 ip109.ip-198-50-139.net httpd[10683]: AH00558: httpd: Could n...
Jan 05 21:25:45 ip109.ip-198-50-139.net systemd[1]: httpd.service: main proce...
Jan 05 21:25:45 ip109.ip-198-50-139.net kill[10684]: kill: cannot find proces...
Jan 05 21:25:45 ip109.ip-198-50-139.net systemd[1]: httpd.service: control pr...
Jan 05 21:25:45 ip109.ip-198-50-139.net systemd[1]: Failed to start The Apach...
Jan 05 21:25:45 ip109.ip-198-50-139.net systemd[1]: Unit httpd.service entere...
Jan 05 21:25:45 ip109.ip-198-50-139.net systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.



Segundo comando:

[root@ip109 ~]# journalctl -xe
-- A unidade session-2.scope está sendo iniciada.
Jan 05 22:01:01 ip109.ip-198-50-139.net CROND[10698]: (root) CMD (run-parts /etc/cron.hourly)
Jan 05 22:01:02 ip109.ip-198-50-139.net run-parts(/etc/cron.hourly)[10701]: starting 0anacron
Jan 05 22:01:02 ip109.ip-198-50-139.net anacron[10707]: Anacron started on 2017-01-05
Jan 05 22:01:02 ip109.ip-198-50-139.net run-parts(/etc/cron.hourly)[10709]: finished 0anacron
Jan 05 22:01:02 ip109.ip-198-50-139.net run-parts(/etc/cron.hourly)[10711]: starting 0yum-hourly.c
Jan 05 22:01:02 ip109.ip-198-50-139.net anacron[10707]: Will run job `cron.daily' in 33 min.
Jan 05 22:01:02 ip109.ip-198-50-139.net anacron[10707]: Will run job `cron.weekly' in 53 min.
Jan 05 22:01:02 ip109.ip-198-50-139.net anacron[10707]: Will run job `cron.monthly' in 73 min.
Jan 05 22:01:02 ip109.ip-198-50-139.net anacron[10707]: Jobs will be executed sequentially
Jan 05 22:01:02 ip109.ip-198-50-139.net run-parts(/etc/cron.hourly)[10715]: finished 0yum-hourly.c
Jan 05 22:04:57 ip109.ip-198-50-139.net sshd[5922]: fatal: Read from socket failed: Connection res
Jan 05 22:04:57 ip109.ip-198-50-139.net sshd[5922]: pam_unix(sshd:session): session closed for use
Jan 05 22:04:57 ip109.ip-198-50-139.net systemd-logind[609]: Removed session 1.
-- Subject: Sessão 1 foi terminada
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- Um sessão com o ID 1 foi terminada.
Jan 05 22:06:42 ip109.ip-198-50-139.net sshd[10718]: Accepted password for root from 200.141.178.1
Jan 05 22:06:42 ip109.ip-198-50-139.net systemd[1]: Started Session 3 of user root.
-- Subject: Unidade session-3.scope concluiu a inicialização
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade session-3.scope concluiu a inicialização.
--
-- The start-up result is done.
Jan 05 22:06:42 ip109.ip-198-50-139.net sshd[10718]: pam_unix(sshd:session): session opened for us
Jan 05 22:06:42 ip109.ip-198-50-139.net systemd-logind[609]: New session 3 of user root.
-- Subject: A nova sessão 3 foi criada para usuário o root
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- Uma nova sessão com o ID 3 foi criada para o usuário root.
--
-- O processo originador da sessão é 10718.
Jan 05 22:06:42 ip109.ip-198-50-139.net systemd[1]: Starting Session 3 of user root.
-- Subject: Unidade session-3.scope sendo iniciado
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
ESCOD
-- A unidade session-2.scope está sendo iniciada.
Jan 05 22:01:01 ip109.ip-198-50-139.net CROND[10698]: (root) CMD (run-parts /etc/cron.hourly)
Jan 05 22:01:02 ip109.ip-198-50-139.net run-parts(/etc/cron.hourly)[10701]: starting 0anacron
Jan 05 22:01:02 ip109.ip-198-50-139.net anacron[10707]: Anacron started on 2017-01-05
Jan 05 22:01:02 ip109.ip-198-50-139.net run-parts(/etc/cron.hourly)[10709]: finished 0anacron
Jan 05 22:01:02 ip109.ip-198-50-139.net run-parts(/etc/cron.hourly)[10711]: starting 0yum-hourly.c
Jan 05 22:01:02 ip109.ip-198-50-139.net anacron[10707]: Will run job `cron.daily' in 33 min.
Jan 05 22:01:02 ip109.ip-198-50-139.net anacron[10707]: Will run job `cron.weekly' in 53 min.
Jan 05 22:01:02 ip109.ip-198-50-139.net anacron[10707]: Will run job `cron.monthly' in 73 min.
Jan 05 22:01:02 ip109.ip-198-50-139.net anacron[10707]: Jobs will be executed sequentially
Jan 05 22:01:02 ip109.ip-198-50-139.net run-parts(/etc/cron.hourly)[10715]: finished 0yum-hourly.c
Jan 05 22:04:57 ip109.ip-198-50-139.net sshd[5922]: fatal: Read from socket failed: Connection res
Jan 05 22:04:57 ip109.ip-198-50-139.net sshd[5922]: pam_unix(sshd:session): session closed for use
Jan 05 22:04:57 ip109.ip-198-50-139.net systemd-logind[609]: Removed session 1.
-- Subject: Sessão 1 foi terminada
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- Um sessão com o ID 1 foi terminada.
Jan 05 22:06:42 ip109.ip-198-50-139.net sshd[10718]: Accepted password for root from 200.141.178.1
Jan 05 22:06:42 ip109.ip-198-50-139.net systemd[1]: Started Session 3 of user root.
-- Subject: Unidade session-3.scope concluiu a inicialização
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade session-3.scope concluiu a inicialização.
--
-- The start-up result is done.
Jan 05 22:06:42 ip109.ip-198-50-139.net sshd[10718]: pam_unix(sshd:session): session opened for us
Jan 05 22:06:42 ip109.ip-198-50-139.net systemd-logind[609]: New session 3 of user root.
-- Subject: A nova sessão 3 foi criada para usuário o root
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- Uma nova sessão com o ID 3 foi criada para o usuário root.
--
-- O processo originador da sessão é 10718.
Jan 05 22:06:42 ip109.ip-198-50-139.net systemd[1]: Starting Session 3 of user root.
-- Subject: Unidade session-3.scope sendo iniciado
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
ESCOC

n.hourly)
0anacron
5
0anacron
0yum-hourly.cron
33 min.
n 53 min.
in 73 min.
tially
0yum-hourly.cron
Connection reset by peer
closed for user root







200.141.178.194 port 56895 ssh2








opened for user root by (uid=0)
oot.












lines 1295-1337/1339 100%

n.hourly)
0anacron
5
0anacron
0yum-hourly.cron
33 min.
n 53 min.
in 73 min.
tially
0yum-hourly.cron
Connection reset by peer
closed for user root







200.141.178.194 port 56895 ssh2








opened for user root by (uid=0)
oot.


ESCOC

































ESCOC

































ESCOD

































ESCOD



n.hourly)
0anacron
5
0anacron
0yum-hourly.cron
33 min.
n 53 min.
in 73 min.
tially
0yum-hourly.cron
Connection reset by peer
closed for user root







200.141.178.194 port 56895 ssh2








opened for user root by (uid=0)
oot.





4. Re: Virtualhost

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 05/01/2017 - 22:19h

patrickjunioo escreveu:
Hint: Some lines were ellipsized, use -l to show in full.


Putz ... esse journalctl é chato pra ca***** kkkkkkkkkkkk

da o comando q ele sugeriu aí pra gente ver o resto

systemct httpd -l 

___________________________________________________________________________________________
" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"


5. Re: Virtualhost

Patrick Junio Campolina Pereira
patrickjunioo

(usa CentOS)

Enviado em 05/01/2017 - 22:27h

kkkkkkkkk.....

Não encontra o comando...


-bash: systemct: comando não encontrado



6. Re: Virtualhost

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 05/01/2017 - 22:39h

patrickjunioo escreveu:

kkkkkkkkk.....

Não encontra o comando...


-bash: systemct: comando não encontrado


ca***********************************lho

systemctl status httpd.service -l 

___________________________________________________________________________________________
" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"


7. Re: Virtualhost

Patrick Junio Campolina Pereira
patrickjunioo

(usa CentOS)

Enviado em 05/01/2017 - 22:53h

[root@ip109 ~]# systemctl status httpd.service -l
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset : disabled)
Active: failed (Result: exit-code) since Qui 2017-01-05 22:10:47 BRST; 42min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 10748 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAI LURE)
Process: 10747 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, s tatus=1/FAILURE)
Main PID: 10747 (code=exited, status=1/FAILURE)

Jan 05 22:10:46 ip109.ip-198-50-139.net systemd[1]: Starting The Apache HTTP Ser ver...
Jan 05 22:10:46 ip109.ip-198-50-139.net httpd[10747]: AH00557: httpd: apr_sockad dr_info_get() failed for ip109.ip-198-50-139.net
Jan 05 22:10:46 ip109.ip-198-50-139.net httpd[10747]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Se t the 'ServerName' directive globally to suppress this message
Jan 05 22:10:47 ip109.ip-198-50-139.net systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 05 22:10:47 ip109.ip-198-50-139.net kill[10748]: kill: cannot find process " "
Jan 05 22:10:47 ip109.ip-198-50-139.net systemd[1]: httpd.service: control proce ss exited, code=exited status=1
Jan 05 22:10:47 ip109.ip-198-50-139.net systemd[1]: Failed to start The Apache H TTP Server.
Jan 05 22:10:47 ip109.ip-198-50-139.net systemd[1]: Unit httpd.service entered f ailed state.
Jan 05 22:10:47 ip109.ip-198-50-139.net systemd[1]: httpd.service failed.
[root@ip109 ~]#



8. Re: Virtualhost

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 05/01/2017 - 23:00h

patrickjunioo escreveu:
Jan 05 22:10:46 ip109.ip-198-50-139.net httpd[10747]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Se t the 'ServerName' directive globally to suppress this message


o erro tá aqui velho ... v se isso te resolve ... tirei de outro fórum

Look in /etc/httpd/conf/httpd.conf for ServerName. Change that:
ServerName www.yourwebserver.com:80
Restart httpd.

___________________________________________________________________________________________
" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"


9. Re: Virtualhost

Patrick Junio Campolina Pereira
patrickjunioo

(usa CentOS)

Enviado em 05/01/2017 - 23:08h

Mauriciodez escreveu:

patrickjunioo escreveu:
Jan 05 22:10:46 ip109.ip-198-50-139.net httpd[10747]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Se t the 'ServerName' directive globally to suppress this message


o erro tá aqui velho ... v se isso te resolve ... tirei de outro fórum

Look in /etc/httpd/conf/httpd.conf for ServerName. Change that:
ServerName www.yourwebserver.com:80
Restart httpd.

___________________________________________________________________________________________
" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"


Em servername vou colocar o ip do meu servidor?



10. Re: Virtualhost

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 05/01/2017 - 23:32h

patrickjunioo escreveu:
Em servername vou colocar o ip do meu servidor?


Não faço a menor idéia ... pelo post do kra era para colocar o caminho 'www.nome-do-servidor.com:80' ... não sei se colocar o IP daria algum problema ... testa aí !!! eu não mexo com apache no Linux !!!

___________________________________________________________________________________________
" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"


11. Re: Virtualhost

Patrick Junio Campolina Pereira
patrickjunioo

(usa CentOS)

Enviado em 05/01/2017 - 23:37h

Mauriciodez escreveu:

patrickjunioo escreveu:
Em servername vou colocar o ip do meu servidor?


Não faço a menor idéia ... pelo post do kra era para colocar o caminho 'www.nome-do-servidor.com:80' ... não sei se colocar o IP daria algum problema ... testa aí !!! eu não mexo com apache no Linux !!!

___________________________________________________________________________________________
" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"


Tentei com nome e com ip, nenhum dos dois funcionaram.



12. Resolvido





Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts