Need some help with aliases and php
I'm running oscommerce not that version matters on php 5.3 and apache 2.2 (centos 5.6)
I have a store and all of the php code refers to the store images in /images directory and my store works fine.
I have now cloned the store under a different name on the server and since my store contain over 12,000 images I do not want to make a copy of the images directory and would rather use an alias or symbolic link.
my current images are in:
my cloned store is
/home/sites/cloned-store/web and I'd like to create an images directory in the clone-store directory and have it point to :
what's the best way to accomplish this?
Although theoretically you could use PHP for this, there doesn't seem to be much point. Just create a symlink to the directory.
From a shell:
ln -s /home/sites/store/web/images /home/sites/cloned-store/web/images
thanks I've done that but my I'm getting something strange.
I created images in /home/sites/cloned-store/web/ first
and now there's a directory called images under images in /home/sites/cloned-store/web/ (i.e. /home/sites/cloned-store/web/images/images that links to the other directory.
how to I undo this and should I have NOT created an images directory in cloned first?
Remove the web/images/images link using rm, and remove the web/images directory using rmdir. Don't create an images directory, just create a link.
July 10th, 2012, 08:29 AM
thanks so much - that worked great!
Originally Posted by E-Oreo
July 10th, 2012, 08:49 AM
one final question - is this link permanent - as in....if I reboot the server does the link persist?
Originally Posted by jjj0923
July 10th, 2012, 09:04 AM