Koozali.org: home of the SME Server
Obsolete Releases => SME Server 6.x => Topic started by: ruud on March 02, 2006, 10:39:27 PM
-
I have installed an additional disk on which i want to move some of my big ibays.
From the console i used MC to move one of my ibays from disk1 to disk2 and i created a symbolic link in the /home/e-smith/files/ibays directory.
When i want to open the webpage of the ibay, i got the message that i don't have permissions.
Can anybody tell me what i've done wrong ?
thnx
-
I also added a new drive and followed the how-to here:
http://mirror.contribs.org/smeserver/contribs//mblotwijk/HowToGuides/AddExtraHardDisk.htm
All seemed well, but it get page not found trying to access the ibay website. Are there some permissions that need changing?
This is how the symlink looks compared to the Primary which is working and I did not move:
lrwxrwxrwx 1 root root 26 Mar 5 19:37 netjuke -> /mnt/bigdisk/ibays/netjuke
drwxr-xr-x 5 root root 4096 Feb 4 2004 Primary
I cd can to the symlink and list the contents with Putty and also from a WinXP client on the LAN. Any suggestions?
-
Logs have this:
[Sun Mar 5 19:55:12 2006] [error] [client 192.168.1.1] Symbolic link not allowed: /home/e-smith/files/ibays/gallery/
Any ideas what needs to be done?
-
I fixed it by making the necessary adjustments in the template directories.
The apache httpd config file needs some changes because the file locations have changed. Therefore you need to adjust/create custom templates. these templates can be found in /etc/e-smith/templates
In the how-to's overhere can be found how to make/change custom templates
-
I ended up adding a new custom template:
pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/85DefaultAccess
Added this:
Options FollowSymLinks
Expanded the new template
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/etc/e-smith/events/actions/restart-httpd-full
This has the effect of adding FollowSymLinks as a default for all ibays. I didn't seem to be able to figure out how to do it for just one. Are there any problems or security implications with this approach?
-
Since I was running a php application (Gallery 2.0.2) I had to run the install script for it and also add the path to the new location of the ibay to OpenBaseDir setting for the ibay. It was all bit more complicated than I expected, but isn't it always? Now for some well deserved rest :pint: