Page 1 of 1

Still trying/Apache 1.3 / PHP4

Posted: Fri Oct 04, 2002 6:43 pm
by mrrobotto
I am slowly getting a better handle on the situation but still haven’t been able to get apache 1.3 to run. I am still getting the syntax error that I posted earlier. Here is how I have it set up.

C:\php4
C:\windows
php.ini
php4ts.dll

Here are the entries that I have in my php.ini file
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php4\windows"

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root = "C:/Program Files/Apache Group/Apache/htdocs"

Here is the httpd config file
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"

# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
AddType application/x-tar .tgz
ScriptAlias /php4/ "C:/php4win/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
Action application/x-httpd-php "/php4/php.exe"

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
ServerRoot "C:/Program Files/Apache Group/Apache"
LoadModule php4_module c:/php/sapi/php4apache.dll

AddModule mod_setenvif.c
AddModule mod_php4.c

The reason I put this AddModule mod_setenvif.c in my post is to show you where I placed the line it said to place in this file. The directions that I was using said to place AddModule mod_php4.c under it so that is where I placed it. I hope this isn’t to confusing this is the best way I could be as detailed as possible.

Any help will be greatly appreciated. TIA

:cry:

Posted: Sat Oct 05, 2002 1:04 pm
by mrrobotto
At least somebody could tell me if I have it so screwed up that I need to start over if that be the case. Because I am at a lost but not as much as when I first started. I would like to get this straightened out so I could do my work on my computer instead of having to ftp all the time. :?

Posted: Sun Oct 06, 2002 3:21 am
by Takuma
Are you trying to use php as CGI or SAPI module? You should use SAPI just read the PHP manual (manual.txt under PHP directory) and it saids things about SAPI module.

Posted: Mon Oct 07, 2002 4:04 am
by superay
u should put file "php4ts.dll" in folder c:\windows\system
NOT c:\windows.

Also, u might want to check yr typing c:\php and c:\php4

Posted: Mon Oct 07, 2002 7:24 am
by mrrobotto
I have php4ts.dll in c:\windows\system and it still doesn't work. I keep getting the message can not load C:/php/sapi/php4apache.dll one of the files needed to run this application can not be found. I get this message all the time no matter what I put where. :(