WACSip

Web-based Adult Content Server

A PHP interface for WACS

Installation

There are two steps to installing wacs-php. The first is to make sure that the PEAR DB perl module is present along with the appropriate driver for the database you're using. If you're using MySQL on one of the Linux distributions supported by Wacs, the wacs easyinstall script should have already taken care of this for you. The second step is to install the wacs.php, wacsui.php and XMLSimple.php modules into the appropriate pear directory (usually /usr/share/pear).

Once you've determined the correct location for the pear modules, the installation of the Wacs-PHP modules can be done with:

# cp -p unpack_location/modules/wacs.php /usr/share/pear
# cp -p unpack_location/modules/wacsui.php /usr/share/pear
# cp -p unpack_location/modules/XMLSimple.php /usr/share/pear
#

Configuration

You will need to make sure that the "database" attribute "phpdbconnect" is correctly defined in your configuration file. If you're using Wacs version 0.6.2 or later, this should already be defined by default if you are using MySQL as the backend database. If you're using the 0.6.1 release or Oracle 10i as the backend database, you will need to add it manually to your configuration file. For the default names with MySQL, it should read:
mysql://wacs:wacs@mysqlhost/wacs

where mysqlhost is the hostname of the machine on which you are running MySQL.

For Oracle 10i or later, you will need a phpdbconnect string something like:

oci8://wacs:wacs@orasrv1/orasid

where orasrv1 is the hostname of the machine on which you are running Oracle 10i and orasid is the SID (instance name) of the oracle database you are using. Note that oci8 refers to the SQL*Net protocol level which has been standardised since Oracle 8 and it applies still to Oracle 9 and Oracle 10i databases. It'll probably still apply to Oracle 11i, etc...
Back to Wacs-PHP documentation