We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Suse Apache MySql PHP Blank Page

Medium Priority
986 Views
Last Modified: 2013-12-05
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?
Comment
Watch Question

Most Valuable Expert 2011
Author of the Year 2014

Commented:
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.

Author

Commented:
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 
Most Valuable Expert 2011
Author of the Year 2014
Commented:
Actually, I can't get to either of those.  FF says,  Connection Interrupted
The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please try again.

Where is your site hosted?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Commented:
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.

Commented:
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

Author

Commented:
The adminstrator decided to re-install the server. Thank you for your help.
Most Valuable Expert 2011
Author of the Year 2014

Commented:
That's good news.  Hope it helps, ~Ray

Author

Commented:
Thank you for spending the time and looking at the links..
Most Valuable Expert 2011
Author of the Year 2014

Commented:
Thanks for the points!  I have a hunch that things will be a LOT better soon.  Best, ~Ray
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.