Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stats stylesheet

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
peepo



Joined: 15 Dec 2007
Posts: 88

PostPosted: Sun Jun 08, 2008 1:54 pm    Post subject: Stats stylesheet Reply with quote

Im trying to get a stylesheet to work with my stats page, but I cant get it to work.
This is my code, can someone tell me whats missing?

<logdir>./logs</logdir>
<webroot>/status.xsl</webroot>
<adminroot>../admin</adminroot>
<alias source="/" dest="/status.xsl"/>

Thanks
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Jun 08, 2008 3:07 pm    Post subject: Reply with quote

why does your webroot refer to a file? it should be a directory which contains those xsl files

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
peepo



Joined: 15 Dec 2007
Posts: 88

PostPosted: Tue Jun 10, 2008 7:06 pm    Post subject: Reply with quote

I dont know, I thought thats what I had to do.
Ive replaced it with

<logdir>./logs</logdir>
<webroot>C:\Program Files\Icecast2 Win32\web</webroot>
<adminroot>../admin</adminroot>
<alias source="/" dest="/status.xsl"/>

And its not working.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Jun 10, 2008 8:09 pm    Post subject: Reply with quote

you are still only providing part of the information, if you check the error log then you should see a request being made and any failure relating to that.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
peepo



Joined: 15 Dec 2007
Posts: 88

PostPosted: Tue Jun 10, 2008 9:02 pm    Post subject: Reply with quote

Ive followed these instructions 'Check your icecast configuration file for an element called <webroot>. This directory contains web stuff. In it, place a file called status.xsl that transforms an XML file containing stream data into a web page'

My code looks like this

<logdir>./logs</logdir>
<webroot>C:\Program Files\Icecast2 Win32\web\status.xsl</webroot>
<adminroot>../admin</adminroot>
<alias source="/" dest="/status.xsl"/>

And its still not working
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Jun 10, 2008 10:54 pm    Post subject: Reply with quote

webroot like adminroot specify directories where a number of files can be contained. An example of one is status.xsl. I think you should be ok with the C:\... reference (minus the status.xsl you've added for some reason). Bit as I've already said, if you want to see why something is failing then check the error log. It should be fairly self-evident from that why it fails.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
peepo



Joined: 15 Dec 2007
Posts: 88

PostPosted: Fri Jun 13, 2008 8:11 pm    Post subject: Reply with quote

Hmmm, I have amended the config file & now when I try to access admin I get this 'Could not parse XSLT file'
Any ideas? Thanks
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jun 13, 2008 8:41 pm    Post subject: Reply with quote

Again the error log tells you what is occurring. There is a problem in the win32 install in that the default xml has an incorrect setting in webroot and adminroot (they have a ../ instead of a ./ which is easily changed. I'll upload the new install when I've verified it).

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber