Howto: Install dokuwiki in iocage

Status
Not open for further replies.

Tim1962

Patron
Joined
Feb 26, 2015
Messages
281
Currently this is on the nightlies train (and didn't work on the 11.1-U5 release for me anyway.)

Posted for reference and in case it might help someone else. However I am a consumer rather than a techie so not in much of a position to provide support. HTH

http://www.dokuwiki.org

Tim

Create IOCAGE for FreeBSD 11.1 with your preferred settings.

***So far I've not done this but might be sensible to create a suitable mount point at this stage...***

From the IOCAGE Shell

Install Apache

pkg install apache24
sysrc apache24_enable="yes"
service apache24 start

Install PHP

pkg install php71 mod_php71 php71-mbstring php71-mcrypt php71-zlib php71-curl php71-gd php71-json php71-openssl php71-session php71-xml php71-hash

***I'm not sure all of these are truly needed however I'm pretty sure it won't work without the last 5!***

From IOCAGE shell

create /usr/local/etc/apache24/Includes/php.conf

Create contents

<IfModule dir_module>
DirectoryIndex index.php index.html
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
</IfModule>

From IOCAGE shell

echo '<?php phpinfo(); ?>' | tee -a /usr/local/www/apache24/data/info.php

service apache24 restart

cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini-production.bakup
ln -s /usr/local/etc/php.ini-production /usr/local/etc/php.ini

cd /usr/local/www/apache24

chmod -R 777 data
cd data

fetch https://raw.githubusercontent.com/splitbrain/dokuwiki-downloader/master/dokuwiki-downloader.php

Run http://ipaddress/dokuwiki-downloader.php

This should then bring up the dokuwiki installation page and you can then follow the dokuwiki instructions as prompted.

Bobs your mothers brother

Tim
 
Status
Not open for further replies.
Top