![]() ![]() ![]() Thus, in Documents in my personal user account there were no files anymore, but when logging into root again they were visible again, at least for some time. The files in my Desktop folder have not disappeared, though. I only remember a strange situation (logged in as root) when I saw the files in my Documents folder slowly disappearing one after the other (on my slow MacBook Pro Late 2011), like there was a deletion process running. I should add that I am a beginner with Terminal commands and have probably messed something up when repeatedly going through the process of creating (and deleting created) symlinks. I hope my personal data is still there somewhere but I have no idea how to restore it! localized" command I had set with Terminal. When sweeping with OmniDiskSweeper it shows an empty "0 bytes Documents" except for "0 bytes. In this post, we have shown you how to create Symbolic Link and Apache Alias, which would be useful to access and manage folders outside the Apache DocumentRoot.I have tried to create symbolic links (symlinks) for my Documents and Desktop folder that do not get reset after reboot on macOS 10.15 Catalina with root user as described in (created the symlinks with activated root account according to the post at the end).Įverything seemed to be fine until I realized that my Documents (300 GB of personal data) folder is empty now! However, the disk space information in Finder (similarly, OmniDiskSweeper in the drive list) shows there are only 30 GB available (like when my Documents where still visible), not 330 GB as expected with an empty Documents folder and no Documents visible in the trash. For instance, c:/Users/thoriq/Dropbox/Sites/app. If you name the alias as “app”, for instance, it will later be accessible within localhost/app address in the browser. First, click WampServer icon in the taskbar and navigate to “Apache/Alias directories/Add an alias” menu.Ī new window similar to Windows Command Prompt will pop up. If you are running on Windows and using WmpServer, you can create Apache Alias with ease. And given the above specification, you should be able to access localhost/app address through the browser even though the actual folder is in the Dropbox folder. Options Indexes FollowSymLinks MultiViews You can add these in app.conf which we have created above. Type this command below to open the app.conf in SublimeText.Īlias /alias-name "/source/of/original/folder"īelow is one complete example. Type the following two lines in Terminal to create the “alias” folder and “app.conf”, where we will write the Alias configuration. Include /private/etc/apache2/alias/*.conf LoadModule alias_module libexec/apache2/mod_alias.soĪt the same time, add this line at the very bottom of nf, as we will create a dedicated folder, named “alias” to save all Apache Aliases, so that the folder as well as the configuration files in it are picked up. Remove the hash sign at the beginning of the following line: From Terminal, navigate to /etc/apache2, and open the nf file. That way you can also access folders through the localhost address – as if it is stored inside the Apache DocumentRoot.īefore we can create one, ensure that the mod_alias module is loaded. 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. Setup PHP, Apache, and MySQL in Mac without MAMP – Part II ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |