{"id":4714,"date":"2018-09-29T02:11:30","date_gmt":"2018-09-29T02:11:30","guid":{"rendered":"https:\/\/geekdecoder.com\/?p=4714"},"modified":"2018-09-29T02:11:30","modified_gmt":"2018-09-29T02:11:30","slug":"use-path-to-php-7-to-run-a-command-vs-os-php","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2018\/09\/29\/use-path-to-php-7-to-run-a-command-vs-os-php\/","title":{"rendered":"Use Path to PHP 7 to run a command vs OS PHP"},"content":{"rendered":"<p>When needing to run a command in a different version on php.<br \/>\nWhere is the path to php 7 on cpanel?<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# \/opt\/cpanel\/ea-php70\/root\/usr\/bin\/php -v\nPHP 7.0.32 (cli) (built: Sep 14 2018 20:36:03) ( NTS )\nCopyright (c) 1997-2017 The PHP Group\nZend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies\n\n<\/pre>\n<p>How to specify command line command &#8220;php&#8221; version for SSH user on the Plesk server? <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\/opt\/plesk\/php\/7.2\/bin\/php -v \n<\/pre>\n<p>See: https:\/\/support.plesk.com\/hc\/en-us\/articles\/115003766853-How-to-specify-PHP-version-on-the-Plesk-server-for-command-line-command-php-for-user-<br \/>\nset the path &#8211; https:\/\/stackoverflow.com\/questions\/31206864\/use-different-php-version-cli-executable-for-one-command<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When needing to run a command in a different version on php. Where is the path to php 7 on cpanel? # \/opt\/cpanel\/ea-php70\/root\/usr\/bin\/php -v PHP 7.0.32 (cli) (built: Sep 14 2018 20:36:03) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies How to specify command line command &#8230; <a title=\"Use Path to PHP 7 to run a command vs OS PHP\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2018\/09\/29\/use-path-to-php-7-to-run-a-command-vs-os-php\/\" aria-label=\"Read more about Use Path to PHP 7 to run a command vs OS PHP\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,84],"tags":[],"class_list":["post-4714","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-php"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=4714"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4714\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=4714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=4714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=4714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}