Questions tagged [symbolic-link]

220 questions
2
votes
1 answer

ln -sf no longer works

I have a folder with the following contents. I am wanting to change the symbolic link in a single atomic transaction without deleting it. drwxr-xr-x 9 root root 4096 Apr 10 13:47 2012-03-19 drwxr-xr-x 9 root root 4096 Apr 10 13:44…
FriendlyDev
  • 135
  • 5
2
votes
1 answer

What's the best way to atomically add files to a web directory?

So I have a strange question, but I'm working on a script to deploy a PHP codebase and want to see if something like this is possible: I have a directory that Apache uses as a DocumentRoot: /home/www/ We have a PHP app that must add several files…
mmattax
  • 1,304
  • 7
  • 19
  • 30
2
votes
3 answers

Apache does not show and does not follow SymLinks

On Linux Fedora 15, Apache doesn't follow symlinks, and they did not show in directory index... Can you help me why? Just to mention that in httpd.conf I do have : Options FollowSymLinks Also, User and Group defined…
user52869
  • 21
  • 1
  • 1
  • 4
2
votes
2 answers

MySQL won't start after creating sym link to data directory

I've moved all the stuff in /var/lib/mysql to /500gb/mysql, and created a symbolic link from one to the other. I then did a chown mysql:mysql and chmod 777 (with both -h and -R as necessary) to both the /var/lib/mysql symbolic link, and also…
Mike Cialowicz
  • 283
  • 1
  • 3
  • 10
2
votes
2 answers

How to list directories that aren't being symbolic linked to in a directory?

I'm trying to do some cleanup similar to this question. In a UNIX OS, I want to delete the directories that aren't being symbolic linked to in a given directory. e.g. I have a deployment script that creates a directory structure for an app like…
Dan
  • 620
  • 6
  • 18
2
votes
2 answers

Which is generally considered faster or best practice: symlinks or Apache aliases?

I'm curious as to what most people's views are on this subject. Personally, I will almost always prefer symlinks unless I have no other option -- I find that it is far more obvious when someone is navigating the file system, but, on the other hand…
cwallenpoole
  • 325
  • 2
  • 13
2
votes
3 answers

add soft-link to http svn repo?

is it possible to add some kind of softlink to an svn repository? i want to map the urls like this. http://svn.server.com/repo/latest-stable -> http://svn.server.com/repo/tags/0.5.4-stable
Andreas Linden
  • 175
  • 1
  • 8
2
votes
3 answers

How can I verify a symbolic link exists in CentOS

Normally, ls -la would give this to me but I guess CentOS is different. I need to verify that a symbolic link exists.
jim
2
votes
1 answer

Apache: Don't log errors for certain non-existing files (regular file or symbolic link)

I want to prevent Apache from logging "File does not exist" errors for certain irrelevant non-existing files that are often requested, such as "apple-touch-icon-120x120.png". These log entries clutter my log and make it difficult to see "real"…
1
vote
1 answer

Other virtual drive formats for linking to physical disk device or to archive content

It is known that you can link to physical disk device through VMDK virtual drive format. It works on Mac*, Lin*, Win* with VirtualBox or VMware ( here solution with VBoxManage internalcommands createrawvmdk is described ). I repeat: it is about…
1
vote
0 answers

Automated Directory symlink

I have a situation with Autodesk Revit that Autodesk recommends "fixing" with SymLinks as outlined here. However, as mentioned in that thread, this manual approach falls apart when you have hundreds of machines across multiple offices to address…
Gordon
  • 175
  • 6
1
vote
0 answers

Sharing symbolic links on networked drive - is not accessible due permissions

We have several windows servers 2012 R2. And a file server provided by a third party, which provides a volume available thru CIFS/SMB. I want create symbolic folder on win server to "file server" and shared it. So, on Win server 2012 I created…
1
vote
3 answers

Symlinks for common files

I'm trying to consolidate some website files on one of our CenotOS servers, the setup i want to create is something like this but i'm not sure if its actually possible we would have a set of files used by all sites: /home/commonfiles/ …
robjmills
  • 990
  • 9
  • 26
1
vote
0 answers

mysql wont connect to symlinked socket when given full path, but connects with relative

So I'm super confused. I have a test build that started breaking because a mysql socket was attempting to be created in such a deeply nested folder that its file path name exceeded the 108 character limit. So my thought was to put the socket in the…
Rooster
  • 495
  • 2
  • 7
  • 21
1
vote
2 answers

ln -s not working under /mnt/

I'm following this tutorial to set up a LAMP stack on EC2 with persistent storage on EBS. It all works well when doing it step by step. But in case you want to mount your EBS under /mnt instead of under the root directory the ln -s commands won't…
Yaniv
  • 135
  • 4