{"id":4544,"date":"2016-05-02T15:42:27","date_gmt":"2016-05-02T14:42:27","guid":{"rendered":"https:\/\/www.utilewebsites.nl\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/"},"modified":"2023-04-06T08:07:35","modified_gmt":"2023-04-06T07:07:35","slug":"different-php-version-cli-executable-for-one-command-different-php-versions-and-cli","status":"publish","type":"wz_knowledgebase","link":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/","title":{"rendered":"different PHP version CLI executable for one command \/ different php versions and CLI"},"content":{"rendered":"<p>In order to invoke the cli command on a server with different php versions by the appropriate php version, one can execute it in the following method :<\/p>\n<pre class=\"lang-php prettyprint prettyprinted\"><code><span class=\"pln\">$ env PATH<\/span><span class=\"pun\">=<\/span><span class=\"str\">\"\"\/usr\/local\/php55\/bin:$PATH\"<\/span><span class=\"pln\"> php <\/span><span class=\"pun\">-<\/span><span class=\"pln\">v\n\nwaarbij <span style=\"font-size: small;\"><span class=\"str\">\/usr\/local\/php55\/ The route is to the PHP version on your server<\/span><\/span>\n<\/span><\/code><\/pre>\n<p>If you run this correctly you will see the php version in the terminal. Below is an example of what this might look like :<\/p>\n<p><em>PHP 5.5.30 (cli) (built: Oct 9 2015 15:12:26)<\/em><br \/>\n<em> Copyright (c) 1997-2015 The PHP Group<\/em><br \/>\n<em> Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies<\/em><br \/>\n<em> with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.17, Copyright (c) 2002-2015, by ionCube Ltd.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to invoke the cli command on a server with different php versions by the appropriate php version, one can execute it in the following method : $ env PATH=\"\"\/usr\/local\/php55\/bin:$PATH\" php -v waarbij \/usr\/local\/php55\/ The route is to the PHP version on your server If you run this correctly you will see the php version in the terminal. Below is an example of what this might look like : PHP 5.5.30 (cli) (built: Oct 9 2015 15:12:26) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies with the ionCube PHP Loader (enabled) + Intrusion&nbsp;<a href=\"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/\" class=\"read-more\">Continue Reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"wzkb_category":[60,59],"wzkb_tag":[],"class_list":["post-4544","wz_knowledgebase","type-wz_knowledgebase","status-publish","hentry","wzkb_category-linux","wzkb_category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>different PHP version CLI executable for one command \/ different php versions and CLI - Utilewebsites<\/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.utilewebsites.nl\/en\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"different PHP version CLI executable for one command \/ different php versions and CLI - Utilewebsites\" \/>\n<meta property=\"og:description\" content=\"In order to invoke the cli command on a server with different php versions by the appropriate php version, one can execute it in the following method : $ env PATH=&quot;&quot;\/usr\/local\/php55\/bin:$PATH&quot; php -v waarbij \/usr\/local\/php55\/ The route is to the PHP version on your server If you run this correctly you will see the php version in the terminal. Below is an example of what this might look like : PHP 5.5.30 (cli) (built: Oct 9 2015 15:12:26) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies with the ionCube PHP Loader (enabled) + Intrusion&nbsp;Continue Reading\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/\" \/>\n<meta property=\"og:site_name\" content=\"Utilewebsites\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-06T07:07:35+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\\\/\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\\\/\",\"name\":\"different PHP version CLI executable for one command \\\/ different php versions and CLI - Utilewebsites\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#website\"},\"datePublished\":\"2016-05-02T14:42:27+00:00\",\"dateModified\":\"2023-04-06T07:07:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge Base\",\"item\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"different PHP version CLI executable for one command \\\/ different php versions and CLI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\",\"name\":\"Utilewebsites\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#organization\",\"name\":\"Utilewebsites\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/logo-Utilewebsites-2017.png\",\"contentUrl\":\"https:\\\/\\\/www.utilewebsites.nl\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/logo-Utilewebsites-2017.png\",\"width\":3000,\"height\":593,\"caption\":\"Utilewebsites\"},\"image\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"different PHP version CLI executable for one command \/ different php versions and CLI - Utilewebsites","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.utilewebsites.nl\/en\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/","og_locale":"en_US","og_type":"article","og_title":"different PHP version CLI executable for one command \/ different php versions and CLI - Utilewebsites","og_description":"In order to invoke the cli command on a server with different php versions by the appropriate php version, one can execute it in the following method : $ env PATH=\"\"\/usr\/local\/php55\/bin:$PATH\" php -v waarbij \/usr\/local\/php55\/ The route is to the PHP version on your server If you run this correctly you will see the php version in the terminal. Below is an example of what this might look like : PHP 5.5.30 (cli) (built: Oct 9 2015 15:12:26) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies with the ionCube PHP Loader (enabled) + Intrusion&nbsp;Continue Reading","og_url":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/","og_site_name":"Utilewebsites","article_modified_time":"2023-04-06T07:07:35+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/","url":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/","name":"different PHP version CLI executable for one command \/ different php versions and CLI - Utilewebsites","isPartOf":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#website"},"datePublished":"2016-05-02T14:42:27+00:00","dateModified":"2023-04-06T07:07:35+00:00","breadcrumb":{"@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/different-php-version-cli-executable-for-one-command-different-php-versions-and-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.utilewebsites.nl\/en\/"},{"@type":"ListItem","position":2,"name":"Knowledge Base","item":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/"},{"@type":"ListItem","position":3,"name":"different PHP version CLI executable for one command \/ different php versions and CLI"}]},{"@type":"WebSite","@id":"https:\/\/www.utilewebsites.nl\/en\/#website","url":"https:\/\/www.utilewebsites.nl\/en\/","name":"Utilewebsites","description":"","publisher":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.utilewebsites.nl\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.utilewebsites.nl\/en\/#organization","name":"Utilewebsites","url":"https:\/\/www.utilewebsites.nl\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.utilewebsites.nl\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.utilewebsites.nl\/wp-content\/uploads\/2019\/08\/logo-Utilewebsites-2017.png","contentUrl":"https:\/\/www.utilewebsites.nl\/wp-content\/uploads\/2019\/08\/logo-Utilewebsites-2017.png","width":3000,"height":593,"caption":"Utilewebsites"},"image":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase"}],"about":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/types\/wz_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/comments?post=4544"}],"version-history":[{"count":2,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4544\/revisions"}],"predecessor-version":[{"id":4547,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4544\/revisions\/4547"}],"wp:attachment":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/media?parent=4544"}],"wp:term":[{"taxonomy":"wzkb_category","embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wzkb_category?post=4544"},{"taxonomy":"wzkb_tag","embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wzkb_tag?post=4544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}