Page 1 of 1

php, apache on windows xp

Posted: Tue Sep 24, 2002 7:33 pm
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....

Posted: Tue Sep 24, 2002 7:36 pm
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.

what...

Posted: Tue Sep 24, 2002 7:37 pm
by gbdavidx
huh?

php

Posted: Tue Sep 24, 2002 7:37 pm
by gbdavidx
what about any .php extension?

Posted: Tue Sep 24, 2002 7:46 pm
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.

Posted: Tue Sep 24, 2002 8:22 pm
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.

Posted: Wed Sep 25, 2002 1:20 am
by Takuma
By default you need to save the document in C:\Apache2\htdocs or C:\Apache\htdocs.