Installation Mediadrop 0.10.3 on Ubuntu Server 11.10 (Deployment)

Today, i am successfully deploy MediaDrop with mod_wsgi behind Apache Server. These step make it work till now. I am on Ubuntu Server 11.10.

1. Install mod_wsgi for apache

sudo apt-get install libapache2-mod-wsgi

then restart apache2 service

 sudo service apache2 restart

To make sure your mod_wsgi is installed and ready. Check log file apache2 in /var/log/apache2/error.log

2. Copy mediacore.wsgi to /var/www

Because i dowload mediacore not form github, so, i don’t have mediacore.wsgi. I download again from github with git sync and put it on my home directory. Then copy mediacore.wsgi to /var/www/.

sudo cp /home/pptr/medicore-git/deployment-scripts/mod_wsgi/mediacore.wsgi /var/www

3. Edit mediacore.wsgi with vim, at top line (match your path).

deployment_config = '/var/www/deployment.ini'
temp_dir = '/var/www/data/tmp'

4. Adding Configuration in apache config (httpd.conf)

Copy sample code from github downloaded also, then rename it to httpd.conf

sudo cp /home/pptr/medicore-git/deployment-scripts/mod_wsgi/apache-config.sample /etc/apache2/

#rename oringal one
mv httpd.conf httpd.conf2

#rename apache-config.sample to httpd.conf
mv apache-config.sample httpd.conf

5. Edit httpd.conf

In this case, mediadrop will install in root directory. can access in root ip/domain not in subdomain or subfolder. So, this my change.

vim /etc/apache2/httpd.conf

#Editing line
14   /var/www/venv ...
15   /var/www/data ...
20   WSGIScriptAlias / /var/www/mediacore.wsgi
23   AliasMatch /images/(media|podcasts)(.*) /var/www/data/images/$1$2
26   AliasMatch /(admin/)?(images|scripts|styles)(.*) /var/www/MediaCore-0.10.3/mediacore/public/$1$2$3
29   Alias /appearance /var/www/data/appearance
32   <Directory /var/www/MediaCore-0.10.3/mediacore/public/*>

6. Resart your Apache Server

Try access with your browser, direct IP or domain name.

Hope this help you too, as help me.

(sory about language)

 

Reference :

Install mod_wsgi in ubuntu

install step from mediadrop

6 thoughts on “Installation Mediadrop 0.10.3 on Ubuntu Server 11.10 (Deployment)”

  1. Halo, kok saya gagal terus ya. Pas install python, bikin venv dll itu pake user apa? Sepertinya dari log ada byk permission denied pas ngakses website nya. gmn solusinya?

    Thx

    Reply

Leave a Comment