LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trying to get dokuwiki to follow symbolic links (https://www.linuxquestions.org/questions/linux-software-2/trying-to-get-dokuwiki-to-follow-symbolic-links-4175529859/)

ickyfeet 01-02-2015 05:53 PM

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.

unSpawn 01-04-2015 03:51 PM

Quote:

Originally Posted by ickyfeet (Post 5294403)
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 (Post 5294403)
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 (Post 5294403)
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...

ickyfeet 01-05-2015 02:11 PM

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.

unSpawn 01-06-2015 06:46 PM

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".

ickyfeet 01-08-2015 05:53 PM

I didn't do the alias but I was able to get it to work. Thank you for your time helping with this!

unSpawn 01-10-2015 03:08 AM

Quote:

Originally Posted by ickyfeet (Post 5297941)
I didn't do the alias but I was able to get it to work.

Then please post your solution.

ickyfeet 01-11-2015 01:56 PM

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.

unSpawn 01-11-2015 05:12 PM

Ah, I see. Thanks for posting!


All times are GMT -5. The time now is 07:59 PM.