Installing: get Apache2 error (so close!)
  • Hey all,

    Well... 30 hours and little sleep into getting this up and running, challenge after challenge... I'm almost there...

    but am now having an issue with the Apache2 server when installing airtime.

    Here's a snapshot of what's returned when trying to install: http://mitchvandusen.com/code.JPG

    every time I uninstall to reinstall, this is what I type:

     apt-get purge airtime (and delete files manually as requested)
     apt-get purge postgresql
     apt-get purge odbc-postgresql
     apt-get autoremove
     apt-get update
     apt-get dist-upgrade
     apt-get install airtime

    which leads to the screenshot above.

    I was trying to figure out before if maybe I had to clean something out of the /apache2 folder... hoping that didn't screw anything up

    I was wondering if maybe I put in the wrong hostname for apache2.  I entered the same domain as my server: radio.samizdatsounds.org.  Would that be correct?  The code says to check the apache2 error log, but I can't seem to find it.

    ANY THOUGHTS?????

    Thank you!

    Mitch

  • 15 Comments sorted by
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Did you have Apache installed before Airtime?
    Cloud Radio -> http://airtime.pro
  • Honestly, I'm not sure.  I did the smallest core-install of of the LXDE gui and installed firefox.  That's it.  Would any of those install Apache?
  • Also, I'm running an ubuntu 12.04 LTS virtual server. I'm new to this whole environment, but am a fast learner.  If you need any particular files or info, just let me know and where to find it.

    Thanks again.
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    From the error, it looks like apache cannot bind port 80, I guess some process already occupied it. Please try to find it out by:
    netstat -lnp|grep 80
    or set another port for apache2.

    But let's find out who's occupied 80 at first.
    Cloud Radio -> http://airtime.pro
  • this is what it says:

    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      380/nginx      
    tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN      363/icecast2
  • So doing some research, I edited /etc/apache2/ports.conf to say:

    NameVirtualHost *:8010
    Listen 8010

    Then did a complete uninstall and reinstall, and now I get two errors seen in this screenshot:

    http://mitchvandusen.com/code2.JPG

    First: "unfortunately your postgresql database has not been created using a UTF-8 encoding."

    What's annoying about this, is that I already slaved over this problem before and it went away, but now it's back.  Yet when I check the locale settings, it shows everything is UTF-8, as seen here:

    http://mitchvandusen.com/code3.JPG

    The other error, or multiple errors, are beyond me.

    I thought this was supposed to be easy! :)  Thanks for your continued help



  • I ran netstat -lnplgrep 80 again and this is what I got:

    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0           0.0.0.0           0.0.0.0              U       0        0       0     venet0
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    something is stange

    you want to use apache on port 80, but nginx use this port

    you can't have apache2 and nginx on the same port...
  • Thanks for the response.

    So what would you recommend I do?  As shown above, I changed the Apache port to 8010, but it still didn't work.
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    did you change port into ports.conf and in yours vhosts ?
  • I edited /etc/apache2/ports.conf to say:

    NameVirtualHost *:8010
    Listen 8010

    I'm relatively new to Linux/Ubuntu.  Don't know what you mean by chainging my vhosts.  Where and how would I do that?

    Anything else I'd need to do besides this?
  • Also, will this fix the UTF-8 error?  For all the work I did on that, it's showing that the whole system is set up using UTF-8
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    don't forgot to change your vhosts ports

    into /etc/apache2/sites-available
  • one step closer... I believe that fixed the port problem.  Now, the UTF-8 error is coming up (http://mitchvandusen.com/code4.JPG).  I had this before, and fixed it, and now it's back... and I have no ideal why.  I double-checked the locale settings, and it looks right: http://mitchvandusen.com/code3.JPG

    I'm sorry this keeps being a problem, but I really appreciate your support.


  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    did you do an :

    dpkg-reconfigure locales

    ?