<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SupportSages &#187; shoutcast hosting</title>
	<atom:link href="http://www.supportsages.com/blog/tag/shoutcast-hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.supportsages.com/blog</link>
	<description>Technical Support and Server Management : Musings in the fox hole.</description>
	<lastBuildDate>Thu, 05 Jan 2012 03:05:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Cast Control installation on a suPHP installed server fails</title>
		<link>http://www.supportsages.com/blog/2009/05/cast-control-installation-on-a-suphp-installed-server-fails/</link>
		<comments>http://www.supportsages.com/blog/2009/05/cast-control-installation-on-a-suphp-installed-server-fails/#comments</comments>
		<pubDate>Thu, 21 May 2009 13:27:18 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[cast control]]></category>
		<category><![CDATA[shoutcast hosting]]></category>
		<category><![CDATA[suPHP]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=380</guid>
		<description><![CDATA[Shoutcast hosting is one of the niche market for the hosting industry. But sometimes, issues like this creep in. So here is the solution for the issue. Even if you are offering unmanaged VPS web hosting, clients may not be able to easily solve this themselves. Please help them :)

Make sure that the files inside the <a href="http://www.cast-control.net">CastControl</a> folder,  files/1-9-8-linux-glibc6/sc_serv and files/1-9-8-linux-glibc6/sc_trans should have permissions 777 even if your server is running under suPHP. If installation fails after setting it to 777, with an error message as below,

<blockquote>There was a problem with the tested shoutcast server
While the SHOUTcast server ...]]></description>
			<content:encoded><![CDATA[<p>Shoutcast hosting is one of the niche market for the hosting industry. But sometimes, issues like this creep in. So here is the solution for the issue. Even if you are offering unmanaged VPS web hosting, clients may not be able to easily solve this themselves. Please help them <img src='http://www.supportsages.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Make sure that the files inside the <a  href="http://www.cast-control.net">CastControl</a> folder,  files/1-9-8-linux-glibc6/sc_serv and files/1-9-8-linux-glibc6/sc_trans should have permissions 777 even if your server is running under suPHP. If installation fails after setting it to 777, with an error message as below,</p>
<blockquote><p>There was a problem with the tested shoutcast server<br />
While the SHOUTcast server seems to have started, it was terminated unexpectantly</p>
<p>Click here to view the shoutcast log</p></blockquote>
<p>It&#8217;s time to check the apache error logs. Because shoutcast logs are empty or even the logs folder inside cast control. And the apache error log has tons of errors like below,</p>
<blockquote><p>[Thu May 21 03:11:37 2009] [error] [client xxx.xxx.xxx.xxx] sh: whoami: command not found, referer: http://www.shoutcastsage.net/shoutcast/install/install.php<br />
[Thu May 21 03:11:40 2009] [error] [client xxx.xxx.xxx.xxx] sh: whoami: command not found, referer: http://www.shoutcastsage.net/shoutcast/install/install.php<br />
[Thu May 21 03:11:40 2009] [error] [client xxx.xxx.xxx.xxx] Warning: bad syntax, perhaps a bogus &#8216;-&#8217;? See /usr/share/doc/procps-3.2.7/FAQ, referer: http://www.shoutcastsage.net/shoutcast/install/install.php<br />
[Thu May 21 03:11:40 2009] [error] [client xxx.xxx.xxx.xxx] sh: pgrep: command not found, referer: http://www.shoutcastsage.net/shoutcast/install/install.php<br />
[Thu May 21 03:11:40 2009] [error] [client xxx.xxx.xxx.xxx] ../temp/installation.conf.sh: line 3: nohup: command not found, referer: http://www.shoutcastsage.net/shoutcast/install/install.php
</p></blockquote>
<p>But pgrep and whoami are there in the server. What to do next ?</p>
<p>Time to edit suphp.conf. The culprit is the env_path setting in the conf file. </p>
<p>Current setting would be env_path=/bin:/usr/bin . Add double quotes there for the path setting and restart apache, like below</p>
<p><code>;PATH environment variable<br />
env_path="/bin:/usr/bin"</code></p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=Cast+Control+installation+on+a+suPHP+installed+server+fails+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F380" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=Cast+Control+installation+on+a+suPHP+installed+server+fails+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F380" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/05/cast-control-installation-on-a-suphp-installed-server-fails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

