PHP Problem
Results 1 to 7 of 7

Thread: PHP Problem

  1. #1

    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

  2. #2
    Elite Hacker
    Join Date
    Mar 2003
    Posts
    1,407
    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.

  3. #3
    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

  4. #4
    Elite Hacker
    Join Date
    Mar 2003
    Posts
    1,407
    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.

  5. #5
    AO French Antique News Whore
    Join Date
    Aug 2001
    Posts
    2,126
    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!
    -Simon \"SDK\"

  6. #6
    Ok i got it. It works. Thanks for the help.

  7. #7
    AO French Antique News Whore
    Join Date
    Aug 2001
    Posts
    2,126
    No Problem! Have fun coding php!
    -Simon \"SDK\"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •