Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
correct owner/group when unpacking distribution tarball
fabiola #1
Member for a month · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: correct owner/group when unpacking distribution tarball
I'm trying to do a fresh install of dokuwiki "Greebo" on a server to move from a very old installation of dokuwiki "adorable belle". I read on here that the easiest way is probably just doing the fresh install and copying over the data rather than copying over an archive of my old install and upgrading.  As soon as I unpack the tarball for the latest release "Greebo" ,  my files are owned by a 2012:2012 which isn't a user or group ID I have on my server.  Are there instructions on what needs to be changed other than recursively going through the dokuwiki directory and replacing this with my php user? I didn't have this problem with an upgrade I did a bit ago with "Frusterick Manners".  I've tried looking on the permissions page and I see I can't even run the installer?

I get the following errors trying to run the installer:

Fatal error: require_once(): Failed opening required '/usr/local/apache2/htdocs/dokuwiki/inc/init.php' (include_path='.:') in /usr/local/apache2/htdocs/dokuwiki/install.php on line 22


My dokuwiki folder:

drwx--S---.  8 root root      211 Feb 28 22:29 dokuwiki

drwx--S---.  8 root root   211 Feb 28 22:29 .
drwxr-sr-x.  7 root root   153 Feb 28 22:29 ..
drwx--S---.  2 root root   160 Feb 28 22:29 bin
drwx--S---.  2 root root  4096 Feb 28 22:29 conf
-rw-r--r--.  1 2012 2012 18092 Jan  6  2019 COPYING
drwx--S---. 12 root root  4096 Feb 28 22:29 data
-rw-r--r--.  1 2012 2012  3547 Jan  6  2019 doku.php
-rw-r--r--.  1 2012 2012 19141 Jan  6  2019 feed.php
-rw-r--r--.  1 2012 2012  1684 Jan  6  2019 .htaccess.dist
drwx--S---.  8 root root  4096 Feb 28 22:29 inc
-rw-r--r--.  1 2012 2012  2097 Jan  6  2019 index.php
-rw-r--r--.  1 2012 2012 19233 Jan  6  2019 install.php
drwx--S---.  8 root root   104 Feb 28 22:29 lib
-rw-r--r--.  1 2012 2012   306 Jan  6  2019 README
drwx--S---. 11 root root   209 Feb 28 22:29 vendor
This post was edited on 2020-02-29, 04:52 by fabiola.
Avatar
cziehr #2
Member since Jan 2011 · 685 posts · Location: 10119 Berlin
Group memberships: Members
Show profile · Link to this post
You can change ownership recursively by the command

sudo chown -R user:group /usr/local/apache2/htdocs/dokuwiki/

But it depends on which linux you are running.

For Ubuntu, it would be sudo chown -R www-data:www-data /usr/local/apache2/htdocs/dokuwiki/
For CentOS, it would be sudo chown -R httpd:httpd /usr/local/apache2/htdocs/dokuwiki/
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-04-02, 22:06:26 (UTC +02:00)