Not logged in. · Lost password · Register
Page:  1  2  3 ... 9  10  11  next 

All posts by MartinR (159)

topic: Lighttpd + Dokuwiki - Won't start, include file not found  in the forum: General Help and Support Installation and Configuration
Avatar
MartinR #1
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
I've just run up a Mint VM and installed lighttpd.  The user that was created on my machine was www-data, so:
$ su -
Password:
# vipw
###Change /sbin/nologin to /bin/bash for www-data
# su - www-data
You are now logged in as the user that runs lighttpd, so go and look for the missing/unreadable files.

It's 23:44 in the UK, so I'm off to bed now.  I'll check back tomorrow.

UPDATE

I need to backtrack from that red herring.  The missing/unreadable file conf-enabled/10-cgi.conf is read before the daemon drops privilege and shells out to the user.  It should be owned by root:
# cd /etc/lighttpd
total 12
drwxr-xr-x 2 root root 4096 Nov 11 22:12 conf-available
drwxr-xr-x 2 root root 4096 Nov 11 09:09 conf-enabled
-rw-r--r-- 1 root root 1080 Nov 11 21:21 lighttpd.conf
ls -l */*
-rw-r--r-- 1 root root 839 Jan 19  2017 conf-available/05-auth.conf
-rw-r--r-- 1 root root  91 Jan 19  2017 conf-available/10-accesslog.conf
-rw-r--r-- 1 root root 343 Jan 19  2017 conf-available/10-cgi.conf
-rw-r--r-- 1 root root  63 Jan 19  2017 conf-available/10-dir-listing.conf
-rw-r--r-- 1 root root  36 Jan 19  2017 conf-available/10-evasive.conf
-rw-r--r-- 1 root root 128 Jan 19  2017 conf-available/10-evhost.conf
-rw-r--r-- 1 root root 104 Jan 19  2017 conf-available/10-expire.conf
-rw-r--r-- 1 root root 444 Nov 11 22:12 conf-available/10-fastcgi.conf
-rw-r--r-- 1 root root  42 Jan 19  2017 conf-available/10-flv-streaming.conf
 ...
-rw-r--r-- 1 root root 843 Jan 19  2017 conf-available/README
lrwxrwxrwx 1 root root  33 Nov 11 09:09 conf-enabled/10-fastcgi.conf -> ../conf-available/10-fastcgi.conf
lrwxrwxrwx 1 root root  42 Nov 11 08:11 conf-enabled/90-javascript-alias.conf -> ../conf-available/90-javascript-alias.conf

At the moment I don't have a 10-cgi.conf link, but I'm still working on things.  Would you please perform the following commands are report them back here:
# cd /etc/lighttpd
# ls -l
# ls -l */*
This post was edited on 2019-11-12, 09:05 by MartinR.
topic: Lighttpd + Dokuwiki - Won't start, include file not found  in the forum: General Help and Support Installation and Configuration
Avatar
MartinR #2
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67742
Both files are owned by root, so lighttpd should be able to read both of them.
Eh?  Unless lighttpd is running as root that's a non-sequitur, and if a webserver is running as root be thankful that it doesn't start!  I run Apache, so there's a bit of guesswork here; is there a user called lighttpd or something similar?  If so try # su - lighttpd and look for permission problems.
topic: Generate a "share" link for a closed wiki?  in the forum: General Help and Support Features and Functionality
Avatar
MartinR #3
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67727
Try using
$ wget -rk <url>
This generates a directory tree with a copy of the page in.  It's your tree, you can set the permissions how you like, but remember that it will be Apache that is accessing it, not the remote user.

To test I made a copy of start » user » wikipedia_pages_to_work_on.  The URL is visible on the browser as http://localhost/dokuwiki/doku.…?id=user:wikipedia_pages…:
$ wget -rk http://localhost/dokuwiki/doku.php?id=user:wikipedia_pages_to_work_on
$ chmod -R 755 localhost
$ sudo ln -s <user-home-dir>/localhost/dokuwiki/doku.php?id=user:wikipedia_pages_to_work_on /srv/www/html/PageForBill

The URL /srv/www/html/PageForBill will then open in any browser.
topic: Different sidebars (Different sidebars?)  in the forum: General Help and Support Features and Functionality
Avatar
MartinR #4
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67617
Hi Alain, thanks for the pointer.

Both, I think the required plugin should be https://www.dokuwiki.org/plugin:ifauthex, not https://www.dokuwiki.org/plugin:ifauthifauthex was last revised in January this year whereas ifauth was last revised in September 2005.  I'd always be very wary of 14 year old code!
topic: Get a list of pages by size?  in the forum: General Help and Support Features and Functionality
Avatar
MartinR #5
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67315
Doing it in the GUI would require a plugin of some sort.  If you can put up with the command line changing
sort -nr
to
sort -n
will give you the smallest files.
topic: Largest Dokuwikis (Some fun stats)  in the forum: General Help and Support General Stuff
Avatar
MartinR #6
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67307
Of course this only lists those DWs that actually report data.  Some of the bigger DWs may be behind firewalls or air gaps.
topic: How to run Dokuwiki on a Shared Network Drive  in the forum: General Help and Support Server Setup
Avatar
MartinR #7
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67270
First off, I'm assuming that the drive is served to other machines by NFS or CIFS (aka Windows shares) and is not directly accessible to multiple machines.

Consider how you interact with DW.  You run up a browser which contacts the web server which runs the DW code and that accesses the disk.  If there are multiple users, then each user runs up a browser on his own machine, which contact a web server somewhere which runs the DW code and accesses the disk.  Therefore: if your DW instance is running on one machine only, then all users can send requests, but only the DW instance accesses the disk.

In detail:
  • Each user's computer runs their browser of choice.
  • One server machine runs the web server and DW code.
  • Each browser then contacts the web server and sends requests.
  • The web server access the files on the users' behalf and returns the HTML page to the users' browsers.

For example, my home system has multiple machines running various OSs (Linux, Windows n, iOS and Android). with multiple browsers: Firefox, Chrome, Internet Explorer and Edge.  All of these machines can contact http:192.168.1.250/dokuwiki, just as for any other web product.  Only apache:apache actually accesses the files, all locking is handled by Andi's fine code.

HTH.
topic: old pages, new media, not wanted (why do old page revisions always refer to the latest media file revisions)  in the forum: General Help and Support Features and Functionality
Avatar
MartinR #8
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67229
Yes.

Consider that the pages are text files containing markup and links to named media files.  When displayed DW interprets the markup and fetches the linked pages to build the final web page that is sent over the net to the reader.  There is no hash or signature that identifies the media file, just the name.

If you want to keep old versions of media files you will have to adopt a naming scheme that incorporates a revision number or date in the file name.  For instance my file bells:uss_pensylvania.jpg will always be the latest version loaded.  To version it I would need:
bells:uss_pensylvania_001.jpg
bells:uss_pensylvania_002.jpg
...
topic: Create a report (at call) of pages by creation/edit date or date range  in the forum: General Help and Support General Stuff
Avatar
MartinR #9
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66974
 :blush: Obvious when you get a shove.  I'd tried to understand it in terms of screens and couldn't see it!  Thanks, Martin
topic: Let ACL permissions for @ALL not restrict other groups  in the forum: General Help and Support General Stuff
Avatar
MartinR #10
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66957
Sorry, no.  Details of ACLs were not published even to regular users, just a statement telling them what they were authorised to do.  My home system hides behind a firewall which I could open up, but haven't found a need to do so yet, particularly since it brings in the overhead of extra security and external DNS.
topic: Create a report (at call) of pages by creation/edit date or date range  in the forum: General Help and Support General Stuff
Avatar
MartinR #11
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66948
Not an answer I'm afraid, but two suggestions.
1) A directory listing will give you the time of the last change (ls -l for *NIX, dir something for Win).
2) Look in the meta directoy and you'll find two or three files corresponding to each page in the wiki.  Look in the .changed file and you'll see a simple listing of each change.  The first field is the date*, not sure about the next (mine seem to always be ::1), the C for created, E for edited, the path to the page, the user and finally the comment.

*The date field is the number of seconds since system zero.  Use date(1) to convert:
$ cat start.changes
1498084488    ::1    C    bells:start    martinr    created   
1498861751    ::1    E    bells:start    martinr    Hook for new set
$ date --date='@1498861751'
Fri 30 Jun 23:29:11 BST 2017

Which shows that this file was last edited on 30/6/2017.  I'm sure a grep script of a bit of Perl/python/php will give you your report.
topic: Let ACL permissions for @ALL not restrict other groups  in the forum: General Help and Support General Stuff
Avatar
MartinR #12
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66954
I think you'll have to litter.  Have a look at https://www.dokuwiki.org/acl,  There is no "inheritance" per se, it is achieved by a search path:

From my "wiki_acls" page:

"At each step below the parser looks for an entry which matches the user or any group to which he belongs (including @ALL). If there is no ACE go to the next step, if one ACE then use it, and if more than one give the greatest access. For instance @admins are all also @users, so don't need duplicate entries.

The steps are:

    The specific page being requested.
    The namespace in which the page is.
    Higher namespaces in turn (if any).
    The Global settings."

As soon as you apply @ALL to the subnamespace, ALL users will match it, and the search terminates at once.

I set up an admin page with two tables:
1)  List all the groups and a description of who is in them (description, not list)
2)  List resources, groups and access and an explanation,

When I was running this in a live application it worked fairly well.  We had three categories of users (with access to their namespaces) plus an operations area.  Users could modify their areas but only read most of the rest.  Admins could modify nearly everything with only the superuser able to mess with privileged reports such as the access log.
topic: Let ACL permissions for @ALL not restrict other groups  in the forum: General Help and Support General Stuff
Avatar
MartinR #13
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66949
You can specify an ACE for group @user.  for instance the ACL on my top level has:
@ALL - read
@user - upload

Which means that anyone can read the top level, but only logged in users can edit, create or upload.  If that is not fine-grained enough, in user manager you can add any group you like to those users that you wish to specify.
topic: Greetings to the Well of Knowledge!  in the forum: Community User Introductions
Avatar
MartinR #14
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66841
I've played with this idea before.  Is there any way to launch an appropriate program to deal with other format documents?  For instance it would be nice to launch Libre Office to handle .odts or the document viewer for .pdfs.  The sort of system I was aiming for would use DW to handle document metadata and then hand off the document processing to a word processor, editor or similar.  Actual documents could be kept in either a hidden namespace or else in a separate directory.  I realise that there are issues with file ownership, specifically they would all end up as apache:apache, but then DW's inbuilt ACLs can handle this problem.
topic: How to do nested list?  in the forum: General Help and Support Syntax and Usage
Avatar
MartinR #15
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66828
See https://www.dokuwiki.org/wiki:syntax#lists
Close Smaller – Larger + Reply to this post:
Special characters:
Page:  1  2  3 ... 9  10  11  next 
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-11-14, 21:19:22 (UTC +01:00)