Pages

Wednesday, March 27, 2013

How to install Centova Cast on CentOS

First you must install the required programs on CentOS.

yum install httpd php php-devel php-common php-mysql php-gd php-xml mysql mysql-server -y

Once the above has completed you will need to install the ioncube loaders. Firstly you must determine your php version.

php -v

You will see output similar to the following which will show you the version of PHP you are running.

PHP 5.1.6 (cli) (built: Jun 27 2012 12:21:13)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright © 1998-2006 Zend Technologies

Now you can download the ioncube loaders.

wget http://downloads2.io...n_x86-64.tar.gz

Extract the loaders

tar zxf ion*

cd ion*

if your php returned version 5.1.x you will need to copy the correct loader library to the following php module directory

/usr/lib64/php/modules

cp ioncube_loader_lin_5.1.so /usr/lib64/php/modules

Next we must edit the php.ini file and add the extension to php.

nano /etc/php.ini

Add the following line to the file near the bottom.

zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.1.so

Save and exit.

Type php -v and look for the following output similar to below that shows ioncube is loaded.

PHP 5.1.6 (cli) (built: Jun 27 2012 12:21:13)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright © 1998-2006 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright © 2002-2012, by ionCube Ltd. <<<<
Before we install Centovacast we need to configure the newly installed mysql. Firstly we will start mysql and secure it

with a password as shown below.

service mysqld start
mysqladmin -u root password your_secret_pass_goes_here

Now login to your mysql with your new password and lets create the database and user for Centovacast.

mysql -u root --password=your_secret_pass
create database centovacast;
use mysql;
grant all privileges on centovacast.* to 'centovacast'@'localhost' identified by 'a_secret_pass' with grant option;
flush privileges;
quit

Now that is done we can go ahead and download Centovacast for installation.

wget -O install.sh install.centova.com/your_license_key_goes_here

chmod a+x ./install.sh

./install.sh --shoutcast-all --channel=unstable (change this to icecast if you prefer to use that)

The installer will now install the necessary software packages it requires for centovacast. Answer y and press enter when

prompted to allow the installer to continue.

Once the installer it completes you will need to visit the URL it tells you to in your browser to complete the

installation. You will need the mysql information you created above.

No comments :

Post a Comment