AAServer0.3
From ActiveArchives
Contents |
Installation
AAServer0.3 is the current in development version of the Active Archives Server.
Install FFMpeg
Install SQLAlchemy 0.5.x
SQLAlchemy is a Python module for and requires Python 2.4 or later.
Download the 0.5.x tarball, and...
tar xvzf SQLAlchemy-0.5.2.tar.gz cd SQLAlchemy-0.5.2/ sudo python setup.py install
(Note: I had read that "python-setuptools" might be required for the SQLAlchemy install, but haven't found this to be the case on an install on a Ubuntu 6 server. --Murtaugh 22:11, 25 March 2009 (UTC))
pysqlite2
You also need to have "pysqlite2". (Python bindings to SQLite3) SQLAlchemy requests version 2.1.3 or later (which is newer than was in my synaptic...) So...
I had some "issues" installing this one... in the end I got a successful install by:
- Downloading the 2.1.3 source
- python setup.py build
- Manually copying the folder: pysqlite-2.1.3/build/lib.linux-i686-2.4/pysqlite2 to /usr/lib/python2.4/site-packages
Using python-setuptools seemed to get screwed up somewhere. Hmmm. Anyway, SQLAlchemy seems happy now.
Install files
Here we create the two necessary folders, and name them "aa" (but you could use any name).
In your htdocs...
svn co http://activearchives.org/svn/tags/aaserver03/htdocs aa
In your cgi-bin...
svn co http://activearchives.org/svn/tags/aaserver03/cgi-bin aa
Settings
In cgi-bin/aa...
cp settings.example.py settings.pyThe edit settings.py to set the HTDOCS_PATH & URL variables to contain the absolute unix path and URL to the htdocs folder you created above. Also check that the ffmpeg path is correct and points to the ffmpeg you compiled (with proper lame support! see Installing FFMpeg.
settings.py (example)
# ActiveArchives 0.3 TITLE = "active archives" DIR_ROOT = "/home/murtaugh/public_html/aa" # all paths are relative to this to support some movability, a value of None means all directory paths are absolute HTDOCS_URL = "http://localhost/~murtaugh/aa" FFMPEGPATH = "/opt/ffmpeg" DEFAULT_LINK_RELATION = "link" SCRUBPLAYER_URL = HTDOCS_URL + "/stacks/scrubplayer.swf" VARS = {} VARS['HTDOCS_URL'] = HTDOCS_URL VARS['TITLE'] = TITLE VARS["SCRUBPLAYER_URL"] = SCRUBPLAYER_URL
(still) in your cgi-bin...
chmod 777 db ./aa init chmod 666 db/aa.db