apache abre pagina em branco

1. apache abre pagina em branco

vandilson
vandilson

(usa Linux Mint)

Enviado em 31/12/2014 - 17:50h

por favor alguem mim ajude tenho um serve cento 5 86_64 instalei apache,php,mysql,phpmyadmin tudo funciona normal so que quando instalo arquivos que tem index.php abre pagina em branco no navegador, ja editei DirectoryIndex e nada as permições estão assim root/root mais quando eu mudo fica assim apache/apache mim ajude por favor,desde ja agradeço.
http://192.227.141.161/
http://192.227.141.161/info.php
http://192.227.141.161/phpmyadmin/
http://192.227.141.161/site/


  


2. Re: apache abre pagina em branco

Fábio Berbert de Paula
fabio

(usa Debian)

Enviado em 01/01/2015 - 07:43h

Nos teu servidor o Apache2 e o PHP estão funcionando adequadamente. Página em PHP em branco geralmente significa erro de sintaxe no código, só que a configuração padrão do PHP omite as mensagens de erro.

Crie o index.php aí nesse diretório com o seguinte conteúdo:

<?php
echo "Viva o Linux";
?>


Provavelmente vai funcionar.

Pra você descobrir qual é o erro de sintaxe no teu index.php, sugiro que habilite o display_errors no seu arquivo php.ini (ou .htaccess). Mude a linha para:

display_errors = On 


Um abraço.


3. amigo

vandilson
vandilson

(usa Linux Mint)

Enviado em 01/01/2015 - 09:42h

deu certo criei o o arquivo como vc pediu funcionou mais voce pode mim dizer como abilita display_errors no php.ini desculpa é quer sou novato


4. os erro

vandilson
vandilson

(usa Linux Mint)

Enviado em 01/01/2015 - 10:08h

amigo os erro são esses

[Thu Jan 01 05:56:27 2015] [error] [client 77.68.227.217] PHP Fatal error: Using $this when not in object context in /var/www/html/site/account.php on line 3
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1088
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1088
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1108
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1108
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1128
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1128
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1148
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1148
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1169
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1169
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1189
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1189
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1209
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1209
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1229
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1229
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1249
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1249
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1269
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1269
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1289
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1289
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1309
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1309
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Undefined variable: obj in /var/www/html/site/checkaccount.php on line 1329
[Thu Jan 01 05:59:12 2015] [error] [client 77.68.227.217] PHP Notice: Trying to get property of non-object in /var/www/html/site/checkaccount.php on line 1329
[Thu Jan 01 06:33:52 2015] [error] [client 177.125.118.16] File does not exist: /var/www/html/favicon.ico


5. Re: apache abre pagina em branco

Fábio Berbert de Paula
fabio

(usa Debian)

Enviado em 01/01/2015 - 15:58h

vandilson escreveu:

amigo os erro são esses

[Thu Jan 01 05:56:27 2015] [error] [client 77.68.227.217] PHP Fatal error: Using $this when not in object context in /var/www/html/site/account.php on line 3


O erro está na linha 3 do account.php. A partir daí cabe a você entender o código do sistema e fazer a depuração do problema.

Um abraço.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts