latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Ideal Server Config for s2Member®

Home Forums Community Forum Ideal Server Config for s2Member®

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 4 years, 10 months ago.

Topic Author Topic
Posted: Friday Feb 3rd, 2012 at 1:48 am #3533
Staff Member

The ideal PHP configuration is this:
PHP 5.2.3+ with cURL enabled on a Linux/Unix operating system.
This is the default configuration by most hosting companies ( not all, but most ).
In your php.ini file, you’ll want to have this line in case cURL is not enabled by your hosting provider:

allow_url_fopen = On

This is the default on most servers ( allow_url_fopen = On ).

s2Member will try to use cURL first. If cURL is not available, s2Member will try to use the FOPEN method, in which case the allow_url_fopen = On setting will be required.

If you’re running WordPress on a Windows server:
You’ll want to disable the cURL extension because Windows servers usually do not play nice with cURL over the HTTPS protocol. So instead, you can just disable the cURL extension. This way s2Member will use the FOPEN method; in which case you will need to have this in your php.ini file:

allow_url_fopen = On

The cURL extension is commented out ( disabled ).

In ALL CASES, your installation of PHP must be compiled with support for HTTPS connections. If you’re racking your brain over problems connecting to PayPal, it’s probably because your installation of PHP is not compiled with the OpenSSL extension. In other words, your server can’t connect to any URL that starts with https://. Almost ALL major hosting companies come with OpenSSL pre-compiled. That being said… if you’re running your own server, you may have forgotten. The best way to test this, is to load this file on your server and open it in a browser. If OpenSSL was not compiled, you will get an error to that affect.

ini_set("display_errors", true);
ini_set("error_reporting", E_ALL);
echo file_get_contents("");
When you’re done testing the above code, it’s important to delete the file from your web server. Some search engines, such as Google, will treat a file with the above code as malicious and may flag the file/site as dangerous. The code itself is harmless, but please remember to delete the file as soon as you’re done testing.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Monday Feb 27th, 2012 at 3:07 pm #6521

Also, running Apache 2 or LiteSpeed.

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.