This tutorial will guide you every step of the way through installing and setting up Jinzora, a very robust streaming media server - in OS X.
From the Jinzora site -
Jinzora is the ultimate web based media streaming and management system. Streaming your media with Jinzora gives you quick and easy access to your online music and video collection from any device with a web browser. Enjoy your media from your PC, notebook, PDA, Smart Phone, Xbox, PS3 or Wii.
Jinzora supports the following formats - Audio: AAC, M4A, Midi, MP3, MP4, Ogg Vorbis, RM and WMA. Audio (Transcoded): Flac, MPC, WAV, WMA Lossless, WV and SHN. Video: AVI, WMV, MPEG and MOV.
If you’d like to install Jinzora in Windows, Lifehacker has you covered.
- Before you install Jinzora, you’ll need to install and setup MAMP (Mac, Apache, MySQL and PHP). Fortunately we have you covered with a tutorial on doing just that in OS X.
- Head over to the Jinzora download page and download the Linux version (yes, the Linux version). Extract the files to your Document Root (if you’re using MAMP, the default will be /Applications/MAMP/htdocs/).
- Open a Terminal, navigate to /Applications/MAMP/htdocs/jinzora2/ and enter the following 4 commands:
chmod 777 settings.php
chmod 777 jukebox/settings.php
chmod 777 -R temp
chmod 777 -R data - To start the browser based installation, navigate to index.php in the jinzora2 directory. Again, if you’re using MAMP with the default settings, this will be http://localhost:8888/jinzora2/index.php. Review the info provided on this page, and select your Language: from the drop down list.
- Jinzora will run a check to make sure that your server (Mac) meets the minimum requirements. It will also check for Optional Packages. Some of these won’t be found - don’t worry about it. If the Recommended Settings show up as “red”, you’ll need to edit your php.ini file (found in /Applications/MAMP/conf/php5/php.ini - if you’re using MAMP in the default installation location).
Open php.ini in a text editor, and scroll to the line:
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
change it to:
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
Now look for the line:
max_execution_time = 30 ; Maximum execution time of each script, in seconds
and change it to:
max_execution_time = 300 ; Maximum execution time of each script, in seconds
Save the file. Click Proceed to License to continue.
- Review the license (yeah right), place a check in the box labeled I Agree to the license terms and click Proceed to Install Type.
- For the Installation Type: select Standalone (the default). For the Jukebox Mode: select Streaming Only. Click to Proceed to Main Settings.
- Here you’ll need to specify a number of settings. The Main Settings are all straight forward. The Frontend: and Style: can be changed later, so don’t stress too much over your selections.
- The Import Settings are very important. Hover your cursor over the Data Structure: drop-down list and a detailed explanation of the options will be displayed.
- I opted for Tag Data as my Data Structure, because I have spent a lot of time tagging my music, but my folder organization is terrible. Again, hover your cursor over the Media Layout: drop-down list for a detailed explanation of the choices.
- I opted for Artist as my Media Layout, but you of course can select the method that works best for you. Click Proceed to Backend Setup when you’ve made all your selections.
- Now you’ll need to specify the info for your database. Your database username and password can be found in your MAMP setup if you’re unsure what they are. Give your database a name (jinzora2, jinzora or something descriptive is a good idea), select MySQL as the Database Type, and unless you’ve already created the database manually, select True from the Create Database: drop-down. Click Continue with Backend Install.
- Assuming everything was successful, click Proceed to Import Media.
- Now it’s time to add your media. Navigate to the top level folder you want to add, and click Analyze. As you’ll note from the screenshot below, I only added some of my music collection (I created a temp folder and moved some albums into it). This was for screenshot purposes only. It can take quite a while to add a large media collection, and you can always add additional folders later.
- Once completed, click Proceed.
- You can add more media, or continue with the rest of the setup. When you’re done adding media, click Proceed to Save Config.
- If everything was successful, click Proceed to Launch Jinzora.
- Now you’ll be asked if you want to share anonymous stats. I’m a nice guy, so I opted to do just that.
- Click Launch Jinzora.
- Now sign in to Jinzora with the user name and password you specified way back in step #8.
- At this point you may receive an error message about your installation not being secure. Move the /Applications/MAMP/htdocs/jinzora2/install folder to somewhere else on your hard drive. Do not delete the install folder, as you’ll need it if you want to add more media folders in the future.
Refresh the page after you’ve moved the install folder…
- and the admin interface to Jinzora will appear, with all of your media loaded.
- On another computer (or Smartphone etc) load the URL http://ip-of-your-mac:8888/jinzora2
If your Mac and the “other computer” are on the same local network, the Jinzora login page will appear. If the other computer isn’t on the same network, you’ll need to make sure that port 8888 (the default MAMP web server port) is open/allowed through your firewall. If your Mac is behind a router, check PortForward.com for instructions on forwarding ports on your router.
After you’ve signed in to Jinzora, click the Play button next to one of your albums/artists/songs. That album/artist/song will start to stream.





Windows Mobile interface

Streaming to Windows Media Player Mobile
Advanced
To stream certain file types (flac, shn etc), you’ll need to install some additional software. Open settings.php in a text editor (found in /Applications/MAMP/htdocs/jinzora2) and scroll to the // Resampling section.
Change $allow_resample = "false"; to $allow_resample = "true";
Look for the lines:
$path_to_lame = "/usr/local/bin/lame";
$path_to_flac = "/usr/local/bin/flac";
and install flac and lame to those locations. Repeat for each format you want to stream.
If you’re only streaming files across your local network, you can skip the above steps, as Jinzora will ignore resampling requests for local networks. But make sure your internal networks IP addresses are included in the line:
$no_resample_subnets = “(192\.168\..*\..*)|(127\..*\..*\..*)”;
eg. if you use 10. as your internal network IP range, add |(10\..*\..*\..*)”







































{ 3 trackbacks }
{ 10 comments… read them below or add one }
Hi there
Although I enjoyed this article, and got it to work, there were a few problems in these instructions.
Step 3: from what i found, settings.php does not exist, so I left that command out, and things work fine!
Step 12: the default database user and password are both “root”
Step 21: First, I would just zip up the install folder right where it is. Also, the path I assume you meant was /Applications/MAMP/htdocs/jinzora2/install
Step 23: when you are accessing your computer from another computer on the local network, then the IP address is the local address. However, if the computers are across the net, then the IP address of the host is the public IP address (of the router) and you need to tell the router to forward traffic on that port to the host computer. To get around knowing what your public IP is, I recommend a service called dyndns.org. This installs a small piece of software on your computer, and monitors what your Public IP is. It then gives you a regular URL, like myip.dyndns.org, and they will forward that to your public IP.
Hope this helps!
Connor P
Connor -
Thanks for pointing out the mistake re: step 21. I’ve edited the tutorial to include the ‘htdocs’ part
settings.php is one of the most important files for jinzora2, it does exist
You wouldn’t be able to install without it.
The default user/pass for MySQL in MAMP are root/root, but most people would have changed those.
Zipping the install folder is a great idea. But it does need to be moved/removed even if you zip it.
Dyndns.org is a good call. The earlier part of your comment was covered by step #23 (?).
This reminds me of GNUMP3d for Linux. It’s basically the same idea just not as polished…and well for Linux.
How well does Jinzora work with streaming to iTunes? iTunes “works” with GNUMP3d but does not auto resolve the addresses.
I have jinzora st up on my server with 300 plus gigs of music.One of my biggest problems that I have had is with streaming m4a files from the server with itunes as the default music player. I can not get the m4as to stream at all. As a fix I converted all of my files to mp3s.That only took two days of work. Any ideas? I have Asked this question on the jinzora site but still have not gotten a good fix.
if settings.php did exist, then it wasn’t in the main folder of jinzora2. I just skipped that command and it installed fine!
And I left install.zip right where it was and it worked fine.
Also, In step 3: the last two commands didn’t work as written. However when I reversed the positions of the flag (-R) and the permission #’s (777) it worked fine!!
Thanks
Connor p
http://www.connorp.com/
Dear Ross,
First of all, I’d like to thank you for the excellent explanation on how to set Jinzora for the mac (I’ve been struggling with Linux codes and mpd like a madman before this!!!)
I have two questions for you.
the first is: I’ve been trying to access my mac from outside my network using its external IP (I’ve already forwarded port 8888 on my router), but it doesn’t seem to work…
The second is… Have you heard of MPoD for the iphone? Do you have any idea on how to configure it to use Jinzora?
Thanks a lot!!
Drausio
I’ve finally gotten to the point where it’s importing my library when I get the following error: “Cannot have signed integers larger than 32-bits in getid3_lib::BigEndian2Int()”
What is THAT supposed to mean? I’ve got a lot of Japanese music, tagged in Japanese…is that the problem?
Also, until I set the MySQL root password to blank in phpMyAdmin it refused to create the database. Now, however, I cannot access phpMyAdmin. How can I re-authenticate?
Also, Gwain, Jinzora IS for Linux. Did you not see where it says to download the Linux version?
There is no settings.php file in the jinzora2 directory.
chmod 777 settings.php
chmod 777 jukebox/settings.php
chmod 777 -R temp
chmod 777 -R data
The 3rd and 4th command didn’t work either, any ideas?
Thanks
Note my previous comment:
change
chmod 777 -R temp
chmod 777 -R data
to
chmod -R 777 temp
chmod -R 777 data
(switch positions of -R and 777)
This should fix it.
Skip the command on Settings.php
hope this helps
Connor P
http://www.connorp.com/
installation failed at the “backend setup” stage for the “Cannot have signed integers larger than 32-bits in getid3_lib::BigEndian2Int()” error message. and got completely stuck.
while reinstalling i found it to be completely useless
Leave a Comment