{"id":241,"date":"2009-10-21T17:22:20","date_gmt":"2009-10-21T21:22:20","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=241"},"modified":"2013-03-20T08:41:11","modified_gmt":"2013-03-20T12:41:11","slug":"usrbinphpize-binsh-bad-interpreter-permission-denied","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/usrbinphpize-binsh-bad-interpreter-permission-denied","title":{"rendered":"\/usr\/bin\/phpize \/bin\/sh: bad interpreter: Permission denied"},"content":{"rendered":"<p><strong>Error Message:<\/strong><\/p>\n<p><span style=\"color: #0000ff;\"><strong>\/usr\/bin\/phpize: \/tmp\/tmpjMvBZg\/package.x.x\/build\/shtool: \/bin\/sh: bad interpreter: Permission denied<\/strong><\/span><\/p>\n<p>If you receive the above error message while installing a package using &#8220;pecl&#8221;, it meant that the <strong>\/tmp partition is mounted in &#8220;noexec&#8221; mode<\/strong> and that <strong>you do not have permissions to execute anything under \/tmp partition<\/strong>.<\/p>\n<p><strong>Execute the  &#8220;mount&#8221; command<\/strong> and you will see something like:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>root@server [~]# mount <\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong>\/dev\/sdax on \/tmp type ext3 (rw,noexec,nosuid)<\/strong><\/span><\/p><\/blockquote>\n<p><strong>To mount the \/tmp partition in rw mode, execute:<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>root@server [~]# mount -o remount rw \/tmp<\/strong><\/span><\/p><\/blockquote>\n<p>Now, you can <strong>execute the &#8220;pecl&#8221; command to install the package<\/strong> you like. Once done, you can <strong>remount \/tmp with noexec mode<\/strong> again:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>root@server [~]# mount -o remount rw,noexec,nosuid \/tmp<\/strong><\/span><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Error Message:<br \/>\n\/usr\/bin\/phpize: \/tmp\/tmpjMvBZg\/package.x.x\/build\/shtool: \/bin\/sh: bad interpreter: Permission denied<br \/>\nIf you receive the above error message while installing a package using &#8220;pecl&#8221;, it meant that the \/tmp partition is mounted in &#8220;noexec&#8221; mode and that you do not have permissions to execute anything under \/tmp partition.<br \/>\nExecute the  &#8220;mount&#8221; command and you will see something like:<br \/>\nroot@server [~]# mount<br \/>\n\/dev\/sdax on \/tmp type ext3 (rw,noexec,nosuid)<br \/>\nTo mount the \/tmp partition in rw mode, execute:<br \/>\nroot@server [~]# mount -o remount rw \/tmp<br \/>\nNow, you can execute the &#8220;pecl&#8221; command to install the package you like. [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[280,284,281,282,283,285,286],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/241"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":4,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"predecessor-version":[{"id":243,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/241\/revisions\/243"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}