myndtt / zen-ids-php

ZenIDS branch of the reference implementation of the PHP interpreter, containing hooks required by ZenIDS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zen IDS PHP Interpreter

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

  1. 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 .../temp
    • wget http://www.xmailserver.org/libxdiff-0.23.tar.gz
    • tar -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-enabled
      • rm mpm_*
      • ln -s ../mods-available/mpm_prefork.conf mpm_prefork.conf
      • ln -s ../mods-available/mpm_prefork.load mpm_prefork.load
  1. Environment:
  • Export variable $PHP_HOME pointing to the local clone of this repository.
  1. Build:
  • ./buildconf
  • ./current-config
    • Use option -d for a debug build
  • make -j
  • sudo 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.conf
      • cd /etc/apache2/mods-enabled
      • ln -s ../mods-available/php7.conf php7.conf

About

ZenIDS branch of the reference implementation of the PHP interpreter, containing hooks required by ZenIDS.

License:Other


Languages

Language:C 62.1%Language:PHP 30.5%Language:C++ 5.6%Language:M4 0.5%Language:Objective-C 0.4%Language:Shell 0.4%Language:JavaScript 0.2%Language:Lex 0.1%Language:Makefile 0.1%Language:Yacc 0.1%Language:HTML 0.0%Language:Awk 0.0%Language:Perl 0.0%Language:XSLT 0.0%Language:DTrace 0.0%Language:Batchfile 0.0%Language:Roff 0.0%Language:GDB 0.0%Language:GAP 0.0%