{"id":1060,"date":"2017-02-01T18:43:12","date_gmt":"2017-02-01T23:43:12","guid":{"rendered":"http:\/\/easy-admin.ca\/?p=1060"},"modified":"2017-02-02T22:29:08","modified_gmt":"2017-02-03T03:29:08","slug":"php7-on-virtualmin","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2017\/02\/01\/php7-on-virtualmin\/","title":{"rendered":"Multiple PHP instances on VirtualMIN"},"content":{"rendered":"<div class=\"field field-name-comment-body field-type-text-long field-label-hidden\">\n<div class=\"field-items\">\n<div class=\"field-item even\">\n<p>I used Remi repo and PHP7 seems to work perfect. This is what I did (if someone sees something bad, just say because I am not 100% sure if it is perfect, but here it works).<\/p>\n<p><code><br \/>\n<span style=\"color: #ff0000;\"><strong>yum install scl-utils<\/strong><\/span><br \/>\nyum install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm<br \/>\nyum install http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm<br \/>\nyum install php70<br \/>\nyum install php70-php-mysqlnd<br \/>\nyum install php70-php-curl<br \/>\nyum install php70-php-simplexml<br \/>\n<span style=\"color: #ff0000;\"><strong>yum install php70-php-devel php70-php-gd php70-php-json php70-php-mcrypt php70-php-mbstring php70-php-opcache php70-php-pear php70-php-pecl-apcu php70-php-pecl-geoip php70-php-pecl-imagick php70-php-pecl-json-post php70-php-pecl-memcache php70-php-pecl-xmldiff php70-php-pecl-zip php70-php-pspell php70-php-soap php70-php-tidy php70-php-xml php70-php-xmlrpc<\/strong><\/span><br \/>\n<\/code><\/p>\n<p>With this you have PHP7 and all important extensions running next to the other PHP versions!<br \/>\nIf anyone sees room for improvement, then I am very interested. Would be good information on this topic.<br \/>\nAnd I know it would be better to not use third party repos, but I could not find PHP7 for CentOS 7.2 then. Is it correct you only can get this with a third party (Remi) repo?<br \/>\nAlso I hope it wasn&#8217;t a bad choice to choose this repo.<\/p>\n<p><strong>Had a hard time installing the php 5.6.x version on VirtualMIN<\/strong><\/p>\n<p>module php5.x-mysql missing&#8230; when loading your WordPress?? \ud83d\ude09<\/p>\n<p># yum install scl-utils<br \/>\n# yum -y update<br \/>\n# yum -y install <span style=\"color: #ff0000;\"><strong>php56-php-mysql<\/strong><\/span><\/p>\n<p>Installation done!<\/p>\n<p>Now test your wordpress, set VirtualMIN domain to use PHP version 5.6.x!<\/p>\n<p><strong>NOTE: Must &#8220;Re-Check Configuration&#8221; after adding a new php version into VirtualMIN<\/strong><\/p>\n<p>&gt; VirtualMIN &gt; System Settings &gt; Re-Check Configuration<\/p>\n<p>The following <strong>PHP<\/strong> versions are available : <strong>5.4.16<\/strong> (\/bin\/php-cgi), <strong>5.5.38<\/strong> (\/bin\/php55-cgi), <strong>5.6.30<\/strong> (\/bin\/php56-cgi), <strong>7.0.15<\/strong> (\/bin\/php70-cgi)<\/p>\n<p><em>Et voil\u00e0!<\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I used Remi repo and PHP7 seems to work perfect. This is what I did (if someone sees something bad, just say because I am not 100% sure if it is perfect, but here it works). yum install scl-utils yum install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm yum install http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm yum install php70 yum install php70-php-mysqlnd yum install php70-php-curl yum &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2017\/02\/01\/php7-on-virtualmin\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Multiple PHP instances on VirtualMIN<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1060","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1060"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1060\/revisions"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}