|
-
November 24th, 2003, 12:12 AM
#1
Member
PHP Problem
I'm having a little trouble installing php on Apache2. Its php 4.3.4 and i extrracted it to c:\Apache2\php. In the httpd.conf i put
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
But when i restart the server it says it can't load the module php4apache2.dll cause it can't find it. What's wrong
-
November 24th, 2003, 12:16 AM
#2
If you extracted it into c:\Apache2\php then wouldn't you have this in your httpd.conf file
LoadModule php4_module "c:/Apache2/php/sapi/php4apache2.dll"
you also need to put your php.ini file in a directory in your path such as c:\windows\system32.
-
November 24th, 2003, 12:24 AM
#3
Member
I did all that, And yes the path is set to c:/Apache2/php/sapi/php4apache2.dll i just missed the Apache2 in the last post.
Do i need the
AddType application/x-httpd-php .php
In the httpd.conf and it still wont load it with the php.ini in the C:\Windows\System32
-
November 24th, 2003, 12:38 AM
#4
You also need to copy the php4ts.dll from your c:\apache2\php directory into your c:\windows\system32. When you make these changes you have to restart apache for them to register. Hope that solves it.
-
November 24th, 2003, 04:18 PM
#5
Are you using Windows 98? If you're use 98, you have to copy some file in c:\windows\system and not system32. To be honest with you, when I got so sick of this error when I try installing Apache on my old computer running 98 that I copy the file allmost in the folder that I had a path! Good Luck!
-
November 24th, 2003, 07:49 PM
#6
Member
Ok i got it. It works. Thanks for the help.
-
November 24th, 2003, 10:05 PM
#7
No Problem! Have fun coding php!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|