Bug 200990 - www/dokuwiki: permission problem with /usr/local/www/dokuwiki directory
Summary: www/dokuwiki: permission problem with /usr/local/www/dokuwiki directory
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-20 08:46 UTC by Matthias Fechner
Modified: 2015-06-23 18:49 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (delphij)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Fechner freebsd_committer freebsd_triage 2015-06-20 08:46:39 UTC
Upgrade Dokuwike to a new version does take the webpage offline.
You see the error message:
The datadir ('pages') at ./data/pages is not found, isn't accessible or writable. You should check your config and permission settings.

The reason for this is that the /usr/local/www/dokuwiki directory is set to root as owner and therefor the webserver cannot write to folder /usr/local/www/dokuwiki/data.

Please change ownership for folder /usr/local/www/dokuwiki/data to www.

Maybe you can add it to the port:
chown -R www /usr/local/www/dokuwiki/data/
Comment 1 Xin LI freebsd_committer freebsd_triage 2015-06-23 18:49:41 UTC
(In reply to idefix from comment #0)
It's a VERY bad idea to have your wiki data located under the application directory.  They should always be separate from the application.

You should place the 'data' to somewhere else, which can be done by modifying savedir in conf/local.php.