problem with the apache2 configuration
  • I just installed (tried to install) airtime 1.8 onto a clean install of Ubuntu 10.10 64-bit... followed the clear instructions (newbie). Icecast installation seems to be working at localhost:8000...but, after rebooting and calling localhost in firefox, i get:

    Not Found

    The requested URL / was not found on this server.
    Apache/2.2.16 (Ubuntu) Server at localhost Port 80

    I assume there is a problem with the apache2 configuration, but I am not skilled in apache admin...any ideas?
  • 13 Comments sorted by
  • Fraser, could you post your
    /etc/apache2/sites-available/airtime 

    contents

    and verify that
    /var/www/airtime/public/index.php

    exists
    Airtime Pro Hosting: http://airtime.pro
  • /etc/apache2/sites-available/airtime:

    <VirtualHost *:80>
       ServerAdmin foo@bar.org
       DocumentRoot /var/www/airtime/public
    
      SetEnv APPLICATION_ENV "development"
    
      <Directory /var/www/airtime/public>   
          DirectoryIndex index.php 
          AllowOverride all 
          Order allow,deny 
          Allow from all
      </Directory>
    </VirtualHost>


    This file does exist:
    /var/www/airtime/public/index.php

    thanks
  • Ok this is the problem.

    That file should have been created during install. Were there any errors displayed during the install process? Please post the entire output from the install here.
    Airtime Pro Hosting: http://airtime.pro
  • OK - that file was created by me as per instruction 4 in this wiki post:
    http://wiki.sourcefabric.org/display/CC/Installing+Airtime+( v1.8.0)

    Can you instruct me on how to find the output from the installation? I am looking at some of the /var/log/ files, not sure which if any are the full record.
  • Hey Fraser,

    Please enter the following

    Quote:
    sudo php airtime-install.php 1>install.log 2>&1


    after install is done, you will see the file "install.log" was created in your present directory. Please attach that file here as an attachment.

    You won't see any output during the install process so wait patiently for a few seconds.

    Airtime Pro Hosting: http://airtime.pro
  • ******************************** Install Begin *********************************
    Existing config file detected at /etc/airtime/airtime.conf
    Existing config file detected at /etc/airtime/pypo.cfg
    Existing config file detected at /etc/airtime/recorder.cfg
    Existing config file detected at /etc/airtime/liquidsoap.cfg
    
    You have existing config files. Do you want to (O)verwrite them, or (P)reserve them? (o/P) 
  • Fraser,

    My mistake, I should have told you to enter the following command:
    sudo php airtime-install.php 1>install.log -p 2>&1


    Please post install.log as an attachment when you're done.
    Airtime Pro Hosting: http://airtime.pro
  • here is the result -

    
    ******************************** Install Begin *********************************
    * Installing PHP code to /var/www/airtime
    * Installing binaries to /usr/lib/airtime
    * Airtime Version: 1.8.0
    * Creating Airtime database user
    * Database user 'airtime' already exists.
    * Creating Airtime database
    * Database 'airtime' already exists.
    * Connected to database
    * Installing Postgresql scripting language
    * Postgres scripting language already installed
    * Creating database tables
    * Storage directory setup
    * Skipping directory already exists: /srv/airtime
    * Skipping directory already exists: /srv/airtime/stor
    * Giving Apache permission to access /srv/airtime/stor
    * Creating /usr/bin symlinks
    * Installing airtime-import
    * Installing airtime-clean-storage
    * Installing airtime-update-db-settings
    
    *** Pypo Installation ***
    Starting daemontool script pypo
    Starting daemontool script pypo-liquidsoap
    Checking and removing any existing pypo processes
    Checking for user pypo
    Creating user pypo
    Creating directory /var/log/airtime/pypo
    Creating directory /var/log/airtime/pypo-liquidsoap
    Creating directory /usr/lib/airtime/pypo/bin
    Creating directory /var/tmp/airtime/pypo/cache/
    Creating directory /var/tmp/airtime/pypo/files/
    Creating directory /var/tmp/airtime/pypo/tmp/
    Installing 64-bit liquidsoap binary
    Copying directory /home/fraser/airtime/python_apps/pypo to /usr/lib/airtime/pypo/bin
    Copying directory /home/fraser/airtime/python_apps/api_clients to /usr/lib/airtime/pypo/api_clients
    Setting permissions
    Creating symbolic links
    Installing pypo daemon
    Creating directory /etc/service/pypo
    Creating directory /etc/service/pypo/log
    Installing liquidsoap daemon
    Creating directory /etc/service/pypo-liquidsoap
    Creating directory /etc/service/pypo-liquidsoap/log
    Waiting for processes to start...
    /etc/service/pypo: up (pid 6893) 1 seconds
    
    /etc/service/pypo-liquidsoap: up (pid 6798) 5 seconds
    
    
    *** Recorder Installation ***
    Starting daemontool script recorder
  • Fraser,

    What happens when you type

    sudo a2enmod rewrite


    Please also post the console output from
    ls -l /etc/apache2/sites-enabled/airtime

    Airtime Pro Hosting: http://airtime.pro
  • for the a2enmod rewrite, the output is:

    fraser@fraser-desktop:~$ sudo a2enmod rewrite
    [sudo] password for fraser:
    Module rewrite already enabled

    the sites-enabled directory is empty....

  • Ok that looks like the problem.

    From the install guide:

    sudo rm /etc/apache2/sites-enabled/000-default
    sudo ln -s /etc/apache2/sites-available/airtime /etc/apache2/sites-enabled/airtime
    sudo a2enmod rewrite


    After these commands you should have a file "airtime"

    in /etc/apache2/sites-enabled/
    Airtime Pro Hosting: http://airtime.pro
  • Vote Up0Vote Down FraserFraser
    Posts: 8Member
    Not sure how, but i followed your instructions, entered the three command lines, and rebooted - Airtime is running at localhost, icecast at localhost:8000

    thanks for your perseverence!

    will post radio station address when we get it going

    Fraser Valley Community Media
    frasermedia.org

    (anyone who wants to help set up a new station that will eventually be over the air in the US, email info at frasermedia.org )
  • Vote Up0Vote Down FraserFraser
    Posts: 8Member
    One more thing - I actually jumped back into the Installation instructions at the point where you made the correction, and the config file was created. So I went straight to

    7. Run the installation script

    entered

    cd ~/airtime/install
    sudo php airtime-install.php


    rebooted, cleared the cache on firefox, then got airtime to run -