php5 on apache2 error: Cannot load c:/php/php5apache2.dll

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ll_42@hotmail.com

    #1

    php5 on apache2 error: Cannot load c:/php/php5apache2.dll

    i reinstalled windows (98), installed apache and extracted the php5 zip
    file into c:\php. i renamed php.ini-recommended to php.ini and added
    the following lines to httpd.conf:

    LoadModule php5_module "c:/php/php5apache2.dll "
    AddType application/x-httpd-php .php
    PHPIniDir "C:/php"

    now when i start apache i get an error message:

    Syntax error on line 957 of C:/Program Files/Apache
    Group/Apache2/conf/httpd.conf:
    Cannot load C:/php/php5apache2.dll into server: One of the library
    files needed to run this application cannot be found.

    when i delete the line
    LoadModule php5_module "c:/php/php5apache2.dll "
    apache works fine. i tried to copy php5ts.dll to c:\windows,
    c:\windows\syst em and c:\program files\apache group\apache2\b in, it
    still doesnt work...

    what can i do...?

  • LJB

    #2
    Re: php5 on apache2 error: Cannot load c:/php/php5apache2.dll

    Are you supposed to be using forward slashes?

    ll_42@hotmail.c om wrote:[color=blue]
    > i reinstalled windows (98), installed apache and extracted the php5 zip
    > file into c:\php. i renamed php.ini-recommended to php.ini and added
    > the following lines to httpd.conf:
    >
    > LoadModule php5_module "c:/php/php5apache2.dll "
    > AddType application/x-httpd-php .php
    > PHPIniDir "C:/php"
    >
    > now when i start apache i get an error message:
    >
    > Syntax error on line 957 of C:/Program Files/Apache
    > Group/Apache2/conf/httpd.conf:
    > Cannot load C:/php/php5apache2.dll into server: One of the library
    > files needed to run this application cannot be found.
    >
    > when i delete the line
    > LoadModule php5_module "c:/php/php5apache2.dll "
    > apache works fine. i tried to copy php5ts.dll to c:\windows,
    > c:\windows\syst em and c:\program files\apache group\apache2\b in, it
    > still doesnt work...
    >
    > what can i do...?
    >[/color]

    Comment

    • Lemon Lime

      #3
      Re: php5 on apache2 error: Cannot load c:/php/php5apache2.dll

      thats what the php manual said...

      but i also tried to use backslashes and it didnt solve the problem.

      Comment

      • David Haynes

        #4
        Re: php5 on apache2 error: Cannot load c:/php/php5apache2.dll

        ll_42@hotmail.c om wrote:[color=blue]
        > i reinstalled windows (98), installed apache and extracted the php5 zip
        > file into c:\php. i renamed php.ini-recommended to php.ini and added
        > the following lines to httpd.conf:
        >
        > LoadModule php5_module "c:/php/php5apache2.dll "
        > AddType application/x-httpd-php .php
        > PHPIniDir "C:/php"
        >
        > now when i start apache i get an error message:
        >
        > Syntax error on line 957 of C:/Program Files/Apache
        > Group/Apache2/conf/httpd.conf:
        > Cannot load C:/php/php5apache2.dll into server: One of the library
        > files needed to run this application cannot be found.
        >
        > when i delete the line
        > LoadModule php5_module "c:/php/php5apache2.dll "
        > apache works fine. i tried to copy php5ts.dll to c:\windows,
        > c:\windows\syst em and c:\program files\apache group\apache2\b in, it
        > still doesnt work...
        >
        > what can i do...?
        >[/color]
        Where did you install php to?
        If it is in C:\php then php2apache2.dll should be in C:\php\php2apac he2.dll.

        Your httpd.conf file should contain:

        LoadModule php5_module C:/php/php2apache2.dll
        AddType application/x-httpd-php .php
        PHPIniDir "C:/php"


        -david-

        Comment

        • Lemon Lime

          #5
          Re: php5 on apache2 error: Cannot load c:/php/php5apache2.dll

          i extracted the zip file to c:\php...
          the file name is php5apache2.dll and it is in that root directory...
          (c:\php\php5apa che2.dll)

          Comment

          Working...