Friday, September 05, 2008

Installing Jinzora

Jinzora is a streaming jukebox similar to Squeezecenter. The web interface is not as intuitive as squeezecenter, but for me, worked much faster and without as many glitches. There are several nice guides on installing Jinzora which I have linked to below so I won't go through everything (like installing a LAMP server) since others have already covered it. These guides work equally well with Hardy. There are a few problems I ran into while installing that I will highlight here. The basics to installing are the following (again see the links for more details and screenshots):

1. Initially, we need to install a package and edit a file so that we don't get errors once jinzora is installed. So first use synaptic or apt-get to install the package "php5-gd." Next, edit the file /etc/php5/apache2/php.ini with the following command:
sudo nano /etc/php5/apache2/php.ini
You want to find the following lines and make sure the corresponding values match what I have listed below:
max_execution_time = 300
memory_limit = 32M
post_max_size = 32M
upload_max_filesize = 32M


2. Restart apache with the following command:
sudo /etc/init.d/apache restart

3. Download Jinzora from their website.

4. Unpack the downloaded file which will result in a folder called jinzora2. Move the jinzora2 folder to the /var/www directory. Do this with the following command:
sudo mv /current/path/to/jinzora2 /var/www/

5. Now change certain permissions in the jinzora2 folder. One way is to simply make everything in the folder read/write/exectue with the following command:
sudo chmod -R 777 /var/www/jinzora2
Or, we can use the included script to change only what is needed by running these two commands:
cd /var/www/jinzora2
sudo sh ./configure.sh

6. Now complete the installation by using the web based installer located at http://your-server's-IP/jinzora2/ (Note that jinzora needs port 80 open). The mac install guide, linked to below, has very nice explanations and screenshots. Also, on the backend setup, you can probably can leave the database user as root and use root's password unless you have something other than a typical setup. Jinzora2 is a good database name, localhost for database server, database type is mysql, and set create database to true.

7. When you are all finished and try to log in (again using the url noted in the previous step), you will get a message regarding the install folder. You probably don't want to delete the install folder in case you need it later, so simply rename it with the following command:
sudo mv /var/www/jinzora2/install /var/www/jinzora2/install.bak

8. It should now work. Again, refer to the links below for further explanations if needed.

Sources:
Jinzora
Mac Install Guide
Windows Install Guide
Linux Install Guide
php5-gd instructions
php.ini file alterations

No comments: