-----Original Message-----
From: paradiddles [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 17:47 pm
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] HTTP 404 File not found error

>send me their php.ini and httpd.config files so I can compare them to my
own.

nah, if you can't get it to work by reading the docs, those won't do you no
good either...
Assuming:
- Apache is installed in C:\Apache (with your conf @
C:\Apache\conf\httpd.conf)
- PHP is installed in C:\PHP (with the apache sapi @
C:\PHP\sapi\php4apache.dll)
- you're using an unmodified httpd.conf that got installed when installing
Apache

1: find the LoadModule directives in your httpd.conf. they are commented out
    by default (# at beginning of line). Add the following after those
lines:
        LoadModule php4_module C:/PHP/sapi/php4apache.dll

2: check if there is a ClearModuleList + bunch of AddModule directives after
those
    LoadModule directives. If so, add the following line after all other
AddModule's:
        AddModule mod_php4.c

3: search for AddHandler in your httpd.conf. add the following 2 lines:
        AddHandler application/x-httpd-php .php .php3
        AddHandler application/x-httpd-php-source .phps
    (eg: after the commented out "AddHandler cgi-script .cgi"

4: start apache from the command line.
    (Start -> Run -> cmd <enter> -> cd Apache <enter> -> apache <enter>)
    if there are errors, correct them. (I doubt there will be)

5: put a phpinfo.php in your htdocs directory (C:\Apache\htdocs\phpinfo.php)
    with the known contents <?php phpinfo(); ?>

6: request http://localhost/phpinfo.php from your favourite browser


These 6 steps are almost fool-proof, and are sure to get php working on your
box. substitute the above paths with your installation paths. don't forget
to use
forward slashes, and quotes if your paths have spaces in them.

If you still get 404's or other errors, check your error log
(C:\Apache\logs\error.log)
that's the first place to look when recieving errors :)


When the Apache+PHP combo works, you can configure php by putting a copy of
php.ini-recommended or php.ini-dist as php.ini in your windows dir
(C:\WINNT), or
as php-apache.ini if you want diffrent configurations for eg: apache & cli


Goodluck :)


Sjon.


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

Reply via email to