{"id":3591,"date":"2016-09-07T05:32:50","date_gmt":"2016-09-07T05:32:50","guid":{"rendered":"http:\/\/www.gubatron.com\/blog\/?p=3591"},"modified":"2017-10-19T03:26:11","modified_gmt":"2017-10-19T03:26:11","slug":"upgrading-your-wordpress-blog-to-php-7-0-on-ubuntu-xenial","status":"publish","type":"post","link":"https:\/\/www.gubatron.com\/blog\/upgrading-your-wordpress-blog-to-php-7-0-on-ubuntu-xenial\/","title":{"rendered":"Upgrading your wordpress blog to PHP 7.0 on Ubuntu Xenial"},"content":{"rendered":"<p>If you&#8217;re about to upgrade your Ubuntu server to 16.04 (Xenial) you might want to take advantage of the new PHP 7.0 which is as fast or more than Facebook&#8217;s <a href=\"http:\/\/hhvm.com\/\">HHVM<\/a>, or perhaps during the upgrade process a few things may have broken and perhaps that&#8217;s why you&#8217;re here<\/p>\n<h2>Make sure the following packages are installed.<\/h2>\n<pre><code>sudo apt install php7.0-cli php7.0-common php7.0-curl php7.0-fpm php7.0-json php7.0-readline php7.0-mbstring php7.0-xml php7.0-mysql\n<\/code><\/pre>\n<h2>Update your php-fpm web server configuration<\/h2>\n<p>I run lighttpd, but you&#8217;re more likely running nginx or apache.<br \/>\nIf you use php-fpm and you&#8217;ve configured your pool to be accessed via unix socket, you will have to update your server configuration from the old socket path: <code>\"\/var\/run\/php5-fpm.sock\"<\/code><br \/>\nto the new one <code>\"\/var\/run\/php\/php7.0-fpm.sock\"<\/code><\/p>\n<p>this is how it looks for lighttpd:<\/p>\n<pre><code>fastcgi.server = ( \".php\" =&gt;\n(( \"socket\" =&gt; \"\/var\/run\/php\/php7.0-fpm.sock\",\n\"broken-scriptfilename\" =&gt; \"enable\",\n\"allow-x-send-file\" =&gt; \"enable\")))\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re about to upgrade your Ubuntu server to 16.04 (Xenial) you might want to take advantage of the new PHP 7.0 which is as fast or more than Facebook&#8217;s HHVM, or perhaps during the upgrade process a few things may have broken and perhaps that&#8217;s why you&#8217;re here Make sure the following packages are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[43],"tags":[1182,1531,1027,1530],"class_list":["post-3591","post","type-post","status-publish","format-standard","hentry","category-linux","tag-php","tag-php7-0","tag-ubuntu","tag-xenial"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5Unzf-VV","jetpack-related-posts":[{"id":3596,"url":"https:\/\/www.gubatron.com\/blog\/how-to-enable-php-fpm-log-output\/","url_meta":{"origin":3591,"position":0},"title":"HOW TO ENABLE PHP FPM LOG OUTPUT","author":"gubatron","date":"September 7, 2016","format":false,"excerpt":"This one had me for the longest time. If you happen to be running a web server with php-fpm, sometimes you will run across an HTTP 500 error and all you will get will be a blank screen. You will look at your server's error log, your vhost error's log\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.gubatron.com\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4038,"url":"https:\/\/www.gubatron.com\/blog\/will-using-nice-20-on-nginx-and-php-fpm-make-my-wordpress-site-go-faster\/","url_meta":{"origin":3591,"position":1},"title":"Will using `nice -20` on nginx and php-fpm make my WordPress site go faster?","author":"gubatron","date":"June 7, 2023","format":false,"excerpt":"The nice command in Unix and Linux systems is used to alter the scheduling priority of processes. A lower nice value means higher priority. However, using nice -20 to set the highest priority for your PHP-FPM and Nginx processes isn't likely to have a significant impact on your WordPress site's\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.gubatron.com\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2022\/12\/progress_image_100_7fdc7b72-6c19-42f5-affe-d055d02d6f8e.webp?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2022\/12\/progress_image_100_7fdc7b72-6c19-42f5-affe-d055d02d6f8e.webp?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2022\/12\/progress_image_100_7fdc7b72-6c19-42f5-affe-d055d02d6f8e.webp?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2022\/12\/progress_image_100_7fdc7b72-6c19-42f5-affe-d055d02d6f8e.webp?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3517,"url":"https:\/\/www.gubatron.com\/blog\/sysadmin-serve-your-wordpress-cached-pages-with-lighttpd-and-not-php\/","url_meta":{"origin":3591,"position":2},"title":"[SYSADMIN] Serve your WordPress cached pages directly with lighttpd and not PHP","author":"gubatron","date":"June 7, 2016","format":false,"excerpt":"Optimizing Your Wordpress Cache Loads in Lighttpd. If you don't configure your wordpress virtual host properly in lighttpd, your wordpress cache will still make use of PHP. Wouldn't it be nice if all those cached requests were served directy from the webserver as the static files that they are, bypassing\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3899,"url":"https:\/\/www.gubatron.com\/blog\/how-to-suppress-useless-mod_openssl-lighttpd-error-messages-from-var-log-syslog-in-ubuntu\/","url_meta":{"origin":3591,"position":3},"title":"[linux\/ubuntu] How to suppress useless mod_openssl\/lighttpd error messages from appearing in \/var\/log\/syslog","author":"gubatron","date":"August 7, 2020","format":false,"excerpt":"Sometimes you have a bunch of useless errors creating unnecessary disk I\/O on your server, disk I\/O that should be used towards serving your user's requests efficiently. In this case a site running on lighttpd keeps logging several times per second the following message, creating too much noise and making\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.gubatron.com\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1336,"url":"https:\/\/www.gubatron.com\/blog\/compiling-ghost-white-crab-on-linux-x86_64-ubuntu-linux\/","url_meta":{"origin":3591,"position":4},"title":"Compiling Ghost White Crab on Linux x86_64 Ubuntu Linux","author":"gubatron","date":"July 26, 2009","format":false,"excerpt":"Compiling this software is usually just a matter of running 'make', but if you try to do so in Ubuntu 64bit, you'll encounter the following error on the config_test.log file skipping incompatible \/usr\/lib\/gcc\/x86_64-linux-gnu\/4.3.3\/libgcc.a when searching for -lgcc To solve this issue just do the following: apt-get install libc6-dev-i386 This makes\u2026","rel":"","context":"In &quot;Geeklife&quot;","block_context":{"text":"Geeklife","link":"https:\/\/www.gubatron.com\/blog\/category\/geeklife\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":254,"url":"https:\/\/www.gubatron.com\/blog\/create-base32-sha1-hashes-out-of-files-in-php-5\/","url_meta":{"origin":3591,"position":5},"title":"Create Base32 SHA1 hashes out of files in PHP 5","author":"gubatron","date":"February 9, 2006","format":false,"excerpt":"LimeWire and other Gnutella clients uniquely identify files by creating a SHA1 hash of the files. I thought that it might be useful to the gnutella network to have regular webservers sharing legal files. Usually regular Joe webmasters don't have permissions to run java programs or have tcp ports open\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/3591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/comments?post=3591"}],"version-history":[{"count":3,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/3591\/revisions"}],"predecessor-version":[{"id":3609,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/3591\/revisions\/3609"}],"wp:attachment":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/media?parent=3591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/categories?post=3591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/tags?post=3591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}