{"id":770,"date":"2014-08-29T07:24:14","date_gmt":"2014-08-29T05:24:14","guid":{"rendered":"http:\/\/blog.robinglauser.ch\/?p=770"},"modified":"2014-08-31T13:19:33","modified_gmt":"2014-08-31T11:19:33","slug":"supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/","title":{"rendered":"Supercharge your LAMP Stack Part 1: Install Multiple PHP Version in Ubuntu"},"content":{"rendered":"<p>In this tutorial I&#8217;d like to show you how to install and switch between multiple PHP version on Ubuntu. You should also be able to use this on other distribution, but you may have to adjust some of the commands and paths (apt-get, apache2).<\/p>\n<p>So let&#8217;s do this.<\/p>\n<p>To get set-up we first need to update our packet list if you haven&#8217;t done that already today. :D<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get update\r\n<\/pre>\n<p>Next we need to install some programs on our machine so we can build php ourself.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get install git build-essential lamp-server^\r\n<\/pre>\n<p>When the installation is finished you should be asked for a password for the root mysql server. After you&#8217;ve specified your password you should be able to open http:\/\/localhost\/ in you browser and see the &#8220;It Works!&#8221; message. (On Ubuntu 14.04 it&#8217;s a quiet longer page with the title &#8220;Apache2 Ubuntu Default Page&#8221;)<\/p>\n<p>Now everything should be setup to install <a href=\"http:\/\/sourceforge.net\/projects\/phpfarm\/\" target=\"_blank\">phpfarm<\/a>\u00a0which is a collection of tools to download and compile various PHP\u00a0version and use the with the\u00a0Apache webserver.<\/p>\n<p>We install it into the \/opt directory which is for 3rd party software in the linux file system hierarchy.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncd \/opt\r\nsudo git clone git:\/\/git.code.sf.net\/p\/phpfarm\/code phpfarm\r\n<\/pre>\n<p>If we now want to compile <a href=\"http:\/\/php.net\/archive\/2014.php#id2014-08-28-1\" target=\"_blank\">PHP 5.6.0\u00a0<\/a>we have to create a\u00a0options file for this specific version. In the repository of phpfarm we already have a template so we don&#8217;t have to start from scratch.<\/p>\n<p>If you&#8217;ve installed it with my guide in the <em>\/opt<\/em> directory the template should be\u00a0<em>\/opt\/phpfarm\/src\/options.sh<\/em><\/p>\n<p>We now have to copy this file and create a new one with the version number in the file name.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo cp \/opt\/phpfarm\/src\/options.sh \/opt\/phpfarm\/src\/custom-options-5.6.0.sh\r\n<\/pre>\n<p>Because the default options are pretty basic, we will\u00a0add a few more compile flags. \u00a0Also we have to remove the part at the end of the template, because else we will get a infinite loop where the same script gets called.<\/p>\n<p>Here is my <strong>custom-options-5.6.0.sh<\/strong> file:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#!\/bin\/bash\r\n#gcov='--enable-gcov'\r\nconfigoptions=&quot;\\\r\n--enable-bcmath \\\r\n--with-mysqli \\\r\n--with-curl \\\r\n--with-png \\\r\n--with-gd \\\r\n--enable-gd-native-ttf \\\r\n--enable-calendar \\\r\n--enable-exif \\\r\n--enable-ftp \\\r\n--enable-mbstring \\\r\n--enable-pcntl \\\r\n--enable-soap \\\r\n--with-pdo-mysql \\\r\n--enable-sockets \\\r\n--enable-sqlite-utf8 \\\r\n--enable-wddx \\\r\n--enable-zip \\\r\n--with-openssl \\\r\n--with-jpeg-dir=\/usr\/lib \\\r\n--with-zlib \\\r\n--with-gettext \\\r\n--with-mcrypt \\\r\n$gcov&quot;\r\n<\/pre>\n<p>To now finally compile the version we just have to run the <strong>compile.sh<\/strong> file as root and wait for the compile process\u00a0to finish.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo .\/compile.sh 5.6.0\r\n<\/pre>\n<p>The script will remind you if you have to install any libraries to compile the version, for example I had to install the <strong>mcrypt-dev<\/strong> packet.<\/p>\n<p>To verify we&#8217;ve correctly compile our version we can now run the php binary in\u00a0<em>\/opt\/phpfarm\/inst\/php-5.6.0\/bin<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/opt\/phpfarm\/inst\/php-5.6.0\/bin\/php --version\r\n<\/pre>\n<p>The next step is to configure our Apache to use our compiled version of PHP. To do this we have to install the fastcgi module, so we\u00a0can start PHP as a FastCGI daemon.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo apt-get install libapache2-mod-fastcgi apache2-mpm-worker apache2-suexec\r\nsudo a2enmod actions fastcgi suexec\r\n<\/pre>\n<p>To create our FastCGI daemon I&#8217;ve created a little script with which we can generate our script in approximately 3 seconds.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#!\/bin\/bash\r\nmkdir -p \/var\/www\/cgi-bin\r\nVERSION=$1\r\ncat &gt; \/var\/www\/cgi-bin\/php-cgi-$1 &lt;&lt;EOF\r\n#!\/bin\/sh\r\nPHPRC=&quot;\/etc\/php5\/cgi\/$1\/&quot;\r\nexport PHPRC\r\n\r\nPHP_FCGI_CHILDREN=3\r\nexport PHP_FCGI_CHILDREN\r\n\r\nPHP_FCGI_MAX_REQUESTS=5000\r\nexport PHP_FCGI_MAX_REQUESTS\r\n\r\nexec \/opt\/phpfarm\/inst\/bin\/php-cgi-$1\r\nEOF\r\nchmod +x \/var\/www\/cgi-bin\/php-cgi-$1\r\n<\/pre>\n<p>Save this script onto your drive and make it executable by running:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">chmod +x scriptname<\/pre>\n<p>You can use the script like this:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">sudo .\/scriptname 5.6.0\r\n<\/pre>\n<p>This will generate a File\u00a0<em>\/var\/www\/cgi-bin\/php-cgi-5.6.0<\/em>\u00a0(Or whatever PHP Version you want.) which will be used by Apache.<\/p>\n<p>Now we have to configure Apache to use this as a FastCGI Handler. To do this we add those lines <strong>before<\/strong> the &#8220;IncludeOptional mods-enabled\/*.load&#8221; line.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nFastCgiServer \/var\/www\/cgi-bin\/php-cgi-5.6.0\r\nScriptAlias \/cgi-bin-php\/ \/var\/www\/cgi-bin\/\r\n<\/pre>\n<p>Next we have to comment the second last line of the configuration of the FastCGI module in <em><span style=\"color: #333333;\">\/etc\/apache2\/mods-available\/fastcgi.conf<\/span><\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#FastCgiIpcDir \/var\/lib\/apache2\/fastcgi\r\n<\/pre>\n<p>Almost finished. Now we have to add this snippet to our virtual host configuration to allow our host to use a .htaccess file to add additional rules.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;Directory \/var\/www\/html&gt;\r\n AllowOverride All\r\n &lt;\/Directory&gt;\r\n<\/pre>\n<p>Finally we can add the piece of code which will change the PHP version into the .htaccess file of our host. (The file should be \/var\/www\/html\/.htaccess)<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">AddHandler php-cgi .php\r\nAction php-cgi \/cgi-bin-php\/php-cgi-5.6.0\r\n&lt;FilesMatch &quot;\\.php$&quot;&gt;\r\n SetHandler php-cgi\r\n&lt;\/FilesMatch&gt;\r\n<\/pre>\n<p>Now we have to restart the Apache webserver by running:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo service apache2 restart\r\n<\/pre>\n<p><a href=\"http:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-799 size-large\" src=\"http:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51-1024x619.png\" alt=\"\" width=\"788\" height=\"476\" srcset=\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51-1024x619.png 1024w, https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51-400x242.png 400w, https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51-788x476.png 788w, https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51.png 1330w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/a>And here we go, a virtual host with a customized PHP version. If you want to install additional versions, just follow the guide again, but replace 5.6.0 with your version.<\/p>\n<p>If you run into any problems or if you have problems following this guide, just comment below and I&#8217;ll get back to you.<\/p>\n<p>This guide was heavily inspired by this gist (<a href=\"https:\/\/gist.github.com\/gmodarelli\/5887778\" target=\"_blank\">https:\/\/gist.github.com\/gmodarelli\/5887778<\/a>). I just added the script and polished it up into a blog post.<\/p>\n<p>Thank you for reading my article and we&#8217;ll see us next time with &#8220;Supercharge your LAMP Stack Part 2: Create dynamic virtual hosts&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">In this tutorial I&#8217;d like to show you how to install and switch between multiple PHP version on Ubuntu. You should also be able to use this on other distribution, but you may have to adjust some of the commands and paths (apt-get, apache2). So let&#8217;s do this. To get set-up we first need to update our packet list if &#8230; <a class=\"read-more\" href=\"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[45,5],"tags":[56,89,87,88],"class_list":["post-770","post","type-post","status-publish","format-standard","hentry","category-development","category-fresh","tag-php","tag-shell","tag-ubuntu","tag-version"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Supercharge your LAMP Stack Part 1: Install Multiple PHP Version in Ubuntu - Robin Glauser<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Supercharge your LAMP Stack Part 1: Install Multiple PHP Version in Ubuntu - Robin Glauser\" \/>\n<meta property=\"og:description\" content=\"In this tutorial I&#8217;d like to show you how to install and switch between multiple PHP version on Ubuntu. You should also be able to use this on other distribution, but you may have to adjust some of the commands and paths (apt-get, apache2). So let&#8217;s do this. To get set-up we first need to update our packet list if ... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"Robin Glauser\" \/>\n<meta property=\"article:published_time\" content=\"2014-08-29T05:24:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-08-31T11:19:33+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51-1024x619.png\" \/>\n<meta name=\"author\" content=\"Robin Glauser\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:site\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Robin Glauser\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/\"},\"author\":{\"name\":\"Robin Glauser\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"headline\":\"Supercharge your LAMP Stack Part 1: Install Multiple PHP Version in Ubuntu\",\"datePublished\":\"2014-08-29T05:24:14+00:00\",\"dateModified\":\"2014-08-31T11:19:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/\"},\"wordCount\":952,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"image\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/x8DArZ51-1024x619.png\",\"keywords\":[\"php\",\"shell\",\"ubuntu\",\"version\"],\"articleSection\":[\"Development\",\"Fresh\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/\",\"name\":\"Supercharge your LAMP Stack Part 1: Install Multiple PHP Version in Ubuntu - Robin Glauser\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/x8DArZ51-1024x619.png\",\"datePublished\":\"2014-08-29T05:24:14+00:00\",\"dateModified\":\"2014-08-31T11:19:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/x8DArZ51-1024x619.png\",\"contentUrl\":\"http:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/x8DArZ51-1024x619.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2014\\\/08\\\/29\\\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Supercharge your LAMP Stack Part 1: Install Multiple PHP Version in Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/\",\"name\":\"Robin Glauser\",\"description\":\"My Blog about Development, Design and my random thoughts.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\",\"name\":\"Robin Glauser\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"contentUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"width\":800,\"height\":530,\"caption\":\"Robin Glauser\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\"},\"description\":\"I'm a web developer.\",\"sameAs\":[\"https:\\\/\\\/www.robinglauser.ch\",\"https:\\\/\\\/www.instagram.com\\\/robinglauser\\\/\",\"https:\\\/\\\/x.com\\\/robinglauser\"],\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/author\\\/robin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Supercharge your LAMP Stack Part 1: Install Multiple PHP Version in Ubuntu - Robin Glauser","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"Supercharge your LAMP Stack Part 1: Install Multiple PHP Version in Ubuntu - Robin Glauser","og_description":"In this tutorial I&#8217;d like to show you how to install and switch between multiple PHP version on Ubuntu. You should also be able to use this on other distribution, but you may have to adjust some of the commands and paths (apt-get, apache2). So let&#8217;s do this. To get set-up we first need to update our packet list if ... Read More","og_url":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/","og_site_name":"Robin Glauser","article_published_time":"2014-08-29T05:24:14+00:00","article_modified_time":"2014-08-31T11:19:33+00:00","og_image":[{"url":"http:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51-1024x619.png","type":"","width":"","height":""}],"author":"Robin Glauser","twitter_card":"summary_large_image","twitter_creator":"@robinglauser","twitter_site":"@robinglauser","twitter_misc":{"Written by":"Robin Glauser","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/"},"author":{"name":"Robin Glauser","@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"headline":"Supercharge your LAMP Stack Part 1: Install Multiple PHP Version in Ubuntu","datePublished":"2014-08-29T05:24:14+00:00","dateModified":"2014-08-31T11:19:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/"},"wordCount":952,"commentCount":5,"publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/#primaryimage"},"thumbnailUrl":"http:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51-1024x619.png","keywords":["php","shell","ubuntu","version"],"articleSection":["Development","Fresh"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/","url":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/","name":"Supercharge your LAMP Stack Part 1: Install Multiple PHP Version in Ubuntu - Robin Glauser","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/#primaryimage"},"thumbnailUrl":"http:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51-1024x619.png","datePublished":"2014-08-29T05:24:14+00:00","dateModified":"2014-08-31T11:19:33+00:00","breadcrumb":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/#primaryimage","url":"http:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51-1024x619.png","contentUrl":"http:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2014\/08\/x8DArZ51-1024x619.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.robinglauser.ch\/blog\/2014\/08\/29\/supercharge-your-lamp-stack-part-1-install-multiple-php-version-in-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.robinglauser.ch\/blog\/"},{"@type":"ListItem","position":2,"name":"Supercharge your LAMP Stack Part 1: Install Multiple PHP Version in Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/www.robinglauser.ch\/blog\/#website","url":"https:\/\/www.robinglauser.ch\/blog\/","name":"Robin Glauser","description":"My Blog about Development, Design and my random thoughts.","publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.robinglauser.ch\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19","name":"Robin Glauser","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","contentUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","width":800,"height":530,"caption":"Robin Glauser"},"logo":{"@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg"},"description":"I'm a web developer.","sameAs":["https:\/\/www.robinglauser.ch","https:\/\/www.instagram.com\/robinglauser\/","https:\/\/x.com\/robinglauser"],"url":"https:\/\/www.robinglauser.ch\/blog\/author\/robin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/comments?post=770"}],"version-history":[{"count":19,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/770\/revisions"}],"predecessor-version":[{"id":806,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/770\/revisions\/806"}],"wp:attachment":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/media?parent=770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/categories?post=770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/tags?post=770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}