visit Kofax web site

Installing the PHP sample

Installation instructions are for PHP running as a module in an Apache web service.

If you install PHP from a zip file then please include these lines in your apache configuration:
... 
# This example assumes that you unpacked php into folder "c:\Program Files\PHP\5.4.8" 
PHPIniDir "c:\Program Files\PHP\5.4.8"
LoadModule php5_module "c:\Program Files\PHP\5.4.8\php5apache2_2.dll"
#END PHP 
...

You may have to manually enable COM support in PHP after Version 5.3.15.
Please add these lines to the php configuration php.ini, see http://php.net/manual/en/book.com.php :

extension=php_com_dotnet.dll

Example configuration

# Apache httpd.conf, setting the document root

...

# set the document root
DocumentRoot "C:/signware_runtime/b-api/samples/php"

...

<Directory "SIGNWARE_INSTALLATION/b-api/samples/php">
    Options -Indexes FollowSymLinks
    DirectoryIndex index.html index.php

    AllowOverride None

    Order allow,deny
    Allow from all

</Directory>

# Apache httpd.conf, virtual server

...

# assure to load the alias module
LoadModule alias_module modules/mod_alias.so

...

<Directory "SIGNWARE_INSTALLATION/b-api/samples/php">
    Options -Indexes FollowSymLinks
    DirectoryIndex index.html index.php

    AllowOverride None

    Order allow,deny
    Allow from all

</Directory>

...

<IfModule alias_module>

...

    Alias /sw  SIGNWARE_INSTALLATION/b-api/samples/php

</IfModule>

...