PHP or Apache problem?
| From: | Aaron Gould | Date: | Thu, 12 Sep 2002 13:34:32 +0000 |
| Subject: | PHP or Apache problem? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-116144@lists.php.net to get a copy of this message | ||
I have recently installed Apache 2.0.40 with PHP 4.2.3 on a development
server...
When I type the IP address of the server into my browser, all I see is PHP
code. However, when I type the IP address, with the "index.php", it works
perfectly! Why would one work and not the other?
192.168.1.1 Doesn't work (displays the code in
"index.php")
192.168.1.1/index.php Does work!
I have these PHP-related entries in my httpd.conf file:
LoadModule php4_module modules/libphp4.so
DirectoryIndex index.php index.html.var
AddType application/x-httpd-php .php
Am I missing something important here?
--
Aaron Gould