{"id":304,"date":"2011-04-04T12:54:37","date_gmt":"2011-04-04T11:54:37","guid":{"rendered":"http:\/\/www.xenonique.co.uk\/blog\/?p=304"},"modified":"2011-04-04T12:57:08","modified_gmt":"2011-04-04T11:57:08","slug":"insanity-wordpress-fixed-call-to-undefined-function-curl_init","status":"publish","type":"post","link":"https:\/\/www.xenonique.co.uk\/blog\/2011\/04\/04\/insanity-wordpress-fixed-call-to-undefined-function-curl_init\/","title":{"rendered":"Insanity WordPress Fixed &#8220;Call To Undefined Function Curl_Init&#8221;"},"content":{"rendered":"<p>This lunchtime I upgraded <a title=\"WordPress Blogging Platform\" href=\"https:\/\/wordpress.org\/\"><strong>WordPress <\/strong><\/a>on the server to 3.1 version<\/p>\n<p>I had a lot of trouble getting <a title=\"WordPress To Twitter Plug-In\" href=\"https:\/\/wordpress.org\/extend\/plugins\/wp-to-twitter\/\"><strong>WP to Twitter<\/strong> <\/a>plug-in into work out of the box. I though it was a chroot Apache problem, a missing executable, or some file permission issues with Ubuntu Linux. It was none of the above.<\/p>\n<p>This was a configuration of <strong>PHP5<\/strong> and <strong>CUrl<\/strong> module. Essentially I solved this by using Linux administration commands. Become root.<\/p>\n<p>Make sure curl installed<\/p>\n<pre>apt-get install curl<\/pre>\n<p>Make sure php5-curl is installed<\/p>\n<p>apt-get install php5-curl<\/p>\n<p>Make sure the wordpress area is locked down with permissions<\/p>\n<p>chown -R www-data:www-data \/opt\/wordpress<\/p>\n<p>Set the permission for wordpress directory so that you as the SysAdmin can upgrade to next version<\/p>\n<pre>find \/opt\/wordpress -type d -print | xargs chmod 775<\/pre>\n<p>Restart the apache server with wordpress<\/p>\n<pre>\/etc\/init.d\/apache2 restart<\/pre>\n<p>Go to the WP to Twitter settings page, perserver with the security keys. Verify that your Twitter consumer keys and my application settings are in agreement. You might have to restart Apache again. It does work. See also <a title=\"Electric Toolbox\" href=\"https:\/\/www.electrictoolbox.com\/fix-undefined-function-curl-init-php-debian\/\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This lunchtime I upgraded WordPress on the server to 3.1 version I had a lot of trouble getting WP to Twitter plug-in into work out of the box. I though it was a chroot Apache problem, a missing executable, or some file permission issues with Ubuntu Linux. It was none of the above. This was [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[80,81,53,52,82,83],"tags":[],"_links":{"self":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/304"}],"collection":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=304"}],"version-history":[{"count":3,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/304\/revisions"}],"predecessor-version":[{"id":306,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/304\/revisions\/306"}],"wp:attachment":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}