[SOLVED] Trying to get dokuwiki to follow symbolic links
Linux - SoftwareThis 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.
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.
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.
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...
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.
# 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".
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.