Fórum cPanel: Problemas no apache - Fórum cPanel

Ir para


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problemas no apache Não reinicia

#1 Membro offline   luludesigner 

  • Membro Ativo
  • PipPipPip
  • Grupo: Membros
  • Posts: 54
  • Cadastrado: 20-dezembro 05

Posted 05 maio 2008 - 05:18

Olá amigo(a)s,

Estou com um problema no apache, o mesmo encontra-se offline, após várias tentativas de reiniciá-lo o mesmo não volta.

veja o erro.

service httpd restart
/etc/init.d/httpd restart: httpd not running, trying to start
[Mon May 5 16:00:02 2008] [warn] module bwlimited_module is already loaded,
skipping
Syntax error on line 2417 of /usr/local/apache/conf/httpd.conf:
BytesLog takes one argument, the filename of the bytes log
/etc/init.d/httpd restart: httpd could not be started



Log do apache

root@brasil [~]# tail /usr/local/apache/logs/error_log
[Mon May 5 14:25:36 2008] [error] [client 189.15.202.84] File does not exist: /home/minasbr/public_html/minas_arquivos/cx_sup_e_cent.gif
[Mon May 5 14:25:36 2008] [error] [client 189.15.202.84] File does not exist: /home/minasbr/public_html/404.shtml
[Mon May 5 14:25:39 2008] [error] [client 189.15.202.84] File does not exist: /home/formato/public_html/alvorada_arquivos/cx2_meio.jpg
[Mon May 5 14:25:39 2008] [error] [client 189.15.202.84] File does not exist: /home/minasbr/public_html/404.shtml
[Mon May 5 14:26:47 2008] [error] [client 189.10.123.179] File does not exist: /usr/local/apache/htdocs/favicon.ico
[Mon May 5 14:26:57 2008] [error] [client 189.10.123.179] File does not exist: /home/german/public_html/_vti_bin/afehi/check.js
[Mon May 5 14:27:05 2008] [error] [client 189.10.123.179] File does not exist: /home/german/public_html/_vti_bin/afehi/check.js
[Mon May 5 14:29:08 2008] [notice] SIGUSR1 received. Doing graceful restart
Syntax error on line 2521 of /usr/local/apache/conf/httpd.conf:
BytesLog takes one argument, the filename of the bytes log

Alguem sabe como resolver???

Se alguem puder me ajudar eu ficarei grata!

rolleyes.gif
0

#2 Membro offline   deieno 

  • Moderador
  • Grupo: Moderadores
  • Posts: 316
  • Cadastrado: 27-novembro 04
  • Location:Florianópolis

Posted 05 maio 2008 - 05:29

faz tempo que você não compila o apache? sabe dizer se o arquivo httpd.conf é o antigo que era editado na unha ou o novo do easyapache3 que é gerado pelo cPanel?

Se faz uns 6 meses que você não compila o apache é o antigo. Neste caso você vai ter que editar o arquivo httpd.conf
Abra e dê uma olhadinha nas linhas 2417 e 2521
Alguma coisa deve estar errado por aí.

Na pior das alternativas já que não há muito instrumento e tempo para análise, experimente recompilar o apache (/scripts/easyapache) pois o mesmo irá reconstruir o httpd.conf para você.
0

#3 Membro offline   flycode 

  • Administrador Linux
  • Grupo: Administradores
  • Posts: 1263
  • Cadastrado: 10-novembro 04
  • Gender:Male

Posted 05 maio 2008 - 05:54

Oi Lú, quanto tempo guria. Bom, siga os passos para resolver o seu problemito:


Acesse a shell:
cd /usr/local/cpanel/apache
/usr/local/apache/bin/apxs -iac mod_log_bytes.c

Diga ae o resultado, se resolveu.

Bjs.
0

#4 Membro offline   luludesigner 

  • Membro Ativo
  • PipPipPip
  • Grupo: Membros
  • Posts: 54
  • Cadastrado: 20-dezembro 05

Posted 08 maio 2008 - 05:32

Fly, realmente to sumida, to sem tempo de tudo, cheia dos trabalhos e provas na facul, sem contar que fiquei uns dias sem internet...

obrigada a todos pela ajuda, mas o problema eu abri um ticket no cpanel .net e resolveram e acho que a solução do fly funciona, pois eles me falaram algo de log mesmo

mensagem deles...

There was an extra space in the byteslog line. I am attempting a recompile now
and will keep you posted with the status.

minutos depois.

Hello,

The build is taking a bit longer then expected. Basically, the problem is one
of the domain names configuration in /var/cpanel/userdata (specifically
xxxxxxx.com.br) had a space in it which was throwing off the syntax of the
Apache configuration file. I will keep you posted with the status.

minutos depois

Hello,

The Apache/PHP build was successful. Please confirm how things are working.

Thank you.



obrigada mais uma vez pela atenção fly, THANKS para voce, rs.

This post has been edited by luludesigner: 08 maio 2008 - 05:33

0

#5 Membro offline   Thiago Avelino 

  • Membro Avançado
  • PipPipPipPip
  • Grupo: Membros
  • Posts: 84
  • Cadastrado: 26-março 08
  • Gender:Male
  • Location:São Paulo

Posted 08 julho 2008 - 11:02

Bom dia pessoal, para resolver este erro basta recompilar o apache, assim ele vai fazer UPDate da versão 2.*.* para 2.*.9, qual quer duvida só entra em contato.
0

#6 Membro offline   samuca2 

  • Novato
  • Pip
  • Grupo: Membros
  • Posts: 9
  • Cadastrado: 26-julho 08

Posted 18 agosto 2008 - 07:49

bom galera sobre o apache tive um problema serio ele nao reniciava tentei

telnet localhost 80 deu erro ai tentei telnet 208.109.31.178 80 deu erro
, ai fui no log do apache vi erro da porta 80

isto depois de recopilar o apache tentar reniciar nada.

bom entrei no arquivo httpd.conf observei que whm colocou ip do server assim que tava


PidFile logs/httpd.pid
LockFile logs/accept.lock
# Defined in /var/cpanel/cpanel.config: apache_port
Listen 201.1.15:80
Timeout 300
User nobody
Group nobody
ExtendedStatus On
ServerAdmin root@serverdominio.com.br
ServerName server.dominio.com.br
LogLevel warn
ServerSignature On


soluçao bem simples retirei ip deixei assim Listen 80


PidFile logs/httpd.pid
LockFile logs/accept.lock
# Defined in /var/cpanel/cpanel.config: apache_port
Listen 80
Timeout 300
User nobody
Group nobody
ExtendedStatus On
ServerAdmin root@serverdominio.com.br
ServerName serverdominio.com.br
LogLevel warn
ServerSignature On


depois

/etc/rc.d/init.d/httpd restart

/etc/init.d/httpd restart

service httpd status

estatus voltou ao normal solução do problema
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 membro(s), 1 visitante(s), 0 membro(s) anônimo(s)