Add Directory and Directory Alias Statements to Apache Conf file
These steps will tell Apache how to find your music. We will create a Web Alias for the directory where you have your music.
Warning!
You can use a network share for your music, but not yet! You can do this later. It is sort of complicated and should be done as a separate
step. Use a local Directory for your music. The Win32 Install menu has a guide for
streaming music from a network share. Keep things simple for now. Do the Standard setup first...
Open the \apache\conf\httpd.conf file for editing - wordpad is fine
If the alias works, the file will download and and your mediaplayer will play it.
If you get a Page Not Found or HTTP 404 error, the alias was either incorrectly entered or you forgot
to save your changes and restart Apache.
Ready to Configure YoDJ!
Copy the YoDJ directory from your installation directory into the .\htdocs directory
It should look like .\apache2\htdocs\yodj
The YoDJ directory contains several files. Edit \apache2\htdocs\YoDJ.ini to correspond to your Alias
Make the following edits
Make sure that WebRoot corresponds to the alias name in your alias statement. If you followed directions, this will be /Music/ and you can leave this alone
webroot = /Music/
The webroot slashes must be forward slashes
rootdir = d:/Mystuff/cooltunes/
On the PC, slashes can go either direction
Make sure that rootdir corresponds to the physical path you defined in your alias and directory statements!
Don't make any other changes yet
What This Means:
Rootdir is the physical place where YoDJ will look for music
Webroot is the alias directory that you will stream music from to a user and browser
For example:
Given the above settings:
d:/Mystuff/cooltunes/live/Billy/Mybong.mp3
will be streamed as http://yourserver/Music/Billy/Mybong.mp3
This should bring up the YoDJ browser. Try to stream a song.
If You have a problem
Make sure that you can stream music from the demo Yodj Site. Sometimes your music player MIME settings are not correct
Winamp: Make sure Winamp is configured to play m3u files. Trying toggling it off and on
Any other Music player. Follow the same instructions
If you are able to stream music from the YoDJ test site, you know that your media player is correctly configured.
Check the webroot and rootdir entries in the yodj.ini file.
Remember that they must both have trailing slashes and that the webroot should be the same as your Alias
Email me or call me if you have done this and are stuck. Don't tear your hair out.
A Few Final Steps
We need to make sure that your YoDJ web server can be accessed from other machines
Thus far, we have accessed the web server as LocalHost. You need to access it by its IP address
Just access it by IP in another browser window. If the IP address is 192.168.1.102 you would access it as "http://192.168.1.102/yodj/yodj.php"
If this does not work, check your IP address again using IPCONFIG and check the
httpd.conf file. Make sure that it matches.
Remember any changes to the httpd.conf file call for a restart
Your machine is almost certainly set up for DHCP or dynamic IP addressing.
Although the address is likely to stick, you should configure it to have a static
IP address. If you do not know how to do this, check the online FAQ or email for directons.
If you want to access your YoDJ browser from the outside, you will need to configure your router. Check the installation Menu for this.