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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-02-2015, 05:53 PM
|
#1
|
LQ Newbie
Registered: Apr 2008
Posts: 4
Rep:
|
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.
|
|
|
01-04-2015, 03:51 PM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,417
|
Quote:
Originally Posted by ickyfeet
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
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
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...
|
|
|
01-05-2015, 02:11 PM
|
#3
|
LQ Newbie
Registered: Apr 2008
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
01-06-2015, 06:46 PM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,417
|
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.
|
01-08-2015, 05:53 PM
|
#5
|
LQ Newbie
Registered: Apr 2008
Posts: 4
Original Poster
Rep:
|
I didn't do the alias but I was able to get it to work. Thank you for your time helping with this!
|
|
|
01-10-2015, 03:08 AM
|
#6
|
Moderator
Registered: May 2001
Posts: 29,417
|
Quote:
Originally Posted by ickyfeet
I didn't do the alias but I was able to get it to work.
|
Then please post your solution.
|
|
|
01-11-2015, 01:56 PM
|
#7
|
LQ Newbie
Registered: Apr 2008
Posts: 4
Original Poster
Rep:
|
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.
|
01-11-2015, 05:12 PM
|
#8
|
Moderator
Registered: May 2001
Posts: 29,417
|
Ah, I see. Thanks for posting!
|
|
|
All times are GMT -5. The time now is 11:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|