{"id":695,"date":"2020-10-01T14:18:01","date_gmt":"2020-10-01T08:18:01","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=695"},"modified":"2020-10-01T14:18:01","modified_gmt":"2020-10-01T08:18:01","slug":"how-to-fix-usr-bin-env-php-permission-denied-in-plesk","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/how-to-fix-usr-bin-env-php-permission-denied-in-plesk.html","title":{"rendered":"How to Fix \/usr\/bin\/env: \u2018php\u2019: Permission denied in Plesk"},"content":{"rendered":"\n<p>If you are seeing an error like the following in your Plesk:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">bash-4.4$ laravel\n\/usr\/bin\/env: \u2018php\u2019: Permission denied<\/pre>\n\n\n\n<p>Your binary to php is probably being used through redirection like .bashrc file and an alias is hooked for your php command to work. A better way to do this, is to hook the php binary to your PATH variable. You may do this and fix the error by following this tutorial:<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-mellowhost-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"lmsX7t9HtU\"><a href=\"https:\/\/mellowhost.com\/blog\/how-to-add-php-in-default-path-for-plesk-how-to-fix-bash-php-command-not-found-for-plesk-user.html\">How to Add PHP in Default Path for Plesk \/ How to Fix -bash: php: command not found for Plesk User<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;How to Add PHP in Default Path for Plesk \/ How to Fix -bash: php: command not found for Plesk User&#8221; &#8212; Mellowhost Blog\" src=\"https:\/\/mellowhost.com\/blog\/how-to-add-php-in-default-path-for-plesk-how-to-fix-bash-php-command-not-found-for-plesk-user.html\/embed#?secret=lmsX7t9HtU\" data-secret=\"lmsX7t9HtU\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Hope this helps. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are seeing an error like the following in your Plesk: Your binary to php is probably being used through redirection like .bashrc file and an alias is hooked for your php command to work. A better way to do this, is to hook the php binary to your PATH variable. You may do &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/how-to-fix-usr-bin-env-php-permission-denied-in-plesk.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Fix \/usr\/bin\/env: \u2018php\u2019: Permission denied in Plesk&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[144,273,509],"tags":[513,275,510],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/695"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=695"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/695\/revisions"}],"predecessor-version":[{"id":696,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/695\/revisions\/696"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}