## How to Install Zuz Music

Zuz Music helps you build your very own music streaming portal without setting up any streaming server!
Setup Zuz Music on your domain and music data (10 GB Diskspace) will be served right from our servers. Isn't that cool :)
Installing Zuz Music is a very simple process and takes couple of minutes to complete.

The following installation guide will help you setup Zuz Music.

## Things to Know Before Installing Zuz Music

Before you begin the install, there are a few things you need to have and do.

1. Access to your web server (via FTP or shell)
2. Server Requirements
   1. PHP 5.6 or higher
   2. PHP MB_STRING Extension Should be Installed & Enabled (Learn More)
   3. PHP MCRYPT Extension Should be Installed & Enabled (Learn More)
   4. PHP CURL Extension Should be Installed & Enabled (Learn More)
   5. MySQLi Extension Should be Installed & Enabled (Learn More)
3. Data Server Requirements (If you wish to use your own data/streaming server otherwise skip this step)
   1. Youtube-dl – Command-line program to download videos from YouTube.com (Download & Install)
   2. FFmpeg – FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. (Download & Install)
4. Your web browser of choice
5. Keeping this webpage open so you have it handy during the installation

## How to Install

Please follow these steps to Install Zuz Music:

1. Upload Zuz Music Zip file and Unzip to your desired directory. (Mostly public_html on cpanel based servers)
2. Note: If your FTP client has an option to convert file names to lower case, make sure it's disabled.
3. Run the installation script by accessing the URL in a web browser. This should be the URL where you uploaded the Zuz Music files.
   1. If you installed Zuz Music in the root directory, you should visit: http://example.com/
   2. If you installed Zuz Music in its own subdirectory called `music`, for example, you should visit: http://example.com/music/
4. You will see the follow screen:
5. Make sure all direcotires inside ./assets should have writeable (0777) permissions and click Continue
6. You will see the follow screen:
7. You need Google App Client ID, Name, Secret and Key. If you haven't created Google App yet; Goto Google App Console
8. Enter Google App Client ID and click Connect Google App. System will verify your Google App Client ID and will show the following screen.
9. Click Sign in to Google and select your google account. This will be your admin account for ZMusic Admin Tools. Once signed in you will see the following screen.
10. Fill in all fields and click Continue:
11. Now you need to enter your Database Details and click Connect Database:
12. Database info will be verified and tables will be created automatically and you will be moved to next step:
13. Fill in Google App Name, Secret and Key and click Continue; You will see follow screen:
14. Now Fill in Email Server Details and click Continue
15. System will try to auto create `config.php`
16. If you see the following screen, you need to create `config.php` file manually!
    1. Goto your `Zuz Music installation directory > includes` and create `config.php' and paste the code (See Previous Image)
    2. Save the file.
17. Click Continue and you'll see installation success message.
18. Remove `__installer.php` file from your Zuz Installation Directory and you are done.
19. For demo visit: https://demos.zuz.host/gmusic/

## How to Upload Music

1. Goto Admin Panel section from the sidebar or Click Upload Track:
2. Click Upload and goto upload section.
3. Copy video link from youtube or soundcloud or select file from your device:
4. Click Select File > Paste Youtube Url and Hit Upload Button.
5. Video will be auto processed and converted to mp3 on Zuz Servers. (It'll take couple of minutes, depending on the service load)
6. You can add as many tracks in Que as you want. All Links will be processed one by one