Skip to content

Commit

Permalink
update config scripts and move pages to appropriate locations
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaer committed May 20, 2015
1 parent f8e9baf commit 3b1285a
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion conf/dokuwiki/conf/local.protected.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$conf['start'] = 'homepage';
$conf['template'] = 'mcneel-public';
$conf['license'] = '';
$conf['savedir'] = '/opt/bitnami/apps/dokuwiki/wikidata';
$conf['savedir'] = './wikidata';
$conf['breadcrumbs'] = 0;
$conf['dformat'] = '%Y/%m/%d';
$conf['maxtoclevel'] = '0';
Expand Down
28 changes: 14 additions & 14 deletions doku_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@


#update apt-get
apt-get update
apt-get install lighttpd -y
apt-get install php5-cgi -y
apt-get install git -y
sudo apt-get update
sudo apt-get install lighttpd -y
sudo apt-get install php5-cgi -y
sudo apt-get install git -y

#download latest dokuwiki tarball
wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
#unzip tarball
tar xvfv dokuwiki-stable.tgz
#move/rename contents to /var/www/dokuwiki
mv dokuwiki-2014-09-29d/ /var/www/dokuwiki/
sudo mv dokuwiki-2014-09-29d/ /var/www/dokuwiki/

#change owner to www-data
chown -R www-data:www-data /var/www/dokuwiki/
sudo chown -R www-data:www-data /var/www/dokuwiki/

#configure lightttpd for php
lighttpd-enable-mod fastcgi-php
sudo lighttpd-enable-mod fastcgi-php

git clone https://github.com/mcneel/wikidata.git /var/dokuwiki/wikidata
chown -R www-data:www-data /var/www/dokuwiki/wikidata
sudo git clone https://github.com/mcneel/wikidata.git /var/www/dokuwiki/wikidata
sudo chown -R www-data:www-data /var/www/dokuwiki/wikidata

# copy configuration files to appropriate locations
cp /var/www/dokuwiki/wikidata/conf/lighttpd/lighttpd.conf /etc/lighttpd.conf
sudo cp /var/www/dokuwiki/wikidata/conf/lighttpd/lighttpd.conf /etc/lighttpd.conf

cp /var/www/dokuwiki/wikidata/conf/dokuwiki/conf/* /var/www/dokuwiki/conf/
cp /var/www/dokuwiki/wikidata/conf/dokuwiki/lib/plugins/* /var/www/dokuwiki/lib/plugins/
cp /var/www/dokuwiki/wikidata/conf/dokuwiki/lib/tpl/* /var/www/dokuwiki/lib/tpl/
sudo cp /var/www/dokuwiki/wikidata/conf/dokuwiki/conf/* /var/www/dokuwiki/conf/
sudo cp -R /var/www/dokuwiki/wikidata/conf/dokuwiki/lib/plugins/* /var/www/dokuwiki/lib/plugins/
sudo cp -R /var/www/dokuwiki/wikidata/conf/dokuwiki/lib/tpl/* /var/www/dokuwiki/lib/tpl/
#restart lightttpd
/etc/init.d/lighttpd force-reload
sudo /etc/init.d/lighttpd force-reload
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3b1285a

Please sign in to comment.