Hi all, I have installed both the xapian-core and xapian-bindings for php on my server. My setup is as follows: RHEL 4 Apache 2.0 PHP 5.1.6 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. 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 can't think of anything else that would be causing the xapian extension not to load when running through apache. Could anyone give me some idea what the problem could be? Thanks, Jamie
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?> 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. Another thing to do is look at the Apache error_log, which contains anything sent to stderr. Cheers, Olly
Rafael SDM Sierra
2006-Dec-14 19:10 UTC
[Xapian-discuss] php bindings not working in the browser
Sorry, I forget to "Reply to all" ---------- Forwarded message ---------- From: Rafael SDM Sierra <sdm@underlinux.com.br> Date: Dec 14, 2006 5:09 PM Subject: Re: Re: Re: [Xapian-discuss] php bindings not working in the browser To: Jamie D <jam5t3r.lists@gmail.com> On 12/14/06, Jamie D <jam5t3r.lists@gmail.com> wrote:> > > > 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 > > > > > > > Look two things: > > > > 1 - /usr/local/apache2/lib/xapian.so is a link to another > > file? if yes, it is broken? > > 2 - Try run "ldd /usr/local/apache2/lib/xapian.so" and see > > if all libraries are filled > > Hi, > > The so is not a link, I tried running ldd > /usr/local/apache2/lib/xapian.so and found that libxapian.so.13 was > missingIt's "good" , so I added a link to this in /usr/lib Instead it, where is the Xapian lib? Try add it path into the /etc/ld.so.conf and run "ldconfig" and now the ldd command> runs without complaint. Now the smoketest file generates a different > error: > > Warning: dl() [function.dl]: Unable to load dynamic library > '/usr/local/apache2/lib/xapian.so' - /usr/local/apache2/lib/xapian.so: > undefined symbol: compiler_globals in > /home/user_removed/public_html/xapian/php5/xapian.php on line 23 > > Maybe I am one step closer to getting this working now? :)I don't know, I'm not understanding this error..xD -- SDM Underlinux http://stiod.wordpress.com Membro da equipe UnderLinux -- PEP-8 There is only 2 kinds of peoples in the world, who know English, and me. oO -- SDM Underlinux http://stiod.wordpress.com Membro da equipe UnderLinux -- PEP-8 There is only 2 kinds of peoples in the world, who know English, and me. oO