logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: PHP files displaying blank pages
Author
bazzyboy



Joined: 01 Dec 2006
Posts: 3

PostPosted: Fri 01 Dec '06 0:47    Post subject: PHP files displaying blank pages Reply with quote

I have a problem using apache 2.2.3 and PHP 5.2

I have read numerous other posts on this website with similar problems but none of the solutions work for me.

I install apache and it works fine.
I install PHP and write my test.php page with the phpinfo() bit in.
This also works fine and everything is rosy.
As soon as i switch off my computer and start again the next day the same test.php file (completly unchanged, unmoved) now displays a blank page with the source code containg the php script.

i have tried a lot of the fixes mentioned elsewhere but no joy.
As it works on initial installation i assume everything is setup correctly but somethin is changing on shutting down and restatring windows.

any ideas?

If i uninstall php and apache then reinstall the same cycle happens again, it works, shutdown then it doesnt.

This is driving me mental!!!! Help please
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Fri 01 Dec '06 10:08    Post subject: Reply with quote

How did you include PHP in your httpd.conf?
Anything in the apache error log or php error log (did you turned on php error log?)

After your rebooting start apache in the console (cmd) with httpd -M to see if PHP modul is loaded and your syntax in httpd.conf is ok.
If yes Start apache with in the console with httpd -e debug -w to see any error.
Back to top
bazzyboy



Joined: 01 Dec 2006
Posts: 3

PostPosted: Fri 01 Dec '06 21:23    Post subject: Reply with quote

the following lines were auto installed into http.conf

PHPIniDir "C:\Program Files\PHP\"
LoadModule php5_module "C:\Program Files\PHP\php5apache2_2.dll"

Looked like this when initially worked ok.

PHP module loaded and syntax ok.

when doing the httpd -e debug -w the last line says loaded moduled php5-module
no mention of errors.
Back to top
bazzyboy



Joined: 01 Dec 2006
Posts: 3

PostPosted: Fri 01 Dec '06 21:27    Post subject: Reply with quote

Just got it.
it was the short_open_tag was set to off.
Not sure why it work initially and then stops but it is working now.
bizarre
Back to top


Reply to topic   Topic: PHP files displaying blank pages View previous topic :: View next topic
Post new topic   Forum Index -> Other Software