{"id":1206,"date":"2015-12-14T20:47:48","date_gmt":"2015-12-14T18:47:48","guid":{"rendered":"https:\/\/urosevic.net\/wordpress\/?p=1206"},"modified":"2024-12-29T20:45:15","modified_gmt":"2024-12-29T19:45:15","slug":"php-7-on-easyphp-devserver","status":"publish","type":"post","link":"https:\/\/urosevic.net\/wordpress\/tips\/php-7-on-easyphp-devserver\/","title":{"rendered":"PHP 7.0.0 on EasyPHP DevServer 14.1 VC11"},"content":{"rendered":"\n<p>While waiting for <a href=\"http:\/\/www.easyphp.org\/easyphp-devserver.php\" target=\"_blank\" rel=\"noopener\">EasyPHP DevServer<\/a> release v15.10 with bundled PHP 7, I went to install the latest PHP on my machine running v14.1 VC 11. And that was quick and easy. You can do it by following the 8 easy steps below.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Download PHP 7.0.0<\/h2>\n\n\n\n<p>First, you need a PHP package. You can get it from <a href=\"https:\/\/windows.php.net\/download\/\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">https:\/\/windows.php.net\/download\/<\/a> (or simply <a href=\"https:\/\/windows.php.net\/downloads\/releases\/archives\/php-7.0.0-Win32-VC14-x86.zip\" target=\"_blank\" rel=\"nofollow noopener\">click\u00a0here<\/a> to download\u00a0the v7.0.0\u00a0VC14 x86 Thread Safe package).<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Create a PHP7 directory for EasyPHP<\/h2>\n\n\n\n<p>Open in your favourite file explorer (I prefer <a href=\"https:\/\/www.ghisler.com\/\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Total Commander<\/a>, but you can use Windows Explorer too) directory\u00a0<strong>C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC11\\binaries\\php\\<\/strong> and create a new subdirectory <strong>php700x151203113333<\/strong>.<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Unzip the PHP7 package<\/h2>\n\n\n\n<p>Now unpack the content of the PHP package <code>php-7.0.0-Win32-VC14-x86.zip<\/code> to just created directory\u00a0<strong>C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC11\\binaries\\php\\php700x151203113333\\<\/strong><\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Create an EasyPHP description file for PHP7<\/h2>\n\n\n\n<p>Create a new file with the name <code>easyphp.php<\/code> inside directory <strong>C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC11\\binaries\\php\\php700x151203113333\\<\/strong>\u00a0and add following content to it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$phpversion = array();\n$phpversion = array(\n\t\"status\"\t=> \"0\",\n\t\"dirname\"\t=> \"php700x151203113333\",\n\t\"name\" \t\t=> \"PHP\",\n\t\"version\"\t=> \"7.0.0\",\n\t\"date\" \t\t=> \"2015-12-03 11:33:33\",\n\t\"notes\" \t=> \"\",\n);\n?><\/code><\/pre>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Run&nbsp;EasyPHP<\/h2>\n\n\n\n<p>Now start EasyPHP on your machine, visit the <strong>PHP Change Version<\/strong>&nbsp;page in your browser&nbsp;<a href=\"http:\/\/127.0.0.1\/home\/index.php?page=php-page&amp;display=changephpversion\" target=\"_blank\" rel=\"noopener\">http:\/\/127.0.0.1\/home\/index.php?page=php-page&amp;display=changephpversion<\/a>&nbsp;and select\/activate <strong>PHP 7.0.0<\/strong>.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-base-color has-text-color has-background has-link-color wp-elements-1c29729cbb2ccdc5f06d617262d917de\" style=\"background:linear-gradient(183deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)\"><strong>IMPORTANT!<\/strong><br><br>When you activate PHP 7.0.0 in EasyPHP, path of PHP files has been changed from<br><br><strong>C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC11\\binaries\\php\\php700x151203113333\\<\/strong><br><br>to<br><br><strong>C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC11\\binaries\\php\\php_runningversion\\<\/strong><\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Update CURL and SSL libraries<\/h2>\n\n\n\n<p>You&#8217;ll get two error alerts like<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>the ordinal 387 could not be located in the dynamic link library php_curl.dll<\/p>\n<\/blockquote>\n\n\n\n<p>which means you need to update two DLL&#8217;s in the Apache2 directory.<\/p>\n\n\n\n<p>Copy files <code>libeay32.dll<\/code>\u00a0and <code>ssleay32.dll<\/code>\u00a0from <strong>C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC11\\binaries\\php\\php_runningversion\\<\/strong> to <strong>C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC11\\binaries\\apache\\bin\\<\/strong><\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7: Add PHP7 to\u00a0the Apache2 config<\/h2>\n\n\n\n<p>Edit file <strong>C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC11\\binaries\\apache\\conf\\httpd.conf<\/strong>&nbsp;and comment out line for PHP5:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#LoadModule php5_module \"C:\/PROGRA~2\/EASYPH~1.1VC\/binaries\/php\/php_runningversion\/php5apache2_4.dll\"<\/code><\/pre>\n\n\n\n<p>and add a new line for PHP7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>LoadModule php7_module \"C:\/PROGRA~2\/EASYPH~1.1VC\/binaries\/php\/php_runningversion\/php7apache2_4.dll\"<\/code><\/pre>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 8: Restart EasyPHP<\/h2>\n\n\n\n<p>The last step is to restart EasyPHP.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"284\" height=\"345\" src=\"\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/EasyPHP-Restart.png\" alt=\"EasyPHP: Restart\" class=\"wp-image-1208\" srcset=\"https:\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/EasyPHP-Restart.png 284w, https:\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/EasyPHP-Restart-247x300.png 247w\" sizes=\"auto, (max-width: 284px) 100vw, 284px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>After this, you&#8217;ll have PHP 7.0.0 on EasyPHP DevServer 14.1 VC11.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/EasyPHP-DevServer-PHP_Version_700.png\"><img loading=\"lazy\" decoding=\"async\" width=\"620\" height=\"338\" src=\"https:\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/EasyPHP-DevServer-PHP_Version_700-620x338.png\" alt=\"EasyPHP DevServer 14.1 VC11: PHP 7.0.0\" class=\"wp-image-1209\" srcset=\"https:\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/EasyPHP-DevServer-PHP_Version_700-620x338.png 620w, https:\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/EasyPHP-DevServer-PHP_Version_700-1024x558.png 1024w, https:\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/EasyPHP-DevServer-PHP_Version_700.png 1031w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><figcaption class=\"wp-element-caption\">EasyPHP DevServer 14.1 VC11: PHP 7.0.0<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/php700.png\"><img loading=\"lazy\" decoding=\"async\" width=\"620\" height=\"344\" src=\"https:\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/php700-620x344.png\" alt=\"PHP Info: Version 7.0.0\" class=\"wp-image-1210\" srcset=\"https:\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/php700-620x344.png 620w, https:\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/php700-162x91.png 162w, https:\/\/urosevic.net\/wordpress\/wp-content\/uploads\/2015\/12\/php700.png 1015w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><figcaption class=\"wp-element-caption\">PHP Info: Version 7.0.0<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to run PHP 7.0.0 on EasyPHP DevServer 14.1 VC11 with easy 8 steps for less than 10 minutes!<\/p>\n","protected":false},"author":1,"featured_media":1210,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[49,45,44,9,47,48,46],"class_list":["post-1206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","tag-development","tag-devserver","tag-easyphp","tag-php","tag-php-7-0-0","tag-php7","tag-windows-10"],"_links":{"self":[{"href":"https:\/\/urosevic.net\/wordpress\/wp-json\/wp\/v2\/posts\/1206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/urosevic.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/urosevic.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/urosevic.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/urosevic.net\/wordpress\/wp-json\/wp\/v2\/comments?post=1206"}],"version-history":[{"count":17,"href":"https:\/\/urosevic.net\/wordpress\/wp-json\/wp\/v2\/posts\/1206\/revisions"}],"predecessor-version":[{"id":3013,"href":"https:\/\/urosevic.net\/wordpress\/wp-json\/wp\/v2\/posts\/1206\/revisions\/3013"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/urosevic.net\/wordpress\/wp-json\/wp\/v2\/media\/1210"}],"wp:attachment":[{"href":"https:\/\/urosevic.net\/wordpress\/wp-json\/wp\/v2\/media?parent=1206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/urosevic.net\/wordpress\/wp-json\/wp\/v2\/categories?post=1206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/urosevic.net\/wordpress\/wp-json\/wp\/v2\/tags?post=1206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}