Questions tagged [symbolic-link]

220 questions
1
vote
0 answers

NGINX file server with symlinks

This is a bit of a beginner question, but I'm trying to make Nginx serve a static file server that contains symlinked folders. Eg, the root directory might contain directories A and B, which each contain symlinks to one other, eg A/B -> B and B/A ->…
ak0000
  • 111
  • 3
1
vote
0 answers

Subdomains as subfolders and symlinks

I have a main wordpress and several subdomains. They were created in the usual way - I added subdomains to the panels (Fastpanel), and in the subdomain folders I added symbolic links to the files of the main domain. It works perfectly as expected.…
1
vote
1 answer

Symlink with execution permission and... arguments?

I am using Linux Mint 20.1, which is based on Ubuntu 20.04. My kernel is 5.4.0-60-generic. All the commands below are runned in GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu) I have seen the same behaviour with some other commands, but…
Kolay.Ne
  • 121
  • 5
1
vote
2 answers

mounted a symlink on a mountpoint

I have a samba share called A on a machined named aaron. Inside that share is a smylink called Audio-CD_WAVs which points to a machine local directory. When this share is accessed by a windows machine, samba follows the link and exports the target…
khoran512
0
votes
2 answers

Can you create a symlink for a file to multiple targets in bash?

I am looking to create a symlink for a file (E.g., /var/log/cron/cron.log) which will have a symlink to both /proc/1/fd/2 and /proc/1/fd/1. Is this possible?
leeman24
  • 147
  • 1
  • 9
0
votes
0 answers

Working Nginx-PHP-FPM setup; then switched from RAID1 to RAID10, and now setup doesn't work

Converted a RAID 1 volume to RAID10. The file system appears to be exactly the same on the new RAID 10 volume as the previous RAID 1 volume. For some reason PHP-FPM won't take a symbolic link to the config on the MDADM RAID10 anymore. So I copied…
0
votes
1 answer

apache: "Symbolic link not allowed or link target not accessible" on another filesystem only

I have a a file in remote directory which is moulted to apache DocRoot tree. When I try to download a file (not write) from that dir I get 403: AH00037: Symbolic link not allowed or link target not accessible: /var/www/b2b/web/var What I…
Putnik
  • 2,217
  • 4
  • 27
  • 43
0
votes
1 answer

Debugging how symbolic link is getting broken in ubuntu?

I have a symbolic link of the form ubuntu@platform1:~$ ls -lrt total 28 drwxr-xr-x 4 ubuntu ubuntu 4096 Mar 2 15:02 deploy lrwxrwxrwx 1 ubuntu ubuntu 14 May 25 18:27 logs -> /var/log/arkin Disk layout ubuntu@platform1:~$ df -h Filesystem …
tuk
  • 333
  • 5
  • 18
0
votes
0 answers

Why does mod_rewrite require FollowSymLinks or SymLinksIfOwnerMatch?

I would like to disable FollowSymLinks and SymLinksIfOwnerMatch options, but at the same time I do want to use mod_rewrite. I checked the source code of apache 2.4 and I found there is only a condition that does not allow RewriteEngine On, when the…
0
votes
1 answer

how to create fake symlinks when copying to CIFS share with rsync

So I have to backup lot's of data to a company server. And it creates a fair share of symbolic links. I'm on a Linux Machine, and the backup server is accessed via CIFS, which does not support symbolic links. And there is nothing I can do about…
dmeu
  • 101
  • 1
0
votes
3 answers

Remote Link on OSX

I have two machines on the same LAN, I usually ssh from one to the other and I was wondering if I could create a symbolic or hard link from a box that points to the other one. I'm using OSX on both PC's Thanks a lot!
Pablo Fernandez
  • 665
  • 1
  • 5
  • 8
0
votes
0 answers

Prevent local WordPress from deleting Plugins via Symlink

I run a local web server for developing plugins. My plugins reside in git repositories and I create symlinks to link them to the WordPress installations plugin folder. Sometimes it happens that I accidentially use the wrong browser tab and delete…
xxtesaxx
  • 101
0
votes
1 answer

Issues with deploying PHP application by switching symlink

I'm seeing errors like these in the Apache error log immediately after deployment and there are HTTP 500 errors: PHP Fatal error: Uncaught RuntimeException: Failed to write cache file…
0
votes
3 answers

have 2 folders on different disks behave as if they were 1 folder

I have a server with two 1TB hard drives. I have an uploads folder on /disk2/uploads, That folder has filled up the entire hard drive. The other disk is basically empty. I want to have a spill over folder on the empty drive that hosts any…
ajon
  • 309
  • 4
  • 11
0
votes
1 answer

linux redhat + how to overwrite the existing link quiet mode

is it possible to overwrite the exiting link Without to get fail/error with standard output 1 ? ( like mkdir -p ) ls -ltr /hadoop lrwxrwxrwx. 1 root root 12 Jun 25 12:51 /hadoop -> /data/hadoop ln -s /data/hadoop /hadoop ln: failed to create…
jango
  • 59
  • 2
  • 3
  • 12