I am trying to test third-party implementation of Cybersource. I was able to get test files from the command line, so for Linux I export the path to payment libraries to LD_LIBRARY_PATH.
to try and verify this on my server, I created apache configuration below
<VirtualHost 127.0.0.1:12345>
AddHandler cgi-script .cgi
AddHandler fcgid-script .php .fcgi
FCGIWrapper /my/path/to/php_fcgi/bin/php-cgi .php
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
DocumentRoot /my/path/to/cybersource/simapi-php-5.0.1/
ProxyPreserveHost on
<Directory /my/path/to/cybersource/simapi-php-5.0.1>
SetEnv LD_LIBRARY_PATH /my/path/to/cybersource/LinkedLibraries/lib/
AllowOverride all
Options +Indexes
IndexOptions Charset=UTF-8
</Directory>
</VirtualHost>
I set the env variable there using the SetEnv command, which seems to work when I launch a page that prints
<?php phpinfo(); ?>
however, the script test when called through the browser still does not work, apache says:
tail /my/apache/error_log
[Tue Mar 30 23:11:46 2010] [notice] mod_fcgid: call /my/path/to/cybersource/index.php with wrapper /my/path/to/cybersource/php_fcgi/bin/php-cgi
PHP Warning: PHP Startup: Unable to load dynamic library '/my/path/to/cybersource/extensionsdir/php5_cybersource.so' - libspapache.so: cannot open shared object file: No such file or directory in Unknown on line 0
therefore, it cannot find the associated libspapache.so file, although it is located in LD_LIBRARY_PATH, which is supposedly defined
I really appreciate the help. Many thanks.