@Andrey+Podshivalov on debian/ubuntu you can choose with dpkg the dependency you want satisfy (for php for example, or others packages). Why not for airtime too ?
@Albert+FR: Highload sites always using nginx coz it's much faster than apache. and also nginx offers nice features like load balancing and great proxying. we can even proxy icecast server via nginx and insert more user stats in useragent string via GeoIP module. Lets say would be great to have listeners map!
And yes nginx eats much less CPU/RAM
Post edited by Eugene MechanisM at 2011-12-05 10:23:15
*hopes airtime will be refactored and moved to python/django from php sometime..*
Reply to @Albert+FR: I agree NGINX is very fast and smart server. And all highload sites using it. Some ppl(like me) didn't installed Airtime for one reason: it's requires slow apache. Now I'm adapted install scripts and configs for NGINX and can successfully use Airtime without touching apache.
P.S.: Btw I'm even using custom compiled nginx with modules like nginx-concat, nginx-redis, nginx-push-stream etc - A lot of feature like WebSocket chats etc can be handled just via nginx + modules.
Post edited by Eugene MechanisM at 2011-12-15 09:15:45
*hopes airtime will be refactored and moved to python/django from php sometime..*
Ok Eugene+MechanisM ;) I'm supposing you're using nginx-push-stream with icecast2 ? and have a statistic system integrated in nginx with that isn't ? I'm not an expert with nginx (and perhaps I'm not the only one here ;) Can you do a howto/tutorial for us ?
that's not really the same thing a lot of people (not me, I'm a power apache user ;) install airtime with no knowledge of apache configuration why not, in this case, during the install process ask to choose between apache and nginx ? That's not incompatibly :D
Posts: 1,526Member, Administrator, Sourcefabric Team
we don't need a lot of new questions about nginx from dummies. Who familiar with nginx has no any problem to configure nginx to use with airtime from scratch but most of people nothing knows about nginx.
Ehhh.. I have so lots words to say and examples to show. and just wonder why sourcefabric don't organized IRC rooms for products or common one. So ppl can connect and share ideas and examples with developers and community and share some links with examples, get instant support from developers and other users who good with airtime or neswcoop. For some reasons I don't wanna share links to my devserver here.
*hopes airtime will be refactored and moved to python/django from php sometime..*
@Andrey but it's the same thing for apache, some peoples here don't really know Apache... And if nginx allows us to install airtime on less powerfulmachine, It is a good thing, no ?
Posts: 134Member, Administrator, Sourcefabric Team
Guys,
first of all thanks for your contributions! Really amazing stuff,
Our community is not that big (yet!) but rapidly growing everyday. This is why from January onwards we will be redoing some of our websites and adding new ways to enable you to share your code and communicate better. I am happy to listen to your ideas and talk them through before we introduce new things. For now, we have changed the forum and we try to all fit in here :)
Posts: 1,526Member, Administrator, Sourcefabric Team
no, apache is a good server for any machine where airtime could be installed. Nginx is recommended only for high load public sites but Airtime is a back end applications instead, where can not be high loading. Apache is more comfortable for any other php projects (wordpress, joomla, drupal). That's why apache is used as primary server on most servers. Some time the best is enemy of good (russian saying) ;)
Post edited by Andrey Podshivalov at 2011-12-15 10:03:26
geoip_country /server/geoip/GeoIP.dat; # change to your path
geoip_city /server/geoip/GeoLiteCity.dat;# change to your path
}
With geoIP data preattached you'll have listener's country and city in icecast2 logs, in icecast admin etc. And need to just parse useragent string to get such data. Listeners maps via google maps api can be done easily etc.
Post edited by Eugene MechanisM at 2011-12-15 23:44:56
*hopes airtime will be refactored and moved to python/django from php sometime..*
Those screenshots look great!!! Are you willing to share the html/css?
And thanks for linking to the icecast2 KH branch....we've been discussing using a modified icecast for sometime, we'll be taking this one into consideration.
I forgot mention that if you going to use nginx with geoip module, you need to install nginx-extras package instead of nginx. nginx-extras offers nginx compiled with some additional 3rd party modules. Debian, DotDeb.org, nginx official and ubuntu repos should offer this package.
Reply to @Martin+Konecny: Currently I have some custom icecast2 build. Icecast2 code is modified by me. my icecast2 talks with database(redis(incl. pub/sub) and postgres(for long living stats)) and with geoip directly. Also I removed xsl and xml functions(not needed to bother icecast("the working horse") while it's posts data to database and we can ask database for info instead). The screenshot I posted is old and I'll try to find my old archives for these files or I can reproduce it in my free time(with any style maybe jquery ui or twitter's bootstrap etc).
Post edited by Eugene MechanisM at 2011-12-16 16:42:25
*hopes airtime will be refactored and moved to python/django from php sometime..*
Is the nginx-install-script for ubuntu only? I tried it on debian, but it doesn't work for me. Could someone be so kind and write it for Debian, so I can use it on my ngnix? I think I am not the only one who would like to see that. Debian is one of greatest and widest distributions on the server market.
Also I would like to see this scripts and the ability to install airtime with nginx in the wiki/manuals.
Post edited by theradialactive at 2012-06-19 12:09:02
If you tell us why it didn't work we can try and help you.
So to get some idea how to solve the problem with debian I just installed a new Ubuntu instance on a local computer and started to install airtime via .tar.gz. I run the full-install script and at one of the first lines it says to me: "airtime-2.1.2/install_full/ubuntu/airtime-full-install-nginx: line 30: [: Ubuntu: integer expression expected"
So I didn't know what to do and commented out the if-part with debian sources and brought the server links with nano in the source.list.
I looked in the output and found something strange: "---------------------------------------------------- 2.1 NGINX Config File ---------------------------------------------------- NGINX config for Airtime already exists... ---------------------------------------------------- 2.2 Airtime php pool file ---------------------------------------------------- Airtime php pool file already exists... ---------------------------------------------------- 3. Enable Icecast ---------------------------------------------------- Starting icecast2: ---------------------------------------------------- 4. Enable Monit ---------------------------------------------------- ---------------------------------------------------- 5. Run Airtime Install ----------------------------------------------------[...]"
Every part had an "subtitle", but not the Monit. Is that a problem? After I tried to install it again, at the end of the check it says that everything failed that shall be running.
So I hope these information could solve the problems.