Link to home
Start Free TrialLog in
Avatar of hreyestech
hreyestech

asked on

Suse Apache MySql PHP Blank Page

I write a small php file :
<?php
echo Hello World!;
?>
This works fine. I also succesfully run my PhpMyAdmin interface without a problem. However, when I try to run a php website it keeps giving me a blank page. I read documentation on how to correct this without success.  I am currently running Apache2, Suse and PHP5 with MySql database. How do I begin in correcting this?
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Try putting

error_reporting(E_ALL)

at the top of the script. -- From your post above it looks like you have invalid characters in the echo statement.
Avatar of hreyestech
hreyestech

ASKER

Actually this was a typo  
<?php
echo 'Hello World!';
?>

This works find on my server... I am getting blank pages on my website..

http://216.139.152.175/test.php tests positive.  However, when I want to display my webpage It comes up blank.. http://216.139.152.175/index.php 
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A useful way to diagnose this is to edit your php.ini file (on suse usually in /etc/php5/apache2/php5.ini or something similar).  

There's a section to do with logging, set it to log php errors to a file, restart apache and browse to your page.  After getting a blank page see if any errors were logged in the log file.
send screen shots from test.php and index.php

also HTML source code received bu browser .....(show source code)

and if it is okay with you we need to see index.php code
The adminstrator decided to re-install the server. Thank you for your help.
That's good news.  Hope it helps, ~Ray
Thank you for spending the time and looking at the links..
Thanks for the points!  I have a hunch that things will be a LOT better soon.  Best, ~Ray