PhpWiki

From neil.tappsville.com
Jump to navigationJump to search

Your were looking at it - this site was a crude port of the content that was hosted for 10+ years in a phpwiki instance. Phpwiki was great but once mediawiki became mainstream, support for phpwiki appeared to stop.

mediawiki old information

This is a modified build of phpWiki. I searched for a wiki that natively supports a shared public / private wiki. Unfortunately none do this off the shelf (mediaWiki does with extensions), but since phpWiki does ACL permissions by default this seemed like a good place to start.

Essentially I've I turned this into a single user wiki (easily extended Im sure), with only two ACL settings for each page, either Public or Private. I'm modified the locked / unlocked functionality to indicate (to me) which pages are publicly accessible, and this also makes it easy to change page permissions.

Once I'm happy with the finial result the changes will be illustrated here.

Another great thing about phpWiki, it generally uses the same tagging as mediaWiki :)


Database manangement

One downside of Mediawiki is that the sessions table in the db doesnt get purged, so you need to go in every few months a purge it. - Similar for the accesslog.

A SQL query to return the diskspace used by the db is the following

SELECT TABLE''NAME, table''rows, data''length, index''length, round( (
(
data''length + index''length
) /1024 /1024 ) , 2
) "Size in MB"
FROM information_schema.TABLES
WHERE table''schema = 'DATABASE''SCHEMA_NAME'


Mediawiki Uploads

To enable file uploads / images the following permission needs to be set in selinux

 chcon -R -t httpd_user_rw_content_t /var/www/html/images/