Ir para conteúdo
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Erro 500 com alguns clientes de Hospedagem

Featured Replies


Postado

Executa o comando abaixo e diz se tem algum problema:

tail -50 /usr/local/apache/logs/error_log


Postado
  • Autor
Executa o comando abaixo e diz se tem algum problema:

tail -50 /usr/local/apache/logs/error_log

Aparece isso:

[Sat Oct 15 15:44:17 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:44:19 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:45:24 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:45:32 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:46:39 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:46:49 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:46:49 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:46:49 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:46:50 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:46:50 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:46:50 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:46:50 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:46:51 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:48:01 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 15:48:06 2011] [error] [client 66.249.72.198] File does not exist: /home/kekohost/public_html/robots.txt

[Sat Oct 15 15:48:06 2011] [error] [client 66.249.72.198] File does not exist: /home/kekohost/public_html/404.shtml

[Sat Oct 15 16:11:18 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:11:28 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:11:31 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:11:37 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:11:43 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:11:49 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:11:55 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:23:25 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:23:26 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:23:27 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:23:39 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:23:40 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:30:07 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:33:45 2011] [error] [client 213.186.120.196] File does not exist: /home/kekohost/public_html/robots.txt

[Sat Oct 15 16:33:45 2011] [error] [client 213.186.120.196] File does not exist: /home/kekohost/public_html/404.shtml

[Sat Oct 15 16:33:45 2011] [error] [client 213.186.120.196] File does not exist: /home/kekohost/public_html/clientes

[Sat Oct 15 16:33:45 2011] [error] [client 213.186.120.196] File does not exist: /home/kekohost/public_html/404.shtml

[Sat Oct 15 16:33:46 2011] [error] [client 213.186.120.196] File does not exist: /home/kekohost/public_html/hospedagem-linux.html

[Sat Oct 15 16:33:46 2011] [error] [client 213.186.120.196] File does not exist: /home/kekohost/public_html/404.shtml

[Sat Oct 15 16:33:47 2011] [error] [client 213.186.120.196] File does not exist: /home/kekohost/public_html/livezilla

[Sat Oct 15 16:33:47 2011] [error] [client 213.186.120.196] File does not exist: /home/kekohost/public_html/404.shtml

[Sat Oct 15 16:34:34 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:34:36 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:37:49 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:56:44 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:56:45 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:56:47 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:56:48 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 16:56:51 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 17:00:27 2011] [warn] [client 189.1.150.17] mod_fcgid: read data timeout in 40 seconds, referer: http://kekohost.com.br/

[Sat Oct 15 17:00:27 2011] [error] [client 189.1.150.17] Premature end of script headers: server.php, referer: http://kekohost.com.br/

[Sat Oct 15 17:00:27 2011] [error] [client 189.1.150.17] File does not exist: /home/kekohost/public_html/500.shtml, referer: http://kekohost.com.br/

[Sat Oct 15 17:03:19 2011] [warn] Cannot get media type from 'x-mapp-php5'

[Sat Oct 15 17:03:48 2011] [warn] Cannot get media type from 'x-mapp-php5'


Postado
  • Autor

Mudei novamente para FCGI e o site voltou a ficar online, só a questão de fazer upload de algo maior que 80 KB não foi solucionada não é só com este site em WordPress mais em todos os sistemas que usam PHP.


Postado

Altere o arquivo php.conf e abaixo de

LoadModule fcgid_module modules/mod_fcgid.so

adicione a linha:

MaxRequestLen 524288


Postado
  • Autor
Altere o arquivo php.conf e abaixo de

LoadModule fcgid_module modules/mod_fcgid.so

adicione a linha:

MaxRequestLen 524288

No arquivo php.conf não encontrei essas linhas, nele só esta:

MaxRequestsPerProcess 500

AddHandler fcgid-script .php5 .php .php3 .php2 .phtml

FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5

FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php

FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3

FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2

FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml


# Fastcgi configuration for PHP4

AddHandler fcgid-script .php4

FCGIWrapper /usr/local/cpanel/cgi-sys/php4 .php4


# End of autogenerated PHP configuration.

PS: Fui em /usr/local/apache/conf/php.conf



Postado
  • Autor
Coloca em baixo de:


MaxRequestsPerProcess 500

Continua com o problema de dar Erro 500 na hora de enviar algo pelo WordPress ou sistemas em PHP.


Postado

tira a linha que passei e adiciona isso:


MaxProcessCount 1000

MaxRequestLen 524288

DefaultMaxClassProcessCount 100

IPCConnectTimeout 60

IPCCommTimeout 60

PHP_Fix_Pathinfo_Enable 1

IdleTimeout 900

IdleScanInterval 120

BusyTimeout 300

BusyScanInterval 120

ErrorScanInterval 9

ZombieScanInterval 9

ProcessLifeTime 3600


Postado
  • Autor

O problema foi resolvido! Graças a ajuda do meu amigo Marcelo, da OnzeHost. A solução foi adicionar o código da postagem #20 deste tópico no arquivo php.conf.


Visitante
Este tópico está impedido de receber novos posts.

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Informação Importante

Concorda com os nossos termos?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.