LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-02-2015, 06:53 PM   #1
ickyfeet
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Rep: Reputation: 1
Trying to get dokuwiki to follow symbolic links


I am currently running dokuwiki and rancid on the same host as part of my DR solution for documentation. I would like to create a symbolic link from rancid (/var/lib/rancid/*group*/configs/*current configs*) to my dokuwiki pages folder (/opt/dokuwiki/data/pages/*pages*) so that I when the current running config for any switch/router/wireless AP can be looked up from within dokuwiki.

Apache is set to follow symbolic links, I gave www-data:www-data permissions to the files using setfacl but dokuwiki will not follow the links. Any guidance would be much appreciated.

Thank you.
 
Old 01-04-2015, 04:51 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by ickyfeet View Post
I am currently running dokuwiki and rancid on the same host as part of my DR solution for documentation.
That's a sentence I'd like to read more often...


Quote:
Originally Posted by ickyfeet View Post
Apache is set to follow symbolic links, I gave www-data:www-data permissions to the files using setfacl but dokuwiki will not follow the links.
What do the web server logs say?


Quote:
Originally Posted by ickyfeet View Post
I would like to create a symbolic link from rancid (..) to my dokuwiki pages
...alternatively why not set up CVSweb for Rancid? That way you get a familiar web interface from which you can retrieve configs but in which you can also diff against previous commits. Could come in handy spotting changes if you handle loads of ACLs and such...
 
Old 01-05-2015, 03:11 PM   #3
ickyfeet
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 1
Apache logs say 403 forbidden. I'm certain it's permissions... I've given www-data:www-data access to the required folders/files using setfacl but I still can't pull them up. I have 'Option FollowSymLinks' set for the /opt/dokuwiki/data/pages folder in my apache config for the site.

I'd like to sticking to dokuwiki because I have a few other users that really need to be able to at least see the running configs and I want it to be easily accessible. We use dokuwiki quite a bit to document site information, processes, vlan/subnet info etc. If I get hit by a bus or if we lose a site I want them to be able to at very least pull the existing config from a place that they're familiar with.

I do 99.99% of network config changes so I just need to be notified if something changes.
 
Old 01-06-2015, 07:46 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Code:
# Then you'll probably need some 
Alias /rancid /var/lib/rancid/*whatever*/

<Directory /var/lib/rancid/*whatever*>
 Order deny,allow
 Allow from *wherever*
 </Directory>
</VirtualHost>
and then you should be able to refer to files like "dokuwiki.domain/rancid/some.cvs".
 
1 members found this post helpful.
Old 01-08-2015, 06:53 PM   #5
ickyfeet
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 1
I didn't do the alias but I was able to get it to work. Thank you for your time helping with this!
 
Old 01-10-2015, 04:08 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by ickyfeet View Post
I didn't do the alias but I was able to get it to work.
Then please post your solution.
 
Old 01-11-2015, 02:56 PM   #7
ickyfeet
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 1
I used your suggestion for the apache conf file for dokuwiki except I didn't use the alias line.

Quote:
<Directory /var/lib/rancid/*whatever*>
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
Then I created the symbolic links to put the files from /var/lib/rancid/*whatever* into the /opt/dokuwiki/data/pages/ directory. DokuWiki butchers the formatting of the files but that's a whole other issue.
 
1 members found this post helpful.
Old 01-11-2015, 06:12 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Ah, I see. Thanks for posting!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any way to follow links with Samba? Felipe Linux - Server 4 06-30-2010 07:12 AM
Cannot follow certain links in browser. rdozijn_2 Linux - Networking 6 12-08-2009 05:49 PM
How come I can't follow links yet? seeflanigan LinuxQuestions.org Member Intro 1 03-19-2009 02:56 PM
Symbolic links Vs Hard links sulekha Linux - General 2 10-02-2008 08:03 AM
lighttpd follow symbolic links kpachopoulos Linux - Server 1 03-25-2007 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration