logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Sqlite load error on php win64
Author
Andre2



Joined: 23 Apr 2022
Posts: 2

PostPosted: Sat 23 Apr '22 18:07    Post subject: Sqlite load error on php win64 Reply with quote

I’m trying to upgrade from win32 to win64 :
from php 8.1.5 VS16 x86 Thread Safe to VS16 x64 Thread Safe

Everything seems running fine except the driver sqlite:
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_pdo_sqlite.dll’ (tried: c:/web/PHP8/ext\php_pdo_sqlite.dll (%1 n’est pas une application Win32 valide)

NB. also tested with php version 8.0.18 and 8.1.4

Any help is welcome
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Sat 23 Apr '22 20:04    Post subject: Reply with quote

Beginning with php 7.4, they stopped compiling in the sqlite library and began using the shared library.

When you load the php8apache2_4.dll module, php is now running under the apache process instead of it's own. This then causes a problem because apache has no clue as to where to find any dependencies an extension might have.

How to solve in this case;

in httpd.conf (might as well add it right below the LoadModule line for php)

LoadFile c:/web/PHP8/libsqlite3.dll

Restart apache and all should be right in the world.
Back to top
Andre2



Joined: 23 Apr 2022
Posts: 2

PostPosted: Sat 23 Apr '22 21:53    Post subject: Reply with quote

Hi,

Solved : Wrong version of libsqlite3.dll in the path.

LoadFile c:/web/PHP8/libsqlite3.dll easily solved the case.

Thanks for your help.
Back to top


Reply to topic   Topic: Sqlite load error on php win64 View previous topic :: View next topic
Post new topic   Forum Index -> Other Software