Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache+php
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
Juan Facundo
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2009
Posts: 138

PostPosted: Tue Apr 19, 2011 5:22 am    Post subject: apache+php Reply with quote

Buenas.

Luego de horas de buscar por todos lados, no he podido resolver una complicación que me está volviendo loco.

Es una instalación de apache+php. En principio, apache mostaba todos los códigos php, como archivo de texto. Luego pude resolver esto y ahora me está dando una página completamente en blanco. No importa el codigo php que tenga la pagina a mostrar por apache.

He intentado de todo.

Alguno puede darme una ayuda?. O alguien tiene un buen tutorial para instalar apache+php+mysql?. Los que he visto por internet son bastante desactalizados.

Gracias.
Back to top
View user's profile Send private message
hashashin
n00b
n00b


Joined: 22 Sep 2007
Posts: 37

PostPosted: Tue Apr 19, 2011 12:36 pm    Post subject: Reply with quote

Buenas, ¿miraste en /var/log/apache2/error_log cuando te sale la web en blanco? Ahí deberías ver los errores de php también.

Salud.
_________________
The world will end in 5 minutes. Please log out.
We are Microsoft. Unix is irrelevant. Openness is futile. Prepare
to be assimilated.
Blog
Back to top
View user's profile Send private message
Juan Facundo
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2009
Posts: 138

PostPosted: Tue Apr 19, 2011 7:32 pm    Post subject: Reply with quote

Al momento de apuntar hacia "info.php" los logs son los siguientes:

/var/log/apache2/error_log:
[Tue Apr 19 16:31:08 2011] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/favicon.ico
[Tue Apr 19 16:31:12 2011] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/favicon.ico
Back to top
View user's profile Send private message
Juan Facundo
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2009
Posts: 138

PostPosted: Tue Apr 19, 2011 7:41 pm    Post subject: Reply with quote

Tal vez esto ayude un poco.

Code:
master htdocs # php -v
PHP 5.3.6-pl0-gentoo (cli) (built: Apr 19 2011 00:10:52)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies


Code:
master htdocs # php info.php
<? php
phpinfo();
?>
Back to top
View user's profile Send private message
Inodoro_Pereyra
Advocate
Advocate


Joined: 03 Nov 2006
Posts: 2631
Location: En la otra punta del cable

PostPosted: Fri Apr 29, 2011 11:43 am    Post subject: Reply with quote

Pega tu /etc/apache2/httpd.conf por favor.

Salud!
_________________
Mi Blog.

Si no fuera por C, estaríamos escribiendo programas en BASI, PASAL y OBOL.
Back to top
View user's profile Send private message
Theasker
l33t
l33t


Joined: 18 Nov 2006
Posts: 656
Location: Zaragoza (Spain)

PostPosted: Sat Apr 30, 2011 7:41 am    Post subject: Reply with quote

a mi me suena q me pasaba algo parecido y me volvía loco buscando y al final fue que estaba desactivado en php.ini lo de el comienzo corto del código de php -> <? ?>, por lo que no reconocía el código como php.
_________________
"Oigo y olvido. Veo y recuerdo. Hago y comprendo"
Back to top
View user's profile Send private message
Juan Facundo
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2009
Posts: 138

PostPosted: Sat Apr 30, 2011 12:07 pm    Post subject: Reply with quote

Hola gente, disculpen la demora pero he tenido varios trabajos que atender y no me dejaban mucho tiempo libre.

La cosa era muy sencilla y me la solucionó mi hermano que trabaja mucho con diseño de paginas web. El error está en este código php, existe un espacio entre "<?" y "php". El me dijo que ese espacio ahí era el problema. Y precisamente, borré ese espacio y funcionó de maravillas.

código erroneo:
<? php
phpinfo();
?>
código correcto:
<?php
phpinfo();
?>

Gracias por sus ayudas.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum