![]() Not to be confused with an Alias Folder, Apache Alias is a module in Apache for URL mapping that denotse one particular path with an Alias. Mklink /d "c:\wamp\www\project" "c:\Users\thoriq\project"Īside from creating a Symlink folder, we can also use Apache Alias. Launch Command Prompt, type this command below to create a Symlink in WAMPServer directory that points to the source in Dropbox. Mklink /d "path\destination\symlink" "path\to\source" In Windows, a Symlink is denoted with the mklink command as follows: We would not be able for doing so with a Shortcut and an Alias folder. In SublimeText, for instance, you can add the Symlink, instead of the original source as a Project. Symlink can be accessed through Terminal and can also be added to any GUI application. One thing that distinguishes Symlink from Shortcut or the Alias Folder is that a Symlink will be treated like the original file. If you are using MAMP you can set the path to Applications/MAMP/htdocs/project, or /Library/WebServer/Documents if you are using the built-in Apache from OS X. Ln -s Dropbox/Sites/project ~/Sites/projectĬertainly, you need to change the destination path. In Terminal type the following command to put a Symlink to that folder. ![]() Ln -s path/to/source path/destination/symlinkįor instance, you have your website files saved under the “Dropbox/Sites/project” directory. In OS X as well as the other UNIX-based OS, like Ubuntu, a Symlink is created through Terminal with the following command. In the previous tutorial of this series, we have configured Apache and PHP and thus we are able. ![]() ![]() Hide the symlink so you can forget you ever had to do this whole stupid thing:Ĭhflags -h hidden /Users/dansturm/DropboxĪnd now your scripts, automations, file paths, etc, will function just as they did before Dropbox decided to get cutesy with the name of the folder where you keep everything you’ve ever created on your Mac for the past 10 years.Setup PHP, Apache, and MySQL in Mac without MAMP – Part II Move the symlink into your Home directory, next to the ugly folder. Next rename the symlink on the Desktop to just “Dropbox”. Ln -s "/Users/dansturm/Dropbox (Personal)" /Users/dansturm/Desktop Make a symlink to “Dropbox (Personal)” and place it on the Desktop, thusly: Alas, this isn’t the sort of thing I need to do more than once every handful of years, and this knowledge will leave my brain the second I close that Terminal window. If I were smarter and better versed in the ways of the Terminal, I wouldn’t have to look this sort of stuff up when I needed to do it. But as fun as that sounds, I opted for the lazy route: creating a symlink called Dropbox that pointed to Dropbox (Personal) so all my stuff would just work again. Now, when I first linked my two Dropbox accounts, I could have gone through all my Keyboard Maestro macros and shell scripts and done some find
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |