php, apache on windows xp

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gbdavidx
Forum Newbie
Posts: 3
Joined: Tue Sep 24, 2002 7:33 pm

php, apache on windows xp

Post by gbdavidx »

when i install apache i believe everything works fine, here's my ip...
http://66.60.139.67 but when i try to open http://66.60.139.67/phpinfo.php i don't get anything, i believe i installed everything correctly because i followed step by step from this website http://www.evilwalrus.com/articles/read.php?aid=1 if anyone else has experiance this problem im on aim as gbdavidx for those of you who would like to im me....
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

the file phpinfo.php does not exist in whatever directory you have defined as your DocumentRoot in your httpd.conf. PHP may very well be installed correctly, but there is no file phpinfo.php, that's why you get that message.
gbdavidx
Forum Newbie
Posts: 3
Joined: Tue Sep 24, 2002 7:33 pm

what...

Post by gbdavidx »

huh?
gbdavidx
Forum Newbie
Posts: 3
Joined: Tue Sep 24, 2002 7:33 pm

php

Post by gbdavidx »

what about any .php extension?
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

in your httpd.conf, there is the line:
DocumentRoot c:/some/folder

in this directory is where you need to keep any files you want to serve with apache. it's where the 'test page for an apache installation' is located. In this directory, almost certainly, there is no file called phpinfo.php. Therefore, apache correctly returns an error.
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

..
If you want to test your php install you should make a text file that says

Code: Select all

<?php echo phpinfo(); ?>
and save it with the name phpinfo.php in the DocumentRoot directory. Then if you try to view http://yourhost.yourdomain/phpinfo.php you should see something.
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

By default you need to save the document in C:\Apache2\htdocs or C:\Apache\htdocs.
Post Reply