php_sqlite.dll "Access Denied"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • topmind

    php_sqlite.dll "Access Denied"

    I tried to install the sqlite extension to PHP using "php_sqlite.dll ",
    but I get the following error message:

    PHP Warning: Unknown(): Unable to load dynamic
    library './php_sqlite.dll' - Access is denied. in Unknown on line 0

    I am using IIS on Windows XP for development only. It is Php version
    4.3.2. I added all permissions I could, including "write". It is
    finding the DLL okay because if I rename it I get a "not found" message
    instead. I cannot tell what the fudge is denying access to what and
    why.

    Any help would be appreciated.

    -t-

  • ImOk

    #2
    Re: php_sqlite.dll "Access Denied"

    Which user did you give permissions to and to which folder/alias?

    topmind wrote:
    I tried to install the sqlite extension to PHP using "php_sqlite.dll ",
    but I get the following error message:
    >
    PHP Warning: Unknown(): Unable to load dynamic
    library './php_sqlite.dll' - Access is denied. in Unknown on line 0
    >
    I am using IIS on Windows XP for development only. It is Php version
    4.3.2. I added all permissions I could, including "write". It is
    finding the DLL okay because if I rename it I get a "not found" message
    instead. I cannot tell what the fudge is denying access to what and
    why.
    >
    Any help would be appreciated.
    >
    -t-

    Comment

    • Chung Leong

      #3
      Re: php_sqlite.dll "Access Denied"

      topmind wrote:
      I tried to install the sqlite extension to PHP using "php_sqlite.dll ",
      but I get the following error message:
      >
      PHP Warning: Unknown(): Unable to load dynamic
      library './php_sqlite.dll' - Access is denied. in Unknown on line 0
      >
      I am using IIS on Windows XP for development only. It is Php version
      4.3.2. I added all permissions I could, including "write". It is
      finding the DLL okay because if I rename it I get a "not found" message
      instead. I cannot tell what the fudge is denying access to what and
      why.
      >
      Any help would be appreciated.
      >
      -t-
      That error looks awfully familiar. I've encountered it before while
      trying to build the SQLite extension. I can't quite remember what the
      cause is though. I think it's because the DLL is compiled using VC8 and
      the file is missing its embedded SxS manifest. Where did you get the
      file?

      Comment

      • topmind

        #4
        Re: php_sqlite.dll "Access Denied"


        Chung Leong wrote:
        topmind wrote:
        I tried to install the sqlite extension to PHP using "php_sqlite.dll ",
        but I get the following error message:

        PHP Warning: Unknown(): Unable to load dynamic
        library './php_sqlite.dll' - Access is denied. in Unknown on line 0

        I am using IIS on Windows XP for development only. It is Php version
        4.3.2. I added all permissions I could, including "write". It is
        finding the DLL okay because if I rename it I get a "not found" message
        instead. I cannot tell what the fudge is denying access to what and
        why.

        Any help would be appreciated.

        -t-
        >
        That error looks awfully familiar. I've encountered it before while
        trying to build the SQLite extension. I can't quite remember what the
        cause is though. I think it's because the DLL is compiled using VC8 and
        the file is missing its embedded SxS manifest. Where did you get the
        file?
        I got the file at:



        Perhaps I should also try the 4.4.0 and 4.4.1 versions.

        As a last resort, I am thinking about having PHP run SQLite from System
        or Exec command line instead of futzin' with DLL's. This is only for
        development anyhow. As long as I wrap the functions that access and
        parse Sqlite command-results, in theory it would run the same as it
        would on a production server with SQLite installed right.......in
        theory. I would install PHP5 which is supposed to have SQLite compiled
        in, but I have other stuff tied to it. If I upgrade, I'll probably get
        a whole new batch of funny incompatibility messages and have to upgrade
        all the other gizmos too.

        Thanks so far....

        -t-

        Comment

        • Chung Leong

          #5
          Re: php_sqlite.dll "Access Denied"

          topmind wrote:Hmmm, the DLL is compiled with VC6 as it should... My initially guess
          was wrong. I've seen this before. It's some kind of DLL Hell problem.
          Try running Dependency Walker on the file on your system. Here's where
          to get it:

          depends,depends.exe,dependency walker,dependency,walker,dependencies,DLL,EXE,OCX,SYS,import,export,dynamic,implicit,explicit,function,GetProcAddress,LoadLibrary,DllMain,file,found,missing,unresolved,external,version,hook,dumpbin,quickview,quikview,full,path,module,library,procedure,entry,point,windows,win32,utility,tool,application,COM,OLE,VB,Visual,Basic,C++,mangled,decorated,PE,executable,link,compile,initialize,checksum,error,failure,show,reveal


          It'll say that PHP4TS.dll can't be found. That's normal.

          The extension loads correctly on my copy of 4.3.6.
          Perhaps I should also try the 4.4.0 and 4.4.1 versions.
          >
          As a last resort, I am thinking about having PHP run SQLite from System
          or Exec command line instead of futzin' with DLL's. This is only for
          development anyhow. As long as I wrap the functions that access and
          parse Sqlite command-results, in theory it would run the same as it
          would on a production server with SQLite installed right.......in
          theory. I would install PHP5 which is supposed to have SQLite compiled
          in, but I have other stuff tied to it. If I upgrade, I'll probably get
          a whole new batch of funny incompatibility messages and have to upgrade
          all the other gizmos too.
          >
          Thanks so far....
          >
          -t-

          Comment

          Working...