Koozali.org: home of the SME Server

How to access data in a neighbour ibay using symlink

Offline Tillebeck

  • ****
  • 76
  • +0/-0
How to access data in a neighbour ibay using symlink
« on: November 27, 2006, 04:50:25 PM »
Hi.

I need to set up a folder that some of my ibays can access.

Example:

The following ibays:
 - ibay1/html/
 - ibay2/html/
 - ibay3/html/
shall be able to symlink to source files in:
 - ibay_shared_source/html/

It does not matter if it is another ibay or a manually created folder somewhere. I only need the folder to store source files for Typo3 CMS so space can be preserved and upgrade of this CMS will be easier.

info: I will have to access the files using symlinks. As default this is disabled in the SME Server. It is easy to enable for a given ibay as described in this thread: http://forums.contribs.org/index.php?topic=31166.0 You just write this code in a terminal:
Code: [Select]
# db accounts setprop ibayname FollowSymLinks enabled

BR. Anders

Offline Tillebeck

  • ****
  • 76
  • +0/-0
Problem not solved
« Reply #1 on: November 29, 2006, 10:37:43 AM »
Hi.
This thread seems to include a solution for my problem:
http://forums.contribs.org/index.php?topic=27172.0

But I cannot get it to work.

I have added this:
# db accounts setprop myIbay PHPBaseDir /home/e-smith/files/ibays/myIbay/:/home/e-smith/files/ibays/sharedSourceIbay/

Now... doing a symlink to the folder like:
# ln -s /home/e-smith/files/ibays/sharedSourceIbay/html/sourceDir typo3_src
 -> will leave me with a blank page when visiting the myIbay in a browser. If I change the symlink to another folder then I will get an error in the browser and not just a blank page. So it seems like the symlink is valid. But no page is displayed.
 -> if I do a symlink to the same source files but placed in the myIbay then everything will work just fine.
# ln -s typo3_src_4.0.2 typo3_src


I do not know if all this info is any good. Basically I am just back to the first question: How can I access data in a neighbour ibay using a symlink?

Offline dmajwool

  • *****
  • 180
  • +0/-0
How to access data in a neighbour ibay using symlink
« Reply #2 on: December 04, 2006, 03:03:36 PM »
You can also create symlinks using the menus in Midnight Commander. Once created, you can browse them at the new virtual locations in MC, which may help you in your fault finding?

Then double-check i-bay groups and permissions?

HTH, David.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Problem not solved
« Reply #3 on: December 04, 2006, 04:52:47 PM »
Quote from: "Tillebeck"
Hi.
This thread seems to include a solution for my problem:
http://forums.contribs.org/index.php?topic=27172.0

But I cannot get it to work.

I have added this:
# db accounts setprop myIbay PHPBaseDir /home/e-smith/files/ibays/myIbay/:/home/e-smith/files/ibays/sharedSourceIbay/
This will only work for files that are parsed by the php executable (for instance .php files) but you will have to do some steps more.
For the PHPBaseDir setting to be effective you will have to expand the httpd.conf file:
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
After that you will have to reload the webserver to reflect the configuration changes:
Code: [Select]
/etc/rc7.d/S86httpd-e-smith restart
After that has been executed succesfully you should be able to access files from one ibay in another ibay (but only when this file is a file that is parsed by the php executable, useally only files that end on .php files).
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Tillebeck

  • ****
  • 76
  • +0/-0
Thanks for all your help
« Reply #4 on: February 15, 2007, 12:37:26 PM »
You are all right. I will work just fine IF setup correctly... I discovered a spelling error in my PHPBaseDir. After correcting this it all works just fine

Thanks for your feedback and sorry for wasting your time  :oops: