Click to See Complete Forum and Search --> : Getting php to work on win98


Anon
12-28-2000, 04:44 PM
Hello,

I've installed apache 1.3.14 and php 4.0.4 on a windows box running windows 98. php is set up as a module on Apache. I've followed the instructions given with the dist ie:

1. Stop the Apache Webserver.
Edit the httpd.conf and put in these lines, modified to your environment:
2. Unzip the Package to c:\php, now move php4ts.dll to the windows/system(32) directory, overwritte any older file!

# for the apache module
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4

3. Copy the php.ini-dist to your sysroot (directory where you installed windows), rename it to php.ini, and
edit the php.ini to fit your needs.
4. Restart the Apache server.

Apache registers php 4.0.4 as running but does not execute any php embedded in the html. When I view source via the browser the embedded php is visible.

How can I rectify this?

Anon
12-29-2000, 09:37 AM
Did you try using a .php4 extension in your test file? Your addtype is specifying .php4.

Also, check your PATH in the command window. You may need to move the PHP DLLs into one of the directories on the PATH - or add the \PHP directory to the default path.

If you're not wedded to Apache for development, check out http://badblue.com - free, small footprint web server for Windows. Downloads, installs and can be configured for PHP in a minute or two. The PHP page is at http://badblue.com/helpphp.htm

Anon
12-29-2000, 09:39 AM
Also, does CGI work?

# Path to PHP.EXE directory -- change ScriptAlias to suit your config.
ScriptAlias /php4/ "C:/inetpub/scripts/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3

This is from:

http://php.weblogs.com/easywindows

If it does, it sounds like a PATH problem.