Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 10 of 10
  1. #1
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    I'm trying to install the beta of PHP5 onto my work Windows system which has Apache 1.3.27. What I did:

    1. Overwrote the entire contents of my existing c:\php with the new download
    2. Copied the new php4ts.dll to my system directory, overwriting the old one
    3. Copied php.ini-dist to c:\winnt, then renaming it to php.ini

    Apache now refuses to start with the error:
    Code:
    Syntax error on line 193 of c:/program files/apache group/apache/conf/httpd.conf:
    Cannot load c:/php/sapi/php4apache.dll into server: (126) The specified module could not be found
    Yet the file is there. I tried using LoadModule php5_... to no avail. Line 193 is (ATM):
    Code:
    LoadModule php5_module "c:/php/sapi/php4apache.dll"
    Ideas?
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  2.  

  3. #2
    Senior Member ajaspers's Avatar
    Join Date
    Apr 2003
    Posts
    149
    Member #
    1150
    Is the module named php4apache.dll? Did you try php5apache.dll?

    On my Linux box it's named libphp5.so.

  4. #3
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Yes:
    Code:
    C:\php\sapi>dir
     Volume in drive C has no label.
     Volume Serial Number is 9480-EB90
    
     Directory of C:\php\sapi
    
    06/30/2003  10:42a      <DIR>          .
    06/30/2003  10:42a      <DIR>          ..
    06/28/2003  12:38a              28,672 php4apache.dll
    06/28/2003  12:38a              28,672 php4apache2.dll
    06/28/2003  12:38a              45,056 php4apache_hooks.dll
    06/28/2003  12:38a              24,576 php4isapi.dll
    06/28/2003  12:38a              24,576 php4nsapi.dll
    06/28/2003  12:38a              20,480 php4pi3web.dll
    06/28/2003  12:38a           1,953,792 php4ts.dll
    06/28/2003  12:38a                 603 phpsrvlt.jar
    06/28/2003  12:38a                 135 pws-php4cgi.reg
    06/28/2003  12:38a                 139 pws-php4isapi.reg
                  10 File(s)      2,126,701 bytes
                   2 Dir(s)  30,489,485,312 bytes free
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  5. #4
    Senior Member ajaspers's Avatar
    Join Date
    Apr 2003
    Posts
    149
    Member #
    1150
    From the manual:
    Example scenery:

    Apache/PHP4 as module. Though I've properly configured
    php4apache.dll in httpd.conf, I always get:

    Syntax error on line 1025 of c:/apache/apache/conf/httpd.conf:
    Cannot load c:/php/php-4.2.1-win32/sapi/php4apache.dll into server

    But c:/php/php-4.2.1-win32/sapi/php4apache.dll definitely
    exists:

    dir c:\php\php-4.2.1-win32\sapi\php4apache.dll
    Directory of c:\php\php-4.2.1-win32\sapi
    13.05.2002 00:01 24.576 php4apache.dll

    'strace'ing the apache.exe binary revealed the following:
    c:
    cd \apache\apache
    strace apache >strace.txt

    Then looking into strace.txt:
    [...]
    729 3348 3248 NtOpenSection (0xe, {24, 24, 0x40, 0, 0, "php4ts.dll"}, ... ) == STATUS_OBJECT_NAME_NOT_FOUND
    731 3348 3248 NtQueryAttributesFile ({24, 0, 0x40, 0, 0, "\??\c:\php\php-4.2.1-win32\sapi\php4ts.dll"}, 1234824, ... ) == STATUS_OBJECT_NAME_NOT_FOUND
    733 3348 3248 NtQueryAttributesFile ({24, 108, 0x40, 0, 0, "php4ts.dll"}, 1234824, ... ) == STATUS_OBJECT_NAME_NOT_FOUND
    735 3348 3248 NtQueryAttributesFile ({24, 0, 0x40, 0, 0, "\??\C:\WINNT\System32\php4ts.dll"}, 1234824, ... ) == STATUS_OBJECT_NAME_NOT_FOUND
    [...]

    This went on quiet some time for all directories in the %PATH%
    environment variable. The solution finally was to copy
    php4ts.dll in any of the directories searched by the System (I
    prefered to use c:\php\php-4.2.1-win32\sapi).

    Note: This does not only apply to php4ts.dll but in fact to every
    DLL which gets loaded through PHP too. So, if you've
    problems running your PHP CLI application because it
    can't load a certain library but you're sure it's there,
    try this tool.

  6. #5
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    I copied it to the SAPI directory, too.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    filburt, was this question answered? If it's been resolved, you should probably award or cancel your TD offer.

  8. #7
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    It wasn't, but the question still stands...
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  9. #8
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    Since you are just going to be testing PHP5, why not run it as CGI.

    Add the following to your httpd.conf:

    Code:
    ScriptAlias /php4/ "D:/dev/php4/"
    AddType application/x-httpd-php .php .php3
    Action application/x-httpd-php /php4/php.exe
    Of course, change the location references to php5. I have ran both version 4.3.1 and 5 on my PC without any problems. PHP5 scripts had to have a different extension, I used .php5. I don't have this setup anymore because I formatted my computer a couple of weeks ago.
    There and Back Again :Ogre:

  10. #9
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    138 times
    Filburt, did you ever get PHP5 installed?
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  11. #10
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Nope, I eventually lost interest.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:40 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com