Tôi đang cố gắng kiểm tra việc triển khai bên thứ ba của Cybersource. Tôi đã có thể nhận được các tập tin thử nghiệm chạy tốt từ dòng lệnh, mà đòi hỏi rằng trên Linux tôi xuất đường dẫn đến các thư viện thanh toán để LD_LIBRARY_PATH.Thiết lập LD_LIBRARY_PATH trong Apache PassEnv/SetEnv vẫn không thể tìm thấy thư viện
để cố gắng kiểm tra điều này trên máy chủ của tôi, tôi đã tạo ra các cấu hình apache dưới
<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>
Tôi đã đặt biến env đó với lệnh setenv, mà dường như được làm việc khi tôi chạy một trang giấy in
<?php phpinfo(); ?>
tuy nhiên kịch bản thử nghiệm khi gọi qua vẫn là trình duyệt wont work, apache nói:
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
vì vậy không thể tìm thấy tệp libspapache.so được liên kết mặc dù nó nằm trong LD_LIBRARY_PATH được cho là đã định nghĩa
tôi thực sự đánh giá cao sự trợ giúp. cám ơn rất nhiều.
cảm ơn! đó là nó, mặc dù Im sử dụng một phiên bản cũ của FastCGI vì vậy nó đã được DefaultInitEnv thay vì FcgidInitialEnv – JiminyCricket