cURL alternative with TLS support for Rackspace Cloudsites - php

We've developed a PHP cURL based plugin to connect to the Pathable API from Wordpress via Gravity Forms, testing the system it all worked perfectly, however in production the plugin is being hosted on a Rackspace Cloud site environment, apparently they're using curl/7.15.5 however we need curl/7.34 minimum to have support for TLS which is the only protocol that pathable support (SSL being insecure)
We cannot move to another host, we cannot update to the latest version of cURL so we need to re-build the plugin with another solution instead of cURL that's supported by Rackspace Cloud sites. I've spoken with their support but they're not aware of a specific solution so I'm wondering if anyone knows of an alternative that we could use?

Related

eWay Responsive Shared Page integration in PHP by Using CURL

I am trying to integrate eWay payment gateway (Responsive Shared Page) by using Curl(json) in php.it is working fine in my virtual machine that is ubuntu12.0
but curl not getting any response if i exceute same code on xampp server.
What is problem with curl?
Thanks in advance.
While it would be helpful if you could at least provide the error you are getting (details for finding the error log are here), most XAMPP issues are because it either doesn't have openssl enabled or it isn't loading the CA bundle to verify SSLs with. The solutions can be found in the following:
Enable OpenSSL with XAMPP
Adding the CA bundle to XAMPP

Apache loadbalancer can be used for HTTPS and PHP servers

I need a software load balancer in frontend, and two PHP servers in backend.
Clients will send request to the frontend using HTTPS.
I've read a lot of articles around this subject, but I can't verify if apache is able to loadbalance a https communication. This is not very clear for me.
Can I use apache for this ? Or which free loadbalancers supports ssl (HaProxy doesn't support it in its stable release) ?

Basic knowledge for Node.JS?

I'm trying to learn about node.js and there are tons of examples out there, but one question that I can't find an answer to or example is how does this work with web hosts (i'm using inmotionhosting.com)?
say I have a basic website www.url.com/index.php (note: I'm using PHP also). For this website to work, all I have to do is upload a file into my file manager in my web hosting site.
How does node.js work? do I just upload a node.js file into the web hosting also?
In all the examples, they are using localhost with port 8000 or something. Can someone shine some light?
Thanks!
you will need at least VPS hosting to install node.js, shared hosting won't allow you to install any application on your own, unless you they give you the option to do it.
then it all depends on how you have configured and what application is node.js serving, you can't really say where to upload files by default unless a path is set either from you or from webhosting..
from nodejs.org
Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
it doesn't say it specific for web use, instead you should use a web framework such as
ExpressJS where you can build you web application or any other stuff.. your host should provide further information on how to manage packages in your nodejs instance, configuration, etc..
some usefull links
Domain API
ExpressJS
ExpressJS examples
Here is something i came cross.
Hosting your node app?
Hosting Node Apps
nodeFu
Supported hosting providers?
Node Hosting
just read the descriptions for each section.

cURL: Curl is available but cannot access Facebook! (0 - ) - when using Facebook Connect

I run wordpress sites on my domains. I am having an issue with cURL on the server side.
Basically I have tried installing multiple plugins on my sites (Some fresh installs) but they all result in the same cURL error
"cURL: Curl is available but cannot access Facebook! (0 - )"
I have asked around and some have said it is a server side problem.
If anyone has any knowledge or experience why this might be happening would be great to know.
Examples of plugins I am using (I have also tried others)
http://wordpress.org/extend/plugins/wp-fb-autoconnect/
http://wordpress.org/extend/plugins/simple-facebook-connect/
Your hosting provider probably has an IP filter activated.
You can issue outgoing connections only towards domains/IPs you specify in the cPanel.
You either specify the domain/IP in the cPanel or ask the hosting providers to deactivate the filter.

OpenID on shared hosting

I'm trying to use OpenID on my site but I get this error:
Protocol https not supported or
disabled in libcurl
Can anyone please tell what does it mean? My website is running on shared linux hosting.
I use this script: http://gitorious.org/lightopenid
Thanks in advance
It means exactly what is says! Your Open ID implementation (lightopenid) wants to communicate securely with an Open ID server over HTTPS - HTTPS is an optional feature in PHP/Curl and your web host has not enabled this feature. Your options are to ask your hosting provider to enable this feature or to find an alternative which doesn't use Curl. For the latter option, you'll probably find that alternatives also don't have the HTTPS option enabled.
Finally, you may be able to tell lightopenid to not use HTTPS, thus sidestepping this problem, however this doesn't seem like a very robust solution to me, use this only on dev sites, never with real users' accounts.

Categories