Try to find DirectoryIndex in httpd.conf and check if index.php is
there.It has to look like  DirectoryIndex index.html index.php

John

David Tod Sigafoos wrote:
> I am having problems on a new install of PHP and Apache
> 
> Win2k, Php 4.2.2, apache 1.3.26
> 
> 1) Install apache.  Then browse to 127.0.0.1 and get the apache screen
> 2) unzip php and copy to c:/php
> 3) install.txt
>    a) dlls are all in the /php directory with php.exe (did not copy to
>       windows/system32
>    b) copied ini to windows director
>    c) modified ini file extension_dir = c:\php
>    d) modified ini file document_root = "c:\program files\apache
>    group\apache\htdocs\"
>    e) no extensions
> 
> 
>    Web Server Config: First try SAPI
> 
>    a) copied php4ts.dll to windows/system32 directory
>    b) added following lines to httpd.conf
>       LoadModule php4_module "c:/php/sapi/php4apache.dll"
>       AddModule mod_php4.c
>       AddType applicaton/x-httpd-php .php
> 
>    Start Server .. get message
>    [Fri Aug 30 11:43:16 2002] [warn] module mod_php4.c is already added, skipping
>    Apache/1.3.26 (Win32) running...
> 
>    Then bring up browse and try for phpinfo.php script in htdocs
> 
>    I get the 'download' screen from my netscape browser.  It doesnt
>    recognize php
> 
> 
>    Web Server Config:  Now try php.exe (cgi)
>    a) shut down server
>    b) modify http.conf.
>       # out the lines mentioned above and add the following
> 
>       ScriptAlias /php/ "c:/php/"
>       AddType application/x-httpd-php .php
>       Action application/x-httpd-php "/php/php.exe"
>       
>     c) start up server (no message as noted above)
>     d) bring up browser and try for phpinfo.php script in htdocs
> 
>     I get a blank page.  upon viewing the source it is
> 
>     <html><body></body></html>
> 
> 
>     My phpinfo.php record is
> 
>     <html>
>     <?php phpinfo(); ?>
>     </html>
> 
>     This works well from my other server ...
> 
>     So .. what have I missed ..
> 
> 



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to