LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-13-2010, 08:43 AM   #1
monchor
LQ Newbie
 
Registered: Dec 2010
Location: Uruguay
Posts: 2

Rep: Reputation: 0
Smile php blank pages on apache


im using fedora 8 and have installed php5 ,and mysql and i see only php blank pages ,some idea? must be php.ini, but i am newbie installing php and apache, i disabled selinux, and grant all the permisssions to excecute..


thanks;
sorry for mi english
 
Old 12-13-2010, 10:25 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
No se preocupa por su ingles

I've noticed on my PHP server that it does (displays a blank page) if I've entered invalid syntax - have you tried loading a page with extremely basic and simple PHP?

Code:
<html>
    <head></head>
    <body><? echo('test');?></body>
</html>
 
Old 12-18-2010, 01:00 AM   #3
Fullmetal Chocobo
LQ Newbie
 
Registered: Dec 2010
Location: Central Texas
Distribution: Ubuntu (various versions)
Posts: 5

Rep: Reputation: -2
if you are getting blank pages, I'm guess the 'display_erors' is set to false, and there is an error on the page. Use

$ php -l webpage.php

to test for errors on the page. (If this doesn't run, install php-cli (ie sudo apt-get install php-cli). This will give you the the error and line location of the erorr, if any. Hope this helps. If there aren't any errors, create a new php file with the following:

Code:
<?php
phpinfo();
?>
Save the above as info.php, and load it. If it displays information about your PHP configuration, then your PHP is setup currectly. (Delete the file after you are done with it, as it gives a lot of information away, and could fall into the wrong hands, etc).
 
Old 12-19-2010, 06:49 AM   #4
monchor
LQ Newbie
 
Registered: Dec 2010
Location: Uruguay
Posts: 2

Original Poster
Rep: Reputation: 0
thanks, i fixed it, i uncomment all the "erros" strings in mi php.ini, and that helps with my task, ,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank php pages with Display Errors on? Exutable Linux - Server 4 07-07-2008 02:11 PM
PHP pages are displayed as blank pages Hirszu Linux - Software 6 03-03-2008 12:09 AM
blank pages served from apache mjenkins Linux - Server 0 11-15-2006 04:24 PM
php 5.0 blank pages (fedora) spacy2003 Linux - Software 2 02-06-2005 01:34 PM
Apache displaying only blank pages? punker22 Linux - Software 4 05-03-2004 04:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration