blank page centos LAMP

if you get a blank page on centos the following might be useful

- Do u have th following rows in http.conf? (my path was /etc/httpd/conf/httpd.conf)

LoadModule php5_module /usr/lib/httpd/modules/libphp5.so # I didnt have to add this because was already there

AddType application/x-http-php .php
DirectoryIndex index.html index.php


- try to run
yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml




- try to check if in your php pages you have
instead of


-check your url for typing errors
(sorry for this but I had to write it!)


Other useful:
check the error logs in the folder /var/log/httpd/
ADVANCED: http://www.xenocafe.com/tutorials/linux/centos/apache_web_server/index.php