/myavail

CGI script showing dates/times users are available based on their Microsoft Exchange calendar

Primary LanguagePerlMIT LicenseMIT

myavail - CGI script showing dates/times users are available based on their Microsoft Exchange calendar

Installation Instructions
-------------------------

1) Install dependencies:

  # install from OS packages or use CPAN
  sudo yum install curl perl-CGI perl-URI perl-IPC-System-Simple perl-Time-Piece perl-Time-Local perl-XML-Simple

2) Install myavail

  sudo su
  cd /var/www/html
  git clone git@github.com:collinsp/myavail.git
  cd myavail
  cd config.pl.sample config.pl
  export DEPLOY_USER=root
  export DEPLOY_GROUP=apache
  chown -R $DEPLOY_USER.root .
  chgrp $DEPLOY_GROUP config.pl index.pl .
  chmod -R u=rwX,g=,o= .
  chmod u=rwx,g=rx,o= index.pl config.pl .

3) Add the following Apache config to a virtualhost 

  <Directory /var/www/html/myavail>
    AllowOverride All
    Order deny,allow
    Deny from all
    Allow from all
    Options +ExecCGI
    AddHandler cgi-script pl
    DirectoryIndex index.pl

    # Make sure you change the vault password!
    SetEnv MYAVAIL_VAULT_PASS "change this to something random"
  </Directory>

  # the vault password should not be readable by anyone other than root
  chmod 600 /your/virtualhost/file.conf

4) Add an account

   https://yourserver/myavail?act=add