[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 961
  • Last Modified:

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?
0
hreyestech
Asked:
hreyestech
1 Solution
 
Ray PaseurCommented:
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.
0
 
hreyestechAuthor 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 
0
 
Ray PaseurCommented:
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?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
hyarionCommented:
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.
0
 
agamalCommented:
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
0
 
hreyestechAuthor Commented:
The adminstrator decided to re-install the server. Thank you for your help.
0
 
Ray PaseurCommented:
That's good news.  Hope it helps, ~Ray
0
 
hreyestechAuthor Commented:
Thank you for spending the time and looking at the links..
0
 
Ray PaseurCommented:
Thanks for the points!  I have a hunch that things will be a LOT better soon.  Best, ~Ray
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now