Cast Control installation on a suPHP installed server fails

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 CastControl 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,

There was a problem with the tested shoutcast server
While the SHOUTcast server seems to have started, it was terminated unexpectantly

Click here to view the shoutcast log

It’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,

[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
[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
[Thu May 21 03:11:40 2009] [error] [client xxx.xxx.xxx.xxx] Warning: bad syntax, perhaps a bogus ‘-’? See /usr/share/doc/procps-3.2.7/FAQ, referer: http://www.shoutcastsage.net/shoutcast/install/install.php
[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
[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

But pgrep and whoami are there in the server. What to do next ?

Time to edit suphp.conf. The culprit is the env_path setting in the conf file.

Current setting would be env_path=/bin:/usr/bin . Add double quotes there for the path setting and restart apache, like below

;PATH environment variable
env_path="/bin:/usr/bin"

Post to Twitter Tweet This Post

Related posts:

  1. ERR This installation of Centova Cast is using an expired license key. Please contact an administrator for assistance.
  2. pure-ftpd fails to start in a OpenVZ server
  3. Kloxo restart fails giving entropy error
  4. How would I see the available versions of cPanel and Apache in a cPanel installed server ?
  5. Magento Installation SOAP error in loading WSDL

Comment Form

About this blog

This blog, acts as a knowledge repository for the world and is unofficial! Anything we find interesting in the cyber world will go here. Most cases, this blog will reflect the happiness of our staff in reaching successful solution to an issue (s)he worked on. A reference for other fellow SAGEs who come across similar issues later