PHParser 1.0.0 Installation Instructions
Requirements
- PHP 4.0 and up compiled as CGI. Neither Apache module nor the CLI version coming with PHP 4.3.0 will work. You probably will compile PHP from the source on Unix platforms. The RedHat PHP RPM package doesn't contain PHP CGI. If you are trying to find a package containing the CGI executable, you might be interested in IED's RPM contribution . For Windows, you can download and use any of the Windows Binaries.
- You must modify the PHPath line in PHParser.py to specify the full path of the PHP CGI
executable. Because the default value
/var/www/cgi-bin/php
is not likely where your PHP CGI is located unless you use IED's PHP RPM package.
Installation
Unix:
cd ZOPE_HOME/lib/python/Products tar -zxvf /path/to/downloaded/PHParser-x.y.z.tar.gz vi PHParser-x.y.z/PHParser.py (modify the PHPath line) Restart Zope
Windows:
unzip PHParser-x.y.z.tar.gz to ZOPE_HOME\lib\python\Products open the extracted PHParser.py in an editor (modify the PHPath line) Restart Zope