Forum Moderators: coopster

Message Too Old, No Replies

Linkpoint + Curl + PHP - no go from web

Trying to get Linkpoint gateway to work w/php

         

smc_one

10:40 am on Aug 4, 2005 (gmt 0)

10+ Year Member



Hello,

Im experiencing some problems with a LinkPoint gateway setup with a client using PHP and curl.

I have found numerous posts on what seem to be ongoing issues - but it seems my situation is unique...

I can:

1) Use LinkPoint API with a test script on a command line using PHP correctly - it commnicates with LinkPoint and returns proper results
2) I can use the identical code on a 2nd server/test bed/network without issue. Running Suse 9.1 - with exact same compiled environment as listed below

I cannot:

Run the 'web based' version of the identical php script on the client server - it returns a 'null' value from curl/empty response.

Whats been checked/verified:

- Apache/2.0.50 mod_ssl/2.0.50
- OpenSSL 0.9.7a installed
- curl 7.11.1 (i686-pc-linux-gnu) libcurl/7.11.1 OpenSSL/0.9.7a zlib/1.2.0.7 installed
- PHP compiled against curl and openssl 4.4.0
- PEM file is ok
- Script works fine from command line (doesnt this mean the server setup is ok?)
- Ports 1129 open on server

Other:

- client is using a dynamic ip service, dont know if this is affecting anything (and would it if the command line running of the scripts is ok?)

- Ive been told this is happening because curl cannot connect to LinkPoint, but why is this if the command line/shell can communicate? Is something different between apache calling a php module to connect and the interpreter from the shell running the same script?

Side note:

To troubleshoot, we also installed a perl version of the script. Same behavior with all of the above using the lpperl.pm perl module from linkpoint. Works great from command line/shell, but not using web version of the SAME script.

Has anyone experienced this?

From what I have read - people have had either completely not working or completely working, but not one or the other.

Any help would be great --

Thanks.

Steve

coopster

6:49 pm on Aug 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, smc_one.


- Script works fine from command line (doesnt this mean the server setup is ok?)

Not necessarily. And if the perl version is failing in the same manner it seems you have at least one common denominator from two different scenarios. I would try doing some basic work from the server first to confirm that your PHP is setup and parsing, that your curl installation is correct, that you can perform some basic scripting operations (including curl tests) and then go from there.