Not logged in. · Lost password · Register

All posts by MaxG (8)

topic: [Solved] run-parts: /etc/cron.daily/dokuwiki exited with return code 2 (Cannot make sense of it :()  in the forum: General Help and Support Installation and Configuration
Avatar
MaxG #1
Member since May 2017 · 8 posts
Group memberships: Members
Show profile · Link to this post
OK then...

I removed the execute bit:
sudo chmod -x /etc/cron.daily/dokuwiki
... and renamed it to dokuwiki.disabled

It didn't run this morning; so all good.... problem solved.
Everything needs to be defined :)
topic: [Solved] run-parts: /etc/cron.daily/dokuwiki exited with return code 2 (Cannot make sense of it :()  in the forum: General Help and Support Installation and Configuration
Avatar
MaxG #2
Member since May 2017 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 61190
Well, this is the botched apt-get install I did ...

https://forum.dokuwiki.org/thread/15858

... removed this installation...

https://forum.dokuwiki.org/thread/15871

... so I reckon it is a left-over of the apt-get install.

Maybe the answer is as simple as removing this cron job?!
There is a reference to doku maintenance in that script... why it never occurred to me it  is not supposed to be there.

# [2018-06-03 08:58] maxg@rpi32 /var/log $
cat /etc/cron.daily/dokuwiki
#! /bin/sh
set -e

# Function to cleanup a wiki data
# (see <https://www.dokuwiki.org/tips:maintenance>)
cleanup() {
    # $1 ... full path to data directory of wiki
    # $2 ... number of days after which old files are to be removed
    # $3 ... whether or not to remove old revision files
    data_path="$1"
    max_days="$2"
    remove_attic="$3"
...
Everything needs to be defined :)
This post was edited on 2018-06-03, 11:04 by MaxG.
topic: [Solved] run-parts: /etc/cron.daily/dokuwiki exited with return code 2 (Cannot make sense of it :()  in the forum: General Help and Support Installation and Configuration
Avatar
MaxG #3
Member since May 2017 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: [Solved] run-parts: /etc/cron.daily/dokuwiki exited with return code 2
I installed dokuwiki a few weeks ago on a new Raspberry Stretch PHP7, etc. all working fine.
However, I noticed a daily error message by cron sent by email:

Subject: Cron <root@rpi32> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Bofy: /etc/cron.daily/dokuwiki:
/etc/cron.daily/dokuwiki: 57: cd: can't cd to /var/lib/dokuwiki
run-parts: /etc/cron.daily/dokuwiki exited with return code 2

Any ideas what I need to fix to either make this work or make it disappear?
Everything needs to be defined :)
This post was edited on 2018-06-03, 23:47 by MaxG.
topic: [Solved] Looking for installation advice on new Stretch (Rasbian)  in the forum: General Help and Support Installation and Configuration
Avatar
MaxG #4
Member since May 2017 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 60897
Alright...

This is what I did to get dokuwiki installed and working, -> a fresh install on a Rasbian Stretch image

downloaded the latest stable tar ball

created the directory called wiki in my HTPP server root /var/www/

extracted the tar ball

copied the files/directories from the tar ball into /var/www/wiki

removed the previous installation directories for the sudo apt-get install
/etc/dokuwiki
/var/lib/dokuwiki

opened a browser and ran wiki/install.php

configured it as desired

done -> all working

except the security is not quite right to protect certain directories
Will update later once sorted.
Everything needs to be defined :)
topic: [Solved] Looking for installation advice on new Stretch (Rasbian)  in the forum: General Help and Support Installation and Configuration
Avatar
MaxG #5
Member since May 2017 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: [Solved] Looking for installation advice on new Stretch (Rasbian)
I have a new Rasbian Stretch install. PHP7 and related modules on it...

did a
sudo apt-get install dokuwiki

but learned two things, after I could not login https://forum.dokuwiki.org/thread/15858
1. sudu apt-get is not to be used for latest install
2. sudo apt-get dokuwiki will install and old version from 2016
3. login does not work, due to old bug

Now what?

Given the advise, I uninstalled dokuwiki with sudo apt-get remove dokuwiki.
Downloaded the latest tar ball, unzipped it read the docu

It says "copy files; but where to?

I have now searched the wiki forum for an hour without finding any useful information.

Installed dokuwiki again with sudo apt-get dokuwiki

At least I can login, edit and add a page, but cannot run the extension manager; it shows a page, but shows an error:
Extension directory is not writeable.

Searching for dokuwiki will show results in:
 /var/lib/dokuwiki
/etc/dokuwiki

It is totally unclear to me why dokuwiki works, while not being located in /var/www/html or /var/www/wiki
I can only assume that the apg-get install took care of file copies and apache directives?!

I have another dokuwiki server, which runs nicely. However, I installed it over a year ago and do not remember how I did it. The wiki directory there is in /var/www/wiki.

Why is there no documentation about the basic install? If users want to shift it elsewhere, then I see it as their problem. But at least a standard install and locations should be somewhere.

Also is there a document outlining how to completely remove dokuwiki and revert any changes the sudo apt-get install made?

I seem to have two options:
1. upgrade the 2016 version, by copying files form the tar to somewhere
2. completely remove the current apt-get install of the 2016 version and use the manual install

I am not getting anywhere with either; hence ...

Any pointers to docs or hints appreciated.
Everything needs to be defined :)
This post was edited on 2018-05-14, 08:28 by MaxG.
topic: [Solved] sudo apt-get install on pristine Stretch distro; HTTP 500 error on login (Thought it would install Greebo, but actually installed an older version from 2016)  in the forum: General Help and Support Installation and Configuration
Avatar
MaxG #6
Member since May 2017 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 60885
Thank you kindly...

a) installed version: you're right... I did not notice -> not logged in, version not visible.
However, this page https://www.dokuwiki.org/install:debian, says:
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt dokuwiki
Also, my system has php7 and related modules.

b) solution 2 fixed the login! Now I can the version: Release 2016-06-26a "Elenor of Tsort"

c) saw solution 3 elsewhere but wasn't keen to go there :)

So... I went ahead and sudo apt-get remove dokuwiki
Went as suggested to https://www.dokuwiki.org/install

Step 3: Unpack the distribution tarball and upload/copy the files to your webspace.
... and now what? Where to copy these files?

Will open a new post for this...
Everything needs to be defined :)
topic: [Solved] sudo apt-get install on pristine Stretch distro; HTTP 500 error on login (Thought it would install Greebo, but actually installed an older version from 2016)  in the forum: General Help and Support Installation and Configuration
Avatar
MaxG #7
Member since May 2017 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: [Solved] sudo apt-get install on pristine Stretch distro; HTTP 500 error on login
I have installed dokuwiki on a newly installed Stretch distro via apt-get dokuwiki.
All went well (as far as I can tell).
When I say freshly installed Stretch, then apache2, php7, mysql -- php7.0-xml was installed with php7 -- then dokuwiki; then ssmtp (after realising dokuwiki needs to send out login details for newly registered users).

When I want to log in as admin, I get in Chrome:
This page isn’t working
192.168.1.8 is currently unable to handle this request.
HTTP ERROR 500

I registered a new user; cut and pasted the password received via email, same error.

How can I fix this?

Further digging revealed this, but what to do with it?
sudo cat /var/log/apache2/error.log
[Thu May 10 06:25:02.523371 2018] [mpm_prefork:notice] [pid 22334] AH00163: Apache/2.4.25 (Raspbian) configured -- resuming normal operations
[Thu May 10 06:25:02.523413 2018] [core:notice] [pid 22334] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 10 19:21:04.101102 2018] [:error] [pid 29986] [client 192.168.1.13:64981] PHP Warning:  Invalid argument supplied for foreach() in /usr/share/dokuwiki/lib/exe/js.php on line 79
[Thu May 10 19:26:58.230466 2018] [:error] [pid 29980] [client 192.168.1.13:49221] PHP Warning:  require(/usr/share/php/Crypt/AES.php): failed to open stream: No such file or directory in /usr/share/dokuwiki/inc/load.php on line 109
[Thu May 10 19:26:58.230632 2018] [:error] [pid 29980] [client 192.168.1.13:49221] PHP Fatal error:  require(): Failed opening required '/usr/share/php/Crypt/AES.php' (include_path='.:/usr/share/php') in /usr/share/dokuwiki/inc/load.php on line 109
[Thu May 10 19:37:41.109302 2018] [:error] [pid 2478] [client 192.168.1.13:50293] PHP Warning:  require(/usr/share/php/Crypt/AES.php): failed to open stream: No such file or directory in /usr/share/dokuwiki/inc/load.php on line 109
[Thu May 10 19:37:41.109468 2018] [:error] [pid 2478] [client 192.168.1.13:50293] PHP Fatal error:  require(): Failed opening required '/usr/share/php/Crypt/AES.php' (include_path='.:/usr/share/php') in /usr/share/dokuwiki/inc/load.php on line 109
[Thu May 10 19:53:27.411970 2018] [mpm_prefork:notice] [pid 22334] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Thu May 10 19:53:27.638700 2018] [mpm_prefork:notice] [pid 22334] AH00163: Apache/2.4.25 (Raspbian) configured -- resuming normal operations
[Thu May 10 19:53:27.638732 2018] [core:notice] [pid 22334] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 10 19:57:32.084299 2018] [:error] [pid 3002] [client 192.168.1.13:52321] PHP Warning:  require(/usr/share/php/Crypt/AES.php): failed to open stream: No such file or directory in /usr/share/dokuwiki/inc/load.php on line 109
[Thu May 10 19:57:32.084492 2018] [:error] [pid 3002] [client 192.168.1.13:52321] PHP Fatal error:  require(): Failed opening required '/usr/share/php/Crypt/AES.php' (include_path='.:/usr/share/php') in /usr/share/dokuwiki/inc/load.php on line 109
#

Is my problem related to:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854592

Update
Have enabled error display in php.ini and get:

Warning: require(/usr/share/php/Crypt/AES.php): failed to open stream: No such file or directory in /usr/share/dokuwiki/inc/load.php on line 109

Fatal error: require(): Failed opening required '/usr/share/php/Crypt/AES.php' (include_path='.:/usr/share/php') in /usr/share/dokuwiki/inc/load.php on line 109

Any hints appreciated.

Got a bit frustrated: https://forum.dokuwiki.org/thread/15871
Eventually solved it: same link
Everything needs to be defined :)
This post was edited 6 times, last on 2018-05-14, 08:29 by MaxG.
topic: A big HELLO and THANKS from Australia  in the forum: Community User Introductions
Avatar
MaxG #8
Member since May 2017 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: A big HELLO and THANKS from Australia
I am Max from Brisbane, Queensland, Australia...
I am an ICT Project Manager when earning a living, but rather live than work :)
When I live I do what I enjoy most; thinking, working on electronic projects, etc.
I am currently owner-building my house, which will have all sorts of technical systems; once is the home automation system based on openHAB. I build the necessary controllers, and write the software for it.
At one point the whole thing NEEDS documentation, if it is to be understood and maintained.
After a few days of research I picked DokuWiki, and never looked back.
I have written a CMS for my website and have an idea about is involved and required.
DokuWiki is extremely easy to use! The mark-up is as easy as it can be.
... and I want to thank the developers and contributors for this great piece of work.
It was the best user experience I had in as many years.
It is nice, fast, easy, well thought out and architectured.
I am wrapped!
Everything needs to be defined :)
Close Smaller – Larger + Reply to this post:
Special characters:
Special queries
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-05-26, 21:35:33 (UTC +02:00)