[ckan-dev] Installation of CKAN and Wordpress on one single server
Stefan Oderbolz
stefan.oderbolz at liip.ch
Wed Sep 18 15:32:36 UTC 2013
Hi Stephan,
this is definitely possible. We are running CKAN on Port 8080 and our
PHP-based CMS on Port 80 using Apache for both (see vhost below).
Apache vhost:
<VirtualHost *:80>
ServerName ckan.lo
DocumentRoot /vagrant/web
<Directory "/var/www">
AllowOverride All
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:8080>
ServerName ckan.lo
WSGIScriptAlias / /etc/ckan/default/apache.wsgi
# pass authorization info on (needed for rest api)
WSGIPassAuthorization On
# Deploy as a daemon (avoids conflicts between CKAN instances)
WSGIDaemonProcess ckan_default display-name=ckan_default
processes=2 threads=15
WSGIProcessGroup ckan_default
</VirtualHost>
We then use mod_rewrite to proxy calls from one port to the other:
In .htaccess:
RewriteEngine On
RewriteRule
^((de/|en/|it/|fr/)?(packages|package|dataset|resource|related|revision|licenses|rating|ckan-admin|user|login_generic|harvest|activity|dashboard|api|search|storage|feeds|fanstatic|images|base)(.*))$
http://127.0.0.1:8080/$1 [P]
This means e.g. <DOMAIN>/about is served by our PHP-based CMS, but
<DOMAIN>/de/dataset is internally proxied to
http://127.0.0.1:8080/de/dataset and then served to the user by CKAN
(without him noticing that the answer is actually coming from another port).
Note that the above regex is not complete, as we don't allow access to all
CKAN routes to our users (e.g. groups are missing).
Regards
Stefan
On Wed, Sep 18, 2013 at 3:29 PM, Stephan Schrade <schrade at online2000.de>wrote:
> Hi experts,
> is it possible to install CKAN and another system like wordpress and mysql
> (or MariaDB) on the same server?
> Wordpress would then run under a decent directory like <DOMAIN>/wordpress/
> while CKAN would run under <DOMAIN>/
> (both on the same port 80)
> Ist this possible?
> Will there be any problems regarding upgrading CKAN, SOLR etc. ?
> Can I first make a package install of CKAN and then install the other
> systems?
>
> TIA
> Stephan
>
> ______________________________**_________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/**listinfo/ckan-dev<http://lists.okfn.org/mailman/listinfo/ckan-dev>
> Unsubscribe: http://lists.okfn.org/mailman/**options/ckan-dev<http://lists.okfn.org/mailman/options/ckan-dev>
>
--
Liip AG // Feldstrasse 133 // CH-8004 Zurich
Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130918/eb06e2f8/attachment-0001.html>
More information about the ckan-dev
mailing list