Shoutcast sc trans

sc_trans can play list of mp3 files to shoutcast server so your online radio station will be online even if you are not online. Install sc_trans cd /home mkdir shoutcast cd shoutcast wget http://yp.shoutcast.com/downloads/sc_trans_posix_040.tgz tar -zxvf sc_trans_posix_040.tgz cd sc_trans_040 Create Play List of mp3 Files Upload your MP3 files to folder /home/shoutcast/sc_trans_040/mp3 To create a … Read more

Install shoutcast server

Download linux version from site http://www.shoutcast.com/download-files cd /home mkdir shoutcast cd shoutcast wget http://yp.shoutcast.com/downloads/sc1-9-8/sc_serv_1.9.8_Linux.tar.gz tar -zxvf sc_serv_1.9.8_Linux.tar.gz Now edit sc_serv.conf vi sc_serv.conf Find Password=changeme Replace changeme with secure password. Other important options are MaxUser PortBase To start, run ./sc_serv To start in background, run ./sc_serv & After you run, you will see [root@server28 shoutcast]# ./sc_serv … Read more

error while loading shared libraries: libmysqlclient.so.16

On installing postfix from source, when running the make install command I get an error bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory This is because MySQL library path is not in system library locations. To fix the error edit /etc/ld.so.conf vi /etc/ld.so.conf Add the following … Read more

myisamchk: Argument list too long

When repairing a large database, i got following error [root@server root]# myisamchk –silent –force –fast –update-state \ –key_buffer_size=64M –sort_buffer_size=64M \ –read_buffer_size=1M –write_buffer_size=1M /var/lib/mysql/databasename/*.MYI -bash: /usr/bin/myisamchk: Argument list too long To fix the error, run SOLUTION 1 find /backup/mysql/bizhat_s2 -type f -print0 -name ‘*.MYI’ | xargs -0 myisamchk –force –fast –update-state –key_buffer_size=64M –sort_buffer_size=64M –read_buffer_size=1M –write_buffer_size=1M SOLUTION … Read more

bind lighttpd to one ip address

I want to bind lighttpd on IP address 76.76.18.20, so i can use other IP’s for Apache, Apache have “Listen” option to bind apache to specific IP address. vi /etc/lighttpd/lighttpd.conf Find #server.bind = “127.0.0.1” Replace with server.bind = “76.76.18.20” See lighttpd

configure: error: XML configuration could not be found

When i install php from source, i get the error Running FastCGI Process Manager checks checking for php-fpm config file path… $prefix/etc/php-fpm.conf checking for php-fpm log file path… $prefix/logs/php-fpm.log checking for php-fpm pid file path… $prefix/logs/php-fpm.pid checking for XML configuration checking for xml2-config… no checking for xml-config… no configure: error: XML configuration could not be … Read more

configure: error: Please reinstall the libcurl distribution

When compiling php from source for nginx web server, i get error checking for cURL support… yes checking if we should use cURL for url streams… yes checking for cURL in default path… not found configure: error: Please reinstall the libcurl distribution – easy.h should be in /include/curl/ On checking, found curl-devel not installed [root@vps1 … Read more

Auto restart lighttpd on crash

To restart lighttpd if it went down or crashed, create a file check_lighttpd.sh mkdir /usr/serverok vi /usr/serverok/check_lighttpd.sh With the following content #!/bin/bash /usr/bin/wget –tries=1 –timeout=30 -O /dev/null http://localhost:80/up.html if [ $? -ne 0 ]; then ( killall -9 lighttpd; killall -9 gam_server; killall -9 php-cgi; /etc/init.d/lighttpd stop; mv /var/log/lighttpd/access.log /var/log/lighttpd/access.$(date +%Y%m%d_%H).log mv /var/log/lighttpd/error.log /var/log/lighttpd/error.$(date +%Y%m%d_%H).log … Read more

install postfix from source code

Requirements yum -y install db4 db4-devel Create user groupadd postfix -g 1000 useradd postfix -u 1000 -g 1000 groupadd postdrop Download and Install Go to http://www.postfix.org/download.html and download latest version of postfix. cd /usr/local/src wget http://mirrors.rootservices.net/postfix/official/postfix-2.6.2.tar.gz tar -zxvf postfix-2.6.2.tar.gz cd postfix-2.6.2 COMPILING make tidy make -f Makefile.init makefiles make make install COMPILING WITH MYSQL SUPPORT … Read more

configure: error: No curses/termcap library found

On installing MySQL from source, i get error checking for tgetent in -lncurses… no checking for tgetent in -lcurses… no checking for tgetent in -ltermcap… no checking for tgetent in -ltinfo… no checking for termcap functions library… configure: error: No curses/termcap library found SOLUTION Lets search for ncurses [root@server52 mysql-5.1.23-ndb-6.2.15]# yum list|grep ncurses Repository base … Read more

Lynx

lynx is a text based browser for Linux and FreeBSD http://lynx.isc.org Install lynx on CentOS/RHEL/Oracle Linux yum install lynx Install lynx on Debian/Ubuntu apt install lynx Install Lynx from Source wget http://lynx.isc.org/release/lynx2.8.5.tar.gz tar -zxvf lynx2.8.5.tar.gz cd lynx2-8-5 ./configure make make install Install from ports on FreeBSD cd /usr/ports/www/lynx make make install make clean rehash On … Read more