Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: Tillebeck 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:
# db accounts setprop ibayname FollowSymLinks enabled
BR. Anders
-
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?
-
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.
-
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:
expand-template /etc/httpd/conf/httpd.conf
After that you will have to reload the webserver to reflect the configuration changes:
/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).
-
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: