Did you add the entries to httpd.conf exactly as you typed in your message?
If so, they are incorrect.
You MUST use LoadModule BEFORE you use AddModule, so what you typed would be
incorrect:

-->AddModule mod_php4.c
-->LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml

It should be:

LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddModule mod_php4.c
AddType application/x-httpd-php .php .phtml
(You can put more than one extension on the same line)

Also, you are using Apache2 support for PHP which is buggy at best, I would
recommend using 1.3.27. In which case you would not use php4apache2.dll but
php4apache. Hope that helps.

"Weng Pangan" <[EMAIL PROTECTED]> wrote in message
news:000c01c24fc0$15202ae0$fe83a8c0@;filpacific.com...
> Help!
>
> I'm new to PHP/Apache/MySQL.
>
> I've tried everything and can't seem to get it done.
>
> done the following:
>
> 1.copied php4ts.dll to C:\WINNT\System32 and php.ini to C:\WINNT
>
> 2. Added to following to httpd.conf
> ScriptAlias /php/ "c:/php"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .phtml
> Action application/x-httpd-php "/php/php.exe"
>
> 3. create phpinfo.php in htdocs directory with the following script:
>
>     <?php phpinfo(); ?>
>
> if i try to browse (IE6) an oridnary html file (http://localhost/test.htm)
> the page displays correctly.
> but when i try http://localhost/phpinfo.php i get a "The page cannot be
> found" error. If i re-install
> everything, i see
>
>     <?php phpinfo(); ?>
>
> in my browser instead of the output of phpinfo().
>
>
> i tried adding the ff: to the httpd.conf file
>
> AddModule mod_php4.c
> LoadModule php4_module "c:/php/sapi/php4apache2.dll"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .phtml
>
> but Apache wont start.
>
> do i need to associate  .php files to php.exe or to IE?
>
> what other things do i need to do?  i would prefer running php in server
> mode as
> recommend by the PHP Help File.
>
> Thanks and more power!
>
> Weng Pangan
>



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

Reply via email to