Symbolic link


#1

Can I make a symbolic link if i am in a shared hosting environment? I am trying to do Drupal Multisites, and having hell.


also visit my photoblog which still is at http://bodynsoul.shutterchance.com/


#2

Yes, you can create symbolic links at DreamHost. Have you logged in using your shell account yet?

Free unique IP and $67 off with code [color=#CC0000]LMIP67[/color] or use [color=#CC0000]LM97[/color] for $97 off. Click for other Dreamhost coupons / promo codes


#3

i tried using PuTTY logged in to my account. tried to create a symbolic link by using
"ln -s /sub1.example.com /sub2.example.com"
getting a permission denied error


also visit my photoblog which still is at http://bodynsoul.shutterchance.com/


#4

“ln -s /sub1.example.com /sub2.example.com”

/sub… is at root level because of /, so you don’t have permission.

From your home directory try

“ln -s sub1.example.com sub2.example.com


#5

I’m not sure exactly what you’re trying to link, but when I link, I use “relative paths.” From the place you want your link to show up:
ln -s firstdirectory seconddirectory
Don’t use the absolute path of /

I don’t use Drupal Multisite, so I’m not sure how it works, but from your example, it looks like you’re trying to Mirror a Domain, which can be done from the panel under Manage Domains -> Create a New (Sub)Domain.

-Scott


#6

I think a lot of multi-site installations have you install the software in one directory and link to it from the web directories of all the sites that use the software. I know Gallery multi-site is that way.

Free unique IP and $67 off with code [color=#CC0000]LMIP67[/color] or use [color=#CC0000]LM97[/color] for $97 off. Click for other Dreamhost coupons / promo codes


#7

exactly, Drupal has a multi-site feture where you run multiple website off one codebase, the main advantage of this is that when you need to update your codebase, you only have to do it once for multiple sites, as opposed to update the code for each website separately.

I saw that gallery has a similar feature, but I am not there yet, since I will use gallery as an embedded module in only one of my drupa sites I am trying to establish.


also visit my photoblog which still is at http://bodynsoul.shutterchance.com/


#8

so what happens if my account in my FTP server shows as example1.com. Then I added more domains and subdomains. So now my additional domains appear under the example1.com as directories in my FTP client.

One of these domains is example.com. this domain has 2 subdomains sub1.example.com and sub2.example.com. it is between these two subdomains that I would like to activate the symbolic link.

According to the drupal handbook if my files are in sub1.example.com and I properly redirect sub2.example.com to it then I will be able to use the multisite feature.

When I did the command as you proposed it apparently worked, that is I did not get an error message, but the command prompt. but I don’t see the effect happening that should happen, when I type the URL in the browserbar sub2.example.com I just get the indexpage on that domain.


also visit my photoblog which still is at http://bodynsoul.shutterchance.com/


#9

“subdomains” by default end up in the same directory as the main directory – not inside or under. Such as:
ls ~ (that’s your home directory) will show you:
Mail/
logs/
YOURDOMAIN.com/
SUB1.YOURDOMAIN.com/
SUB2.YOURDOMAIN.com/

However, you do have the ability to specify the location of the subdomain when you create it.

If you want SUB2.YOURDOMAIN.com to be a “mirror” via a symbolic link to SUB1.YOURDOMAIN.com, do the following:
1)Create both subdomains and use the default location of your home directory
2) /bin/rm -rf ~/sub2.yourdomain.com (this will delete the entire sub2 directory)
3) ln -s sub1.yourdomain.com sub2.yourdomain.com
4) ls -al ~ (this will show you a full listing of your home directory and any links in it)

Again, as I’m not a Drupal (or multisite) expert, this sounds like an odd arrangement, as pointing your browser to sub2.yourdomain.com will look just like pointing your browser to sub1.yourdomain.com

-Scott