Apologies in advance for any rookie errors on my part... I'm a PC user recently thrust into the world of Macs via new job...
Running OS X Yosemite 10.10.5 PHP version 5.5.27 Apache version 2.4.16 (Unix)
I've been attempting to set up and run localhost for developing websites locally. I have done this successfully once - localhost itself is running with no issues.
The problem has come in when trying to create a symbolic link between the sites folder used by localhost, and where the site files are actually stored (this location cannot be changed).
(I'm also aware of the bad practice with spaces in filenames, but these sites are already created)
I followed the instructions in this tutorial, all the way through with no issues at first. http://ole.michelsen.dk/blog/setup-local-web-server-apache-php-osx-yosemite.html
I have ONE site set up and working with a symlink created using ln -s '~/Dropbox/Shared Sites/SITENAME ~/Sites/SITENAME’ No problems at all here (SITENAME being the directory the site files are in)
However, I am now attempting to add a second site. Using the command above, the terminal becomes unresponsive. A > is added to the next line, but it appears no commands are run (the symlink does not work). I can type but no commands are executed. Pressing CTRL+C returns the terminal to the previous state where it will accept commands again. All other commands seem to run correctly.
I have verified that the directory exists, and am able to cd to it. I have also tried running ln -s '/SITENAME ~/Sites/SITENAME’ when in the parent folder, with the same result. I have also tried running the command with sudo
I have also tried downloading and using iTerm, with the same result.
Have also attempted to create a symlink for a 3rd/separate site, same again.
Can anyone shine any light on why this command seems to have ceased to function when previously working, and how to either fix or work around this to add additional sites to localhost?