Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

8 votes
4 answers
2598 views
org mode to dokuwiki converter
Is there an emacs org-mode to dokuwiki converter? Is there an dokuwiki to emacs org-mode converter?
Is there an emacs org-mode to dokuwiki converter? Is there an dokuwiki to emacs org-mode converter?
student (18865 rep)
Mar 21, 2011, 01:38 PM • Last activity: Nov 12, 2020, 11:43 AM
0 votes
1 answers
304 views
nginx and dokuwiki farms
I am attempting to create a suite of dokuwiki's and thus want to leverage the farms. I am however struggling as the instructions are for apache. I can get a single dokuwiki running just fine but I am unable to produce a working farm concept via rewrite The reference material I have been using is: ht...
I am attempting to create a suite of dokuwiki's and thus want to leverage the farms. I am however struggling as the instructions are for apache. I can get a single dokuwiki running just fine but I am unable to produce a working farm concept via rewrite The reference material I have been using is: https://www.dokuwiki.org/farms https://www.dokuwiki.org/farms:example01 https://www.dokuwiki.org/tips:redirect_farm the redirect_farm is the one I have been concentrating on, especially step2 **Setup the URL binding** > Here we describe the simples URL rewrite method, using .htaccess under > Apache. > > Copy the following to /var/www/barn/.htaccess: .htaccess RewriteEngine On RewriteRule ^/?([^/]+)/(.*) /farmer/$2?animal=$1 [QSA] RewriteRule ^/?([^/]+)$ /farmer/?animal=$1 [QSA] Options +FollowSymLinks > Test: Point your browser to http://localhost/barn/foo. You should see > the index of farmer. Point to http://localhost/barn/foo/bar. You > should get a 404 error “The requested URL /farmer/bar was not found”. > This shows that the URL binding works. > > If the test fails: > > .htaccess must be enabled in the in the Apache Configuration > (AllowOverride All); mod_rewrite must be Included. If you have a > redirection loop, your DocumentRoot needs to be /var/www/ (neither > /var/www/farmer/ nor /var/www/barn/). I have a sparce localhost.conf to recreate this and have included the equivalent rewrite: server { listen 80; server_name localhost; access_log /var/log/nginx/localhost_access_log main; error_log /var/log/nginx/localhost_error_log info; rewrite_log on; root /var/www/localhost/htdocs; #location ~ /(data/|conf/|bin/|inc/|install.php) { deny all; } location / { autoindex on; } location /barn/ { #try_files $uri $uri/ /wiki/doku.php @wiki; autoindex on; #alias /var/www/localhost/htdocs/farmer; rewrite ^/?([^/]+)/(.*) /farmer/$2?animal=$1 ; rewrite ^/?([^/]+)$ /farmer/?animal=$1 ; } #location ~ \.php$ { # try_files $uri =404; # include /etc/nginx/fastcgi.conf; # fastcgi_pass 127.0.0.1:9000; #} } when I goto http://localhost I see "**farmer**" and "**barn**". When I browser "**farmer**" it lists as "**farmer**". When I go into "barn" it lists as "farmer" so aspects of the rewrite are working. However... http://localhost/barn/foo returns 404 and this should list **farmer**. Looking at the debug logs: 2018/07/07 15:25:41 [notice] 17845#17845: *1 "^/?([^/]+)/(.*)" matches "/barn/", client: 127.0.0.1, server: localhost, request: "GET /barn/ HTTP/1.1", host: "localhost", referrer: "http://localhost/" 2018/07/07 15:25:41 [notice] 17845#17845: *1 rewritten data: "/farmer/", args: "animal=barn", client: 127.0.0.1, server: localhost, request: "GET /barn/ HTTP/1.1", host: "localhost", referrer: "http://localhost/" regex has detected but the wrong rewrite... the animal=barn shouldn't be such. likewise: 2018/07/07 15:25:44 [notice] 17845#17845: *1 rewritten data: "/farmer/foo/", args: "animal=barn", client: 127.0.0.1, server: localhost, request: "GET /barn/foo/ HTTP/1.1", host: "localhost" 2018/07/07 15:25:44 [notice] 17845#17845: *1 "^/?([^/]+)$" does not match "/farmer/foo/", client: 127.0.0.1, server: localhost, request: "GET /barn/foo/ HTTP/1.1", host: "localhost" 2018/07/07 15:25:44 [error] 17845#17845: *1 "/var/www/localhost/htdocs/farmer/foo/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /barn/foo/ HTTP/1.1", host: "localhost" I feel I am close but equally I now got to the point I don't understand nginx rewrite or what is needed for dokuwiki. any adive?
Naib (101 rep)
Jul 7, 2018, 02:34 PM • Last activity: Jul 8, 2018, 09:56 AM
0 votes
1 answers
545 views
howto setup dokuwiki parallel to owncloud
How can I get a working owncloud server with a working dokuwiki? The dokuwiki entries should not be destroyed... On a raspberry pi an owncloud installation was made following this [article][1] (nginx php5-fpm php5-sqlite php5-gd installed; owncloud.vhost created and linked; owncloud extracted -> /et...
How can I get a working owncloud server with a working dokuwiki? The dokuwiki entries should not be destroyed... On a raspberry pi an owncloud installation was made following this article (nginx php5-fpm php5-sqlite php5-gd installed; owncloud.vhost created and linked; owncloud extracted -> /etc/www -> chmod www-data; nginx service started; reboot). However, we did a dokuwiki installation using a howto (german) with these steps: cd ~ sudo apt-get update sudo apt-get install apache2 libapache2-mod-php5 wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz tar xfz dokuwiki-stable.tgz sudo mv dokuwiki-2014-09-29b /var/www sudo chown -R www-data:www-data /var/www/dokuwiki-2014-09-29b After that we followed the instructions of http://IP_OF_PI/dokuwiki/install.php As far as I remember, there were failures in the sudo apt-get install. However, those were at points were services had to be restarted. We did this afterwards by rebooting the raspberry pi. Now we are able to use our dokuwiki, but not our owncloud. However, before rebooting we were able to access owncloud with https://IP_OF_PI/owncloud . I never got it to sync with other clients so far, but upload of files and access with a browser on other machines was possible. When we do a (necessary for installation of owncloud) sudo /etc/init.d/nginx start the output is Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] still could not bind() nginx. The output of raspberry ~ $ apache2ctl -S is /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:80 is a NameVirtualHost default server 127.0.1.1 (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default:1) Syntax OK I do not understand what the dokuwiki installation changed so that the nginx is not startable/restartable anymore...
Stefan Bollmann (249 rep)
Jan 3, 2015, 02:35 PM • Last activity: Jan 5, 2015, 10:03 PM
1 votes
0 answers
164 views
Dokuwki mirror without ftp or shell access
Can someone help me to find a way to mirror of a dokuwiki with forms with activated? I don't have access to shell or ftp. I tried wget but it always fails at the forms auth. How to get passed that?
Can someone help me to find a way to mirror of a dokuwiki with forms with activated? I don't have access to shell or ftp. I tried wget but it always fails at the forms auth. How to get passed that?
user4400693 (11 rep)
Dec 28, 2014, 11:29 PM
1 votes
1 answers
1662 views
Temporary Permissions when installing DokuWiki?
I'm trying to upgrade to the latest version of DokuWiki, and I'm finding that the easiest way to do this is to install the upgrade plugin and just click a few buttons. But there are permissions issues writing some of the files. How can I briefly change the permissions so that the plugin can work its...
I'm trying to upgrade to the latest version of DokuWiki, and I'm finding that the easiest way to do this is to install the upgrade plugin and just click a few buttons. But there are permissions issues writing some of the files. How can I briefly change the permissions so that the plugin can work its magic without compromising security?
user7089 (2979 rep)
Apr 29, 2011, 10:23 PM • Last activity: May 1, 2011, 08:20 AM
Showing page 1 of 5 total questions