Click to See Complete Forum and Search --> : [RESOLVED] Install on XP worked, then didn't


Moonguide
05-11-2007, 11:33 PM
Yesterday I installed Apache 2.2.4 and php_5.2.2 on my laptop that runs
Windows xp Home Edition. I used the msi installer for each and I edited
httpd.conf to use:

DirectoryIndex index.php

When I finished, I was able to see the usual long list from an index.php
file in the htdocs directory containing only:

<? phpinfo(); ?>

Since then I have rebooted the machine, and while Apache still works,
php no longer does. I ran the msi installer again and used the repair
feature, but nothing changed. I also confirmed that Apache works by
changing DirectoryIndex back to index.html. I assume it doesn't matter
that I changed DocumentRoot to:

"D:/LocalWebServer/htdocs"

Where do I start looking to solve this problem?

Thanks.

Piranha
05-12-2007, 05:31 AM
Start by not using short tags, use <?php instead.

What is happening when you try to view a php file? How do you try to view a php file?

g m
05-12-2007, 06:19 AM
I installed ISS and PHP
and there is the same problem -
i can see the php info but no other PHP file.
dunno why.

i tried both PHP 4.# and 5 and both has the same problem - also the automatic installer and manual install...

anyone ?

Moonguide
05-12-2007, 06:19 PM
Start by not using short tags, use <?php instead.



Thanks, Piranha! That solved the problem.

It doesn't explain why it worked and then didn't, but I'm happy to have it working.

What works now is the file index.php, containing only the following:

<?php phpinfo(); ?>

Thanks again.

bradgrafelman
05-15-2007, 04:10 AM
@Moonguide: Another example of why you should never use short tags! :p Don't forget to mark this thread resolved.

@g m: Instead of hijacking someone else's thread, you should start a new one so you can discuss what you've done and what's happening.