php5apache2_2.dll giving blank pages

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
benyboi
Forum Commoner
Posts: 80
Joined: Sat Feb 24, 2007 5:37 am

php5apache2_2.dll giving blank pages

Post by benyboi »

Ok, i have the window binary zip version of php5

i then add this into the apache 2.2.4 conf file:

Code: Select all

PHPIniDir "C:\\Program Files\\PHP\\" 
LoadModule php5_module "C:\\Program Files\\PHP\\php5apache2_2.dll" 
AddType application/x-httpd-php .php
Thats all i have done to set up php.

But when i goto a php page, it comes back empty.

Any ideas?

Thanks!
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

What does

Code: Select all

<html>
	<head>
		<title>php test</title>
	</head>
	<body>
		<p>time: <?php echo date('H:i:s'); ?></p>
	</body>
</html>
print? Again a blank page?

It's either \ or / but not \\ in the php.ini. I suggest using / regardless of the OS.
User avatar
guitarlvr
Forum Contributor
Posts: 245
Joined: Wed Mar 21, 2007 10:35 pm

Post by guitarlvr »

check out this article from Apache Lounge. I have installed PHP on numorous windows systems and this has seemed to work every time.

Wayne
Post Reply