PHP SAPI module for Virtuoso
This is a SAPI module for PHP 5.x, implemented as a Virtuoso loadable module.
Building:
To build the plugin, you need to build a static libphpX.a, configured with ZTS.
We recommend the following options when configuring PHP:
./configure \
--prefix=/usr/local/php5 \
--enable-maintainer-zts \
--with-tsrm-pthreads \
--enable-embed=shared \
--disable-static \
--with-config-file-path=. \
--disable-cgi \
--disable-cli \
--disable-ipv6 \
--disable-pdo \
--without-mysql \
--without-pear \
--with-zlib \
--with-iodbc=/usr/local/iODBC
You should also build Virtuoso with ./configure --enable-php5=/usr/local/php5/ to ensure it finds the correct PHP version (as the choice of threading options is sensitive).
Installation
1. Register the plugin in your virtuoso.ini:
[Plugins] .. Load10 = Hosting, hosting_php.so
2. Copy the php.ini-recommended from the php distro to the same directory as your virtuoso.ini. Alternatively, you can set the PHP_INI_PATH environment variable to the full path of the php.ini file to use.