Page Cannot Be Displayed error

I have installed Apache 2.0.49, Mysql 4.0.18 and PHP 4.3.6 on my
Windows XP Pro system.

The problem is that If I go to localhost html pages are displayed
with no problem but if I go to phpinfo.php I just get cannot find server,
page cannot be displayed.

There are no entries in the error logs and If I run php -i from the
command line there are no errors showing.

The access logs show a 200 response - - [27/Apr/2004:21:06:19 +0100] “GET /phpinfo.php HTTP/1.1” 200 34396

you can view my httpd configuration here

Any help appreciated :)

Could you also provide the php.ini (in a text format)?


EDIT: Disregard above…

Add to your httpd.conf file the following:

    # PHP 4.x, use:
    #if you want to parse html and/or htm files then add them to the list 
    # seperated by a space
    <IfModule mod_php4.c>
        AddType application/x-httpd-php .php .php4 .php3 .phtml 
        AddType application/x-httpd-php-source .phps

You need to add the above so apache knows to send it to the PHP preprocessor.

Sponsor our Newsletter | Privacy Policy | Terms of Service