web analytics

Blog

Cast Control installation on a suPHP installed server fails

Tags: cast controlshoutcast hostingsuPHP

Published on: May 21, 2009 by George K.

Cast Control installation on a suPHP installed server fails

Scenario:

Shoutcast hosting is one of the niche market for the hosting industry. But sometimes,on SHOUTcast installation 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"

Now try to proceed with the SHOUTcast installation

Category : Troubleshooting, VPS

George K.

George K.

George started his career in web hosting and Linux technical support in the year 2004 and is with SupportSages since 2009. He has keen interest in server optimizations, custom security solutions, hacked server recovery, cyber forensic and high availability fail over system design and implementation. George loves long drives and is passionate about art and literature.

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Get new updates

Categories

$0.000 items