Mostrar errores de PHP en servidor de desarrollo | Ubuntu Server

En un servidor de producción es aconsejable NO mostrar los errores de PHP. En Ubuntu Server 10.04 sucede que por defecto está configurado para no mostrarlos (preparado para producción), sin embargo para desarrollar o por simples motivos de aprendizaje en muchas ocasiones se requiere que los errores sean visualizados.

En el caso de fallar, cuando no muestra errores, simplemente aparecerá una página en blanco. Para cambiar este comportamiento se deben seguir los siguientes pasos:

1. Ubicar el archivo de configuración de PHP, por lo general se puede encontrar en /etc/php5/apache2/php.ini , en caso de no encontrarlo una simple ejecución de phpinfo() nos puede mostrar esa ubicación:

phpinfo()

2. Ubicar la linea que contenga la instrucción display_errors (en mi caso, esta en la linea 531) y cambiar el Off por el On para que quede asi:

display_errors = On

3. Guardar  los cambios en el archivo php.ini

4. Reiniciar el servicio:

sudo /etc/init.d/apache2 restart

Es suficiente con estos pasos para habilitar la visualización de errores.

Happy coding :)

GNOME Project Mallard Online – Weekly report #04

This is my weekly report # 04:

What I have done last week

  • Still improving my skills on Django
  • I was reading a lot of books about Django Projects, I found some interesting books:
    • Django 1.2 E-commerceDjango 1.1 Testing and DebuggingPro DjangoThe Definitive Guide to Django: Web Development Done Right, Second Edition

What I will do this week

  • Finish the web interface according the schedule.
  • Start to create the Javascript functions to translate content to Mallard Syntax

Timeline

  • I’m just on time according to my schedule

Issues

  • Little problems with Django, but nothing serious.

Cool Things

  • I met cool people at IRC, great developers and friends at server:irc.gnome.org

Regards :)

GNOME Project Mallard Online – Weekly report #03

This is my weekly report # 03:

What I have done last week

  • Improving my skills on Django

What I will do this week

  • Finish the web interface
  • Start to create the Javascript functions to translate content to Mallard Syntax

Timeline

  • I’m still delay on my weekly reports, and I remade my project schedule

Issues

  • I found new things to think, about data flow of my project.
  • I found some system specs that I don’t know to develop them with Django.

Cool Things

  • I got money from my University (for Visa and Food), if I get the sponsorship to GUADEC 2010.

Cheers :)

GNOME Project Mallard Online – Weekly report #02 (Spanish Version)

Mi reporte semanal # 02:

Que hice la semana pasada

  • Empezar la construcción de la interfaz web con Django
  • Empezar la construcción de la base de datos, Use Dia para construir los diagramas lógicos.

Que hare esta semana

  • Finalizar la interfaz web
  • Empezar a crear las funciones Javascript para traducir contendio a la sintaxis de Mallard

Linea de tiempo

  • Sigo con el retraso en los reportes semanales.

Problemas

  • Tengo algunos problemas para construir la interfaz con Python sin un Framework. Por eso pedí sugerencias a mi mentor, y decidí usar Django.

Cosas Interesantes

  • Dia es una buena herramienta, para construir diagramas, rápida y simple. Aquí algunos ejemplos and enlaces que son útiles.

Saludos :)

GNOME Project Mallard Online – Weekly report #02

This is my weekly report # 02:

What I have done last week

  • Began to build web interface with Django
  • Began to build the database, I used Dia to build logic diagrams.

What I will do this week

  • Finish the web interface
  • Start to create the Javascript functions to translate content to Mallard Syntax

Timeline

  • I’m still delay on my weekly reports

Issues

  • I have some troubles to build the interface with Python without a Framework. So I ask for suggestions to my mentor, and I decided to use Django.

Cool Things

  • Dia is a good tool, to build diagrams, fast and simple. See some examples and links that are useful.

Cheers :)