#1  
Old 10th February 2012, 04:24
woggo_85 woggo_85 is offline
Junior Member
 
Join Date: Nov 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default Symlink issue

Heya--

I'm trying to get farming working for dkuwiki with ISPConfig, my hosting panel of choice. I've never run into any dramas running ISPConfig until now. My dokuwiki farming occurs using symlinks. These symlinks reside outside of the /var/www/dokuwiki dir location. Below is how it looks:

drwxr-xr-x 2 apache client3 4.0K Feb 10 12:59 conf
drwxr-xr-x 12 apache client3 4.0K Feb 9 15:40 data
lrwxrwxrwx 1 apache client3 27 Feb 9 17:05 doku.php -> /var/lib/dokuwiki//doku.php
drwxr-xr-x 2 apache client3 4.0K Feb 9 17:08 error
lrwxrwxrwx 1 apache client3 27 Feb 9 17:05 feed.php -> /var/lib/dokuwiki//feed.php
-rw-r--r-- 1 apache client3 1.4K Feb 10 11:40 htaccess-old
lrwxrwxrwx 1 apache client3 22 Feb 9 17:05 inc -> /var/lib/dokuwiki//inc
lrwxrwxrwx 1 apache client3 28 Feb 9 17:05 index.php -> /var/lib/dokuwiki//index.php
lrwxrwxrwx 1 apache client3 22 Feb 9 17:05 lib -> /var/lib/dokuwiki//lib
drwxr-xr-x 2 apache client3 4.0K Feb 9 17:08 stats

I am using a .htaccess file which allows me to keep the site URLs looking clean so to speak. Here is the .htaccess file contents.

RewriteEngine on
Options +FollowSymLinks
RewriteRule ^lib/exe/xmlrpc.php$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
#
RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
RewriteRule ^$ doku.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) doku.php?id=$1 [QSA,L]
RewriteRule ^index.php$ doku.php

Looks all OK to me. But when I go to view the site I get the following error:

[Fri Feb 10 13:16:07 2012] [error] [client XXX.XXX.XXX.XXX] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/iknow.example.com/web/

I also have suExec enabled in ISPconfig and mod_php active. I've tried fiddling with these settings to no avail. I _do_ have this working with just apache + php on my testing box. I have also tried adding the option +FollowSymLinks and SymLinksIfOwnerMatch with no luck.

Can someone please help me troubleshoot the cause of this issue? bonus points for a solution. :-)

--julian
Reply With Quote
Sponsored Links
  #2  
Old 10th February 2012, 07:43
woggo_85 woggo_85 is offline
Junior Member
 
Join Date: Nov 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Have done further testing off this issue. I did a vanilla dokuwiki install and setup the .htaccess file and had the same issues. It is not related to the symlinks!

If I visit index.php directly it _does_ redirect to doku.php as the .htaccess file says..

So what could be the issue with my ISPConfig system where if I visit the root of the url it gives the error in my original post?

--julian
Reply With Quote
  #3  
Old 10th February 2012, 08:25
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,419
Thanks: 834
Thanked 5,498 Times in 4,328 Posts
Default

In genneral, this setup is problematic as you have to disable most security features of ispconfig and php to make it work. So its not secure, but its possible.

Which php mode do you use in that website and is suexec on? Have you added /var/www/dokuwiki to the open_basedir path of all sites that shall access dokuwiki files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
woggo_85 (13th February 2012)
  #4  
Old 13th February 2012, 00:14
woggo_85 woggo_85 is offline
Junior Member
 
Join Date: Nov 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default Solved

heya--

Thanks for your reply. I ended up getting this working by placing the htaccess syntax in my apache options in ISPConfig in the <directory foo/bar> </directory> options.

This has seemed to fix the symlink issues.

But FYI - I do have suExec on and am using mod_php. I also have the dokuwiki path listed in the php_openbasedir section. I'd rather not water down the security that ISPConfig supplies, so not really interested in exploring this option.

Again thanks for your help, and I do hope this post helps others!

--julian
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Symlink errors when trying to install ISPConfig 3.0.4 por Installation/Configuration 1 27th November 2011 15:40
Incoming Emails abintipl Installation/Configuration 3 11th May 2011 09:03
webalizer: Error: Can't open log file /var/www/web34/log/web.log (symlink) olasamuelson Installation/Configuration 5 13th January 2010 11:06
DNS MX Issue jmead Installation/Configuration 3 29th November 2007 10:06
iptables issue with xen perfect setup - debian alexnz HOWTO-Related Questions 3 25th November 2006 13:49


All times are GMT +2. The time now is 16:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.