Zen IDS PHP Interpreter
September 3, 2016 ยท View on GitHub
Welcome to the ZenIDS fork of the reference implementation of the PHP interpreter (version 7.1.0 alpha3). This fork contains several hooks that facilitate the zen-ids PHP extension.
Build
- Dependencies:
sudo apt-get install autoconf apache2-dev libxml2 libxml2-dev libssl-dev libcurl4-openssl-dev pkg-config libicu-dev libmcrypt-dev libtidy-dev libxslt1.1 libxslt1-dev libjpeg-dev libpng12-dev- If necessary, manually install libxdiff:
mkdir .../temp && cd .../tempwget http://www.xmailserver.org/libxdiff-0.23.tar.gztar -xzf libxdiff-0.23.tar.gz && cd libxdiff-0.23./configure && make && sudo make install
- Apache HTTP Server
- Configure module MPM Prefork (as root):
cd /etc/apache2/mods-enabledrm mpm_*ln -s ../mods-available/mpm_prefork.conf mpm_prefork.confln -s ../mods-available/mpm_prefork.load mpm_prefork.load
- Configure module MPM Prefork (as root):
- Environment:
- Export variable
$PHP_HOMEpointing to the local clone of this repository.
- Build:
./buildconf./current-config- Use option
-dfor a debug build
- Use option
make -jsudo make -j install- Configure:
sudo chmod a+x scripts/phpize(this is basically a bug in the PHP build system)- As root:
cp $PHP_HOME/php7.conf.default /etc/apache2/mods-available/php7.confcd /etc/apache2/mods-enabledln -s ../mods-available/php7.conf php7.conf