[Xapian-tickets] [Xapian] #661: PHP bindings / bad hint in "Installing without root access"
Xapian
nobody at xapian.org
Mon Oct 27 23:27:13 GMT 2014
#661: PHP bindings / bad hint in "Installing without root access"
-----------------------------------+---------------------------
Reporter: Sadrak | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Xapian-bindings (PHP) | Version: 1.2.19
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: Linux
-----------------------------------+---------------------------
\
\
\
\
\
\
Comment (by olly):
For the CLI SAPI you can specify the extension directory like so:
{{{
#!sh
php5 -d extension_dir=/home/USERNAME/my_php_extensions myscript.php
}}}
And then this will automatically load the shared object for you:
{{{
#!php
include "xapian.php";
}}}
As of PHP 5.3.0, you can only use {{{dl()}}} with the CLI SAPI and the
Embed SAPI (which I don't know anything about). So since most users will
be using PHP with a web server, I'm not sure there is a good solution now.
An alternative configuration file would work, but it's hard to see how
you'd specify that without being root.
So I think perhaps we just need to update this to say effectively "do X if
you're using the PHP CLI, otherwise there isn't a good way".
\
\
\
--
Ticket URL: <http://trac.xapian.org/ticket/661#comment:1>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list