erro ao iniciar o apache, httpd [RESOLVIDO]

1. erro ao iniciar o apache, httpd [RESOLVIDO]

methode
methode

(usa Arch Linux)

Enviado em 17/02/2020 - 06:33h

olá pessoal, eu estou tentando inicializar meu httpd, mas ele ocorre um erro quando eu vou ver no status saida do erro ->
[ lacia ~ ]$ systemctl status httpd
● httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disable>
Active: failed (Result: exit-code) since Mon 2020-02-17 06:26:19 -03; 7s ago
Process: 81299 ExecStart=/usr/bin/httpd -k start -DFOREGROUND (code=exited, status=1/FA>
Main PID: 81299 (code=exited, status=1/FAILURE)

Feb 17 06:26:19 lacia systemd[1]: Started Apache Web Server.
Feb 17 06:26:19 lacia httpd[81299]: AH00558: httpd: Could not reliably determine the server>
Feb 17 06:26:19 lacia httpd[81299]: (98)Address already in use: AH00072: make_sock: could n>
Feb 17 06:26:19 lacia httpd[81299]: (98)Address already in use: AH00072: make_sock: could n>
Feb 17 06:26:19 lacia httpd[81299]: no listening sockets available, shutting down
Feb 17 06:26:19 lacia httpd[81299]: AH00015: Unable to open logs
Feb 17 06:26:19 lacia systemd[1]: httpd.service: Main process exited, code=exited, status=1>
Feb 17 06:26:19 lacia systemd[1]: httpd.service: Failed with result 'exit-code'.
lines 1-14/14 (END)

e se eu vejo para ter mais informações sobre o erro com sudo journalctl -xe aparece isso ->
lacia ~ ]$ sudo journalctl -xe
Feb 17 06:26:19 lacia kernel: audit: type=1100 audit(1581931579.219:1424): pid=81287 uid=10>
Feb 17 06:26:19 lacia audit[81287]: USER_ACCT pid=81287 uid=1001 auid=1001 ses=1 msg='op=PA>
Feb 17 06:26:19 lacia kernel: audit: type=1101 audit(1581931579.235:1425): pid=81287 uid=10>
Feb 17 06:26:19 lacia polkitd[680]: Operator of unix-session:1 successfully authenticated a>
Feb 17 06:26:19 lacia kernel: audit: type=1130 audit(1581931579.269:1426): pid=1 uid=0 auid>
Feb 17 06:26:19 lacia audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 ms>
Feb 17 06:26:19 lacia polkitd[680]: Unregistered Authentication Agent for unix-process:8128>
Feb 17 06:26:19 lacia systemd[1]: Started Apache Web Server.
-- Subject: A start job for unit httpd.service has finished successfully
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit httpd.service has finished successfully.
--
-- The job identifier is 3883.
Feb 17 06:26:19 lacia httpd[81299]: AH00558: httpd: Could not reliably determine the server>
Feb 17 06:26:19 lacia httpd[81299]: (98)Address already in use: AH00072: make_sock: could n>
Feb 17 06:26:19 lacia httpd[81299]: (98)Address already in use: AH00072: make_sock: could n>
Feb 17 06:26:19 lacia httpd[81299]: no listening sockets available, shutting down
Feb 17 06:26:19 lacia httpd[81299]: AH00015: Unable to open logs
Feb 17 06:26:19 lacia systemd[1]: httpd.service: Main process exited, code=exited, status=1>
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- An ExecStart= process belonging to unit httpd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Feb 17 06:26:19 lacia kernel: audit: type=1131 audit(1581931579.385:1427): pid=1 uid=0 auid>
Feb 17 06:26:19 lacia audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg>
Feb 17 06:26:19 lacia systemd[1]: httpd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit httpd.service has entered the 'failed' state with result 'exit-code'.
Feb 17 06:27:11 lacia audit[81449]: USER_ACCT pid=81449 uid=1001 auid=1001 ses=1 msg='op=PA>
Feb 17 06:27:11 lacia sudo[81449]: sunset : TTY=pts/0 ; PWD=/home/sunset ; USER=root ; CO>
Feb 17 06:27:11 lacia audit[81449]: CRED_REFR pid=81449 uid=0 auid=1001 ses=1 msg='op=PAM:s>
Feb 17 06:27:11 lacia kernel: audit: type=1101 audit(1581931631.985:1428): pid=81449 uid=10>
Feb 17 06:27:11 lacia kernel: audit: type=1110 audit(1581931631.985:1429): pid=81449 uid=0 >
Feb 17 06:27:11 lacia kernel: audit: type=1105 audit(1581931631.985:1430): pid=81449 uid=0 >
Feb 17 06:27:11 lacia audit[81449]: USER_START pid=81449 uid=0 auid=1001 ses=1 msg='op=PAM:>
Feb 17 06:27:11 lacia sudo[81449]: pam_unix(sudo:session): session opened for user root by >
lines 1382-1425/1425 (END)
Feb 17 06:26:19 lacia kernel: audit: type=1100 audit(1581931579.219:1424): pid=81287 uid=1001 auid=1001 ses=1 msg='op=PAM:authentication grantors=pam_unix,pam_permit acct="sunset" exe="/usr/lib>
Feb 17 06:26:19 lacia audit[81287]: USER_ACCT pid=81287 uid=1001 auid=1001 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="sunset" exe="/usr/lib/polkit-1/polkit-agent-h>
Feb 17 06:26:19 lacia kernel: audit: type=1101 audit(1581931579.235:1425): pid=81287 uid=1001 auid=1001 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="sunset" exe="/us>
Feb 17 06:26:19 lacia polkitd[680]: Operator of unix-session:1 successfully authenticated as unix-user:sunset to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-units fo>
Feb 17 06:26:19 lacia kernel: audit: type=1130 audit(1581931579.269:1426): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=httpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? ad>
Feb 17 06:26:19 lacia audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=httpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 17 06:26:19 lacia polkitd[680]: Unregistered Authentication Agent for unix-process:81281:1819429 (system bus name :1.4054, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, local>
Feb 17 06:26:19 lacia systemd[1]: Started Apache Web Server.
-- Subject: A start job for unit httpd.service has finished successfully
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit httpd.service has finished successfully.
--
-- The job identifier is 3883.
Feb 17 06:26:19 lacia httpd[81299]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::4eed:fbff:fe92:ccd6%enp4s0. Set the 'ServerName' directive>
Feb 17 06:26:19 lacia httpd[81299]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Feb 17 06:26:19 lacia httpd[81299]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Feb 17 06:26:19 lacia httpd[81299]: no listening sockets available, shutting down
Feb 17 06:26:19 lacia httpd[81299]: AH00015: Unable to open logs
Feb 17 06:26:19 lacia systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- An ExecStart= process belonging to unit httpd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Feb 17 06:26:19 lacia kernel: audit: type=1131 audit(1581931579.385:1427): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=httpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? ad>
Feb 17 06:26:19 lacia audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=httpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Feb 17 06:26:19 lacia systemd[1]: httpd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit httpd.service has entered the 'failed' state with result 'exit-code'.
Feb 17 06:27:11 lacia audit[81449]: USER_ACCT pid=81449 uid=1001 auid=1001 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="sunset" exe="/usr/bin/sudo" hostname=? addr=?>
Feb 17 06:27:11 lacia sudo[81449]: sunset : TTY=pts/0 ; PWD=/home/sunset ; USER=root ; COMMAND=/sbin/journalctl -xe
Feb 17 06:27:11 lacia audit[81449]: CRED_REFR pid=81449 uid=0 auid=1001 ses=1 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal>
Feb 17 06:27:11 lacia kernel: audit: type=1101 audit(1581931631.985:1428): pid=81449 uid=1001 auid=1001 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="sunset" exe="/us>
Feb 17 06:27:11 lacia kernel: audit: type=1110 audit(1581931631.985:1429): pid=81449 uid=0 auid=1001 ses=1 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sud>
Feb 17 06:27:11 lacia kernel: audit: type=1105 audit(1581931631.985:1430): pid=81449 uid=0 auid=1001 ses=1 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr>
Feb 17 06:27:11 lacia audit[81449]: USER_START pid=81449 uid=0 auid=1001 ses=1 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=?>
Feb 17 06:27:11 lacia sudo[81449]: pam_unix(sudo:session): session opened for user root by (uid=0)

quem puder me ajudar agradeço, eu instalei o apache usando sudo pacman -Sy apache, e depois iniciei ele, mais quando vou olhar no status ta failed. eu tbm já dei sudo systemctl enable httpd e foi, mas quando vai eu inicializo com start e vou olhar no sudo systemctl status httpd, ta failed alguém me ajuda.



  


2. Re: erro ao iniciar o apache, httpd [RESOLVIDO]

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 17/02/2020 - 08:44h


de uma olhada nesse tópico

https://www.vivaolinux.com.br/topico/Apache-Web-Server/AH00558-apache2-Could-not-reliably

mesmo problema e o cara resolveu






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts