fabiola
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
cziehr
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/