[Xapian-discuss] php bindings not working in the browser

Jamie D jam5t3r.lists at gmail.com
Thu Dec 14 18:37:34 GMT 2006


On 14/12/06, Olly Betts <olly at survex.com> wrote:
> On Thu, Dec 14, 2006 at 12:41:00AM -0800, Jamie D wrote:
> > After running the install I can run the test files from the command
> > line successfully I have tried running these through the browser and I
> > am getting an error.
>
> What is this error?

The error I'm getting when running smoketest.php is this:

Warning: dl() [function.dl]: Unable to load dynamic library
'/usr/local/apache2/lib/xapian.so' - libxapian.so.13: cannot open
shared object file: No such file or directory in
/home/username_removed/public_html/xapian/php5/xapian.php on line 23

if I run this same file on the command line it outputs nothing.

If I am understanding the docs correctly, by adding
extension=xapian.so to the php.ini file this should load xapian in
every php page so I shouldn't have to use dl() to load it, is this
correct?

> > If seems that xapain is getting loaded when its
> > run on the commend line (php -m lists xapian) but not when run through
> > a browser. I've check that loading of extensions is enabled in php,
> > I'm not running in safe mode, ive added the extension=xapian.so to my
> > php.ini file.
>
> I'd try adding this to a page, which will report the options in use
> and the Xapian version if it's loaded:
>
>     <?php phpinfo(); ?>
>
> If Xapian isn't loaded, check if "enable_dl" is on.

That was one of the first things I tried, xapian is not loaded,
enable_dl is on. I have even made a php script that checks the
permissions on xapian.so and php is able to read and execute this
file.


> Another thing to do is look at the Apache error_log, which contains
> anything sent to stderr.

I've looked in the error_log and there is the same error that I get on
the screen

Thanks,
Jamie



More information about the Xapian-discuss mailing list