ClassyPress System Requirement
To run ClassyPress or ClassyPress PRO on your server, these minimum server requirements must be matched:
1) PHP Version must be 5.4+ (contact your web host provider)
2) cURL must be enabled on your server (details below)
3) Allotted Memory Increased to 512M in wp-config.php file (details below)
NOTE: PLEASE CONTACT YOUR WEB HOST BEFORE EDITING ANY SERVER CONFIGURATION FILES. THIS IS GENERAL INFORMATION AND WILL VARY BASED ON YOUR WEB HOST & SERVERS.
What is CURL?
CURL is a library created by Daniel Stenberg that allows you to connect and communicate via a variety of different protocols such as HTTP, HTTPS, FTP, Telnet etc
I personally use cURL as an alternative to file_get_contents(URL) to get web content as it provides better performance and additional functionality and flexibility.
Why doesn’t CURL work on my computer?
By default CURL isn’t enabled in Apache and therefore trying to make a CURL call won’t work until you’ve enabled it.
CURL Error Message
If curl isnt running and your trying to run it In php you’ll more than likely be Seeing an error message like : “Fatal error: Call to undefined function curl_init()”
Right, now we’ve covered that lets get cURL working!
How to enable CURL in Apache
There are a few ways I found to go about enabling CURL in apache. The one you choose will depend on what OS your running and which flavour of Apache you’ve got.
Hopefully one of these should sort you out:
Option 1 : enable CURL via the php.inI
This is the main method on any windows install like WAMP, XAMPP etc
- Locate your PHP.ini file
(normally located at in the bin folder of your apache install e.g.
- Open the PHP.ini in notepad
- Search or find the following : ‘;extension=php_curl.dll’
- Uncomment this by removing the semi-colon ‘;’ before it
- Save and Close PHP.ini
- Restart Apache
Option 2: Enabling CURL in WAMP
- Left-click on the WAMP server icon in the bottom right of the screen
- PHP -> PHP Extensions -> php_curl
Option 3: enable CURL in Ubuntu
Run the following command:
sudo service apache2 restart
How to Make sure CURL is enabled and running
Option 1: Use the phpinfo() command to output PHP’s configuration and look for curl support under the listed environment variable/modules
Option 2: Create and run a simple PHP script like the following:
$ch = curl_init();// set url
curl_setopt($ch, CURLOPT_URL, “domain.com”);
//return the as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// echo output string
$output = curl_exec($ch);
// close curl resource to free up system resources
Option 3: On a unix machine type the following command:
That’s it. Your done!
If you have any questions leave them below. Don’t forget to share this if it was useful!
All content rights go to original owner: This info was originally posted by Tom Jepson at tomjepson.co.uk
How to increase memory in WP-CONFIG.PHP FILE
How to increase your allotted memory for WordPress in the wp-config.php file
- Open up your Root directory of WordPress
- Open up the wp-config.php file
- Look for the line: define('WP_DEBUG', false);
- Directly under that line, add the following code:
- define( 'WP_MEMORY_LIMIT', '512M' );
- Click Save