SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: LoadModule doesn't work?

  1. #1
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy LoadModule doesn't work?

    i installed PHP (4.3.12 from snaps.php.net) and i installed Apache 2.0.53

    i tried to run PHP as module and i added following lines in their and it does not work
    LoadModule php4_module "c:/php/sapi/php4apache2.dll"
    AddType application/x-httpd-php .php
    the error is Cannot load into c:/php/sapi/php4apache2.dll server. The specified module could not be found.

    i have checked and the file is there. can somebody please tell me what to do. i tried to isntall the same on other computer and its doing the same thing.

    can somebody please help me?

    BTW, if i run it as CGI Binary, it works great.
    ---------------------------
    Errors = Improved Programming.
    My Site

  2. #2
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    copy /php/php4ts.dll to either c:/path/to/apache/bin/php4ts.dll or to c:/windows/system32 , (I prefer sticking the dll in the apache bin)

  3. #3
    SitePoint Addict launchcode's Avatar
    Join Date
    Dec 2004
    Location
    Bristol, UK
    Posts
    259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have a particular requirement for using Apache 2? Personally, on a Windows box (which I guess it for testing your scripts before going live), I wouldn't bother at all with Apache 2 - it's not the most stable thing out there and the PHP4 module is still classed as "experimental" (and for good reason).

    I use the latest stable Apache 1.3 release here on WinXP with PHP 4.3.11 and 5.0.4 quite happily and switch between them for development every day.
    Richard Davey

    Launchcode
    PHP Security Guide. Think your scripts are secure? Think again.

  4. #4
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have yet to find an issue of note with the apache2 sapi (apache >= 2.0.40) ? + apache2 is simply faster on windows than apache 1.*

  5. #5
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Quote Originally Posted by firepages
    copy /php/php4ts.dll to either c:/path/to/apache/bin/php4ts.dll or to c:/windows/system32 , (I prefer sticking the dll in the apache bin)
    thanks for reminding me. i was wondering whyit din't work before. BUT, instead of copying php4ts.dll to apache/bin i copied it to sapi (same folder with php4apache2.dll and it worked wonderfully
    ---------------------------
    Errors = Improved Programming.
    My Site

  6. #6
    Apache Expert i_like_php's Avatar
    Join Date
    Nov 2001
    Location
    Dallas, Texas
    Posts
    1,342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what firepages said.
    i love php

  7. #7
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, firepages said to copy it in either Apache/bin or windows/system32
    i am just saying i copied it to the same directory where php4apache2.dll was,, which is /php/sapi/, and it worked.

    i am not saying he is wrong. i am just saying it worked this way too.
    ---------------------------
    Errors = Improved Programming.
    My Site

Bookmarks

Posting Permissions

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