Reputation: 61
i have php 5.3.1 installed on apache2 in ubuntu 12.04 server . my site was working fine untill last week when i found some of the files were missing and website was not showing.I uploaded site again on server and now when i browse any php pages it shows a blank page and also when i try to see the source code in browser for the blank page it dosnt show any source code.the html files are all showing up.
i dont think it is the server or appache2 probelm as i have other site with php on the same server working fine. i checked with php files they are alrite.checked with the htacces.txt and that is same as the other working site on the same server. can anyone here help what the problem could be.
thanks
Rida
Upvotes: 3
Views: 46149
Reputation: 1
You should never ever use require_once or include_once.
It will burst your server memory.
Just go with include or require.
Upvotes: 0
Reputation: 2817
In my case I find out that the include_once() function which I put on the top of the page was the problem . I red the answer by Gaurav Kispotta , that is where I got the tip . so if you have the same problem first comment that out , maybe even the entire code depending on that include .
Upvotes: 0
Reputation: 1469
In my case this happened when I un-installed Zend using its uninstall.sh, I then needed to edit the Apache config /etc/apache2/sites-enabled/000-default.conf to remove any references to Zend Server. I did restart Apache, but restarting the whole machine helped to revive PHP bindings.
Upvotes: 0
Reputation: 87
Sometime this white screen may occur because of the php page that is included by include()
and include_once()
functions, which may have some error or any syntax error that are not reported by the php server.
This happens because the included php page are executed first before the actual php page and if any error that is present in the included file occurs that suppresses the error catching then further php codes are not executed and a blank page is displayed.
//
toggling each include()
or includ_once()
one at a time.Upvotes: 2
Reputation: 39
I got the same problem while installing a third party LAMP application and the cause was missing php5-mysql package.
Hope this helps others.
Upvotes: 3
Reputation: 21
php is a server side language so viewing source from browser will not yield any result if the whole codes are surrounded by php tags. Download the files from the server using an ftp client and try to open in an editor to see if there are still codes in it.
Upvotes: -4