<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Fix PECL PHP Error: /bin/sh: bad interpreter: Permission denied</title>
	<atom:link href="http://www.pinoytux.com/linux/how-to-fix-pecl-php-error-binsh-bad-interpreter-permission-denied/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pinoytux.com/linux/how-to-fix-pecl-php-error-binsh-bad-interpreter-permission-denied</link>
	<description>Everything Linux</description>
	<lastBuildDate>Sat, 11 Feb 2012 02:25:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: PECL install errors &#124; crumm • net</title>
		<link>http://www.pinoytux.com/linux/how-to-fix-pecl-php-error-binsh-bad-interpreter-permission-denied/comment-page-1#comment-149964</link>
		<dc:creator>PECL install errors &#124; crumm • net</dc:creator>
		<pubDate>Tue, 24 Jan 2012 19:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.pinoytux.com/?p=592#comment-149964</guid>
		<description>[...] Here&#8217;s the details, straight from http://www.pinoytux.com/linux/how-to-fix-pecl-php-error-binsh-bad-interpreter-permission-denied [...]</description>
		<content:encoded><![CDATA[<p>[...] Here&#8217;s the details, straight from <a href="http://www.pinoytux.com/linux/how-to-fix-pecl-php-error-binsh-bad-interpreter-permission-denied" rel="nofollow">http://www.pinoytux.com/linux/how-to-fix-pecl-php-error-binsh-bad-interpreter-permission-denied</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Reiber</title>
		<link>http://www.pinoytux.com/linux/how-to-fix-pecl-php-error-binsh-bad-interpreter-permission-denied/comment-page-1#comment-81861</link>
		<dc:creator>Paul Reiber</dc:creator>
		<pubDate>Thu, 25 Nov 2010 01:20:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.pinoytux.com/?p=592#comment-81861</guid>
		<description>Almost.  The failure of pear was because of the &quot;noexec&quot; option on /tmp rather than its being readonly.  In fact, it&#039;s not readonly as you were able to move directories around and make symbolic links.  Those actions would have failed if the /tmp drive was readonly.

Specifically, the line:

/usr/local/bin/phpize: /tmp/pear/temp/xdebug/build/shtool: /bin/sh: bad interpreter: Permission denied

...is what happens when you try to exec a script anywhere under /tmp when it&#039;s mounted with the &quot;noexec&quot; option.

% mount -oremount,exec /tmp
% pecl install xdebug
% mount -oremount,noexec /tmp

Also - its good practice to lock /tmp back down after changing the option so pecl will work.

Best regards,
-pbr</description>
		<content:encoded><![CDATA[<p>Almost.  The failure of pear was because of the &#8220;noexec&#8221; option on /tmp rather than its being readonly.  In fact, it&#8217;s not readonly as you were able to move directories around and make symbolic links.  Those actions would have failed if the /tmp drive was readonly.</p>
<p>Specifically, the line:</p>
<p>/usr/local/bin/phpize: /tmp/pear/temp/xdebug/build/shtool: /bin/sh: bad interpreter: Permission denied</p>
<p>&#8230;is what happens when you try to exec a script anywhere under /tmp when it&#8217;s mounted with the &#8220;noexec&#8221; option.</p>
<p>% mount -oremount,exec /tmp<br />
% pecl install xdebug<br />
% mount -oremount,noexec /tmp</p>
<p>Also &#8211; its good practice to lock /tmp back down after changing the option so pecl will work.</p>
<p>Best regards,<br />
-pbr</p>
]]></content:encoded>
	</item>
</channel>
</rss>

