Airtime Apache2 vs NGINX
  • Hello I wanted to install Airtime 1.9.5 but was noticed that I need to install apache2 aswell.
    Personally I don't like apache http server. I prefer fast and slim nginx. Why Airtime requires apache if it's can be runned via nginx+php5-fpm? It's even better stack for it. I'm using nginx for django-powered sites(nginx-uwsgi-django) aswell as for php-powered(nginx-php5-fpm) and also nginx proxying Icecast2 streams and NodeJS apps. I don't need slow like cow apache. Big sites always using fast nginx.
    *hopes airtime will be refactored and moved to python/django from php sometime..*
  • 12 Comments sorted by
  • I think the best way to do this is to create a ticket requesting for nginx to be considered an alternative dependency to apache2 (or lighttpd etc.) for the deb package as well as the tarball install. This way we can avoid installing the apache package altogether.
    Airtime Pro Hosting: http://airtime.pro
  • if I'll make pull request at github:airtime would you think about adding support for both? apache2 and nginx? smth like if nginx installed apache not required and vise versa.
    *hopes airtime will be refactored and moved to python/django from php sometime..*
  • with php-fpm you even can add special airtime pool with chroot, custom php config and options independent from main php pools.
    Post edited by Eugene MechanisM at 2011-11-25 20:30:18
    *hopes airtime will be refactored and moved to python/django from php sometime..*
  • and nginx can proxy icecast2 streams for load balancing, geo balancing and append listeners' country/city and map locations to useragent string to use it for widgets.
    *hopes airtime will be refactored and moved to python/django from php sometime..*
  • ohh shoutcast can be proxied too with same options.
    *hopes airtime will be refactored and moved to python/django from php sometime..*
  • Hi Eugene,

    If you download the Airtime tarball, you can alter the airtime-full-install script to remove Apache from being installed. It is then up to you to configure the server, although it should be pretty simple.
    Airtime Pro Hosting: http://airtime.pro
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team

    if I'll make pull request at github:airtime would you think about adding support for both? apache2 and nginx? smth like if nginx installed apache not required and vise versa.

      We shouldn't support both servers since apache2 is most commonly used instead of nginx. But any how-to about nginx using is welcome.
  • Yep I know how to modify Airtime archived package for using nginx instead of apache.
    I meant I wanted to add ppa to get updates and don't deal with archive modification each time new versions of Airtime released..
    *hopes airtime will be refactored and moved to python/django from php sometime..*
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team

    I wanted to add ppa to get updates and don't deal with archive modification each time new versions of Airtime released..


    You don;t. Just install nginx/fpm and move apache to unused port and exclude from autostart. After each airtime upgrade you don't have to take care about apache/nginx stuff.
  • Reply to @Martin+Konecny: yep it's will be great if support for nginx and lighttpd or maybe cherokee will be added to airtime coz a lot of big highload projects don't using apache coz it's slow and eats a lot of server ram/cpu. Your product is Infrastructure for radio station it's can be runned only on VDS/VPS/Dedicated Servers etc. so there's no need to obey standart LAMP(btw you're already changed standart mysql to better postgresql same needed for apache change it to normal fast and great server - nginx)
    Post edited by Eugene MechanisM at 2011-11-28 11:52:14
    *hopes airtime will be refactored and moved to python/django from php sometime..*
  • But any how-to about nginx using is welcome.



    Ok where I can post how-tos to make airtime work with nginx?
    Post edited by Eugene MechanisM at 2011-11-28 11:51:36
    *hopes airtime will be refactored and moved to python/django from php sometime..*
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    Here in forum. After then it will be moved to wiki space and I'll grand you an access to this page.