Questions tagged [symlink]
168 questions
0
votes
1 answer
Nginx - redirecting all requests after a URL path to a PHP script
In our existing Apache setup, we have a .htaccess file in a folder which redirects all requests to a PHP handler. For example:
www.example.com/gallery/user01/xyz.png
For this URL request:
The "/user01" part symlinks to a "/imageDB" local…

Jason
- 121
- 6
0
votes
3 answers
Identical directories on Linux file system are not symlinks. What else they could be?
I found two directories on some of my systems which are completely the same. All subdirectories and all files are the same. When I delete a file in one directory it disappears in other too. This would indicate sym links, doesn't it?
But ls -s…

Reb
- 81
- 1
- 2
- 6
0
votes
1 answer
Nginx & PhpMyAdmin standard practices
I'm currently migrating a small dev server from Apache to Nginx and I'm wondering about the "standard" way to manage PhpMyAdmin :
I've simply symlinked the phpmyadmin folder to my nginx site root folder.
I've also seen a lot of posts saying to…

Lery
- 111
- 5
0
votes
1 answer
Use .htaccess to redirect to a symlinked subdir of the web root?
I'm trying to use Envoyer.io to deploy my code and I'm running into some issues.
This utility makes two folders, current and releases. current symlinks to latest release in the releases folder.
So my directory structure looks like…

Tyler
- 1
- 1
0
votes
0 answers
Web server directory structure with additional volume for media (in Amazon EC2)
I'm re-building my server (LAMP) structure. I have now only one root volume that includes all data. Now i'm adding (EBS volume) for userdata like media etc. so i can just backup that volume and not whole server. So my questions are:
is it better…

user236003
- 1
- 1
0
votes
1 answer
Process can't see recently created symlink on NFS
I have a small amount of old ubuntu desktops connected by a switch acting as a mini test cluster. The workers take commands from a master node via the SLURM queue manager. They share a data mount and a mount containing executables to act on the data…

glormph
- 115
- 4
0
votes
1 answer
How to access original files from before a symlink gets updated, which have since been moved to another dir
We have a website and our deployment process goes somewhat like the following (with lots of irrelevant steps excluded)
echo "Remove previous, if it exists, we don't need that anymore"
rm -rf /home/[XXX]/php_code/previous
echo "Create the current…

Luke Cousins
- 387
- 1
- 3
- 18
0
votes
2 answers
If a web root directory has a simlink that points to a folder one-level up, does that pose a security risk?
Assuming a Linux/Unix system. Not asking about any particular server software, just wondering in general. I want to use this to include javascript libraries or things like that in multiple sites or subdomains.

bluegreen
- 101
0
votes
1 answer
Setup VSFTP to download file not symlink
I am running VSFTP.
In a chroot environment I have the following setup:
ftpdir/directory1
ftpdir/file1.txt
ftpdir/links/linktodirectory1 -> ../directory1
ftpdir/links/linktofile1.txt -> ../file1.txt
Where ftpdir/links/linktodirectory1 is a symbolic…

Rudolf Vavruch
- 1,295
- 2
- 11
- 16
0
votes
0 answers
Apache2 Serves Old Content After Symlink Change
When we deploy we create a timestamped folder in a versions folder. After it's done cloning from git we unlink the symlink, and create a new one to the new versioned folder. We reload apache (not a full restart) and when we refresh the pages it…

jlindenbaum
- 101
- 1
0
votes
1 answer
debian: follow symlink outside basedir giers error
I have several virtual host with each there folder. And a single shared folder:
/home/website1
/home/website2
/home/website3
/home/shared_src
Symlinks works fine inside each folder to a per website folder called "codebase".
I have copied the folder…

Tillebeck
- 511
- 1
- 4
- 19
0
votes
1 answer
Copy symlink structure from one server to another
I have a symlink structure that I would like to copy from one server to another. I do not want to copy the files, just copy the symlink structure itself. I tried simply tarring the list of symlinks, but that did not produce a valid tar file. Is…

Engineer2021
- 601
- 8
- 25
0
votes
1 answer
OEL Link a directory to another one
I have a Oracle Enterprise Linux Server that is serving a website at /var/www/html/, there is a directory inside /var/www/html/ called "Attachments". This directory is growing very big (around 17GB atm) and the "/" partition is only 50GB.
The…

zertux
- 151
- 1
- 14
0
votes
1 answer
File access from CentOS new HDD by web user
I am using Centos 6.3 final and Apache 2.2.15. I recently installed a new HDD and created a symlink within my website's root directory so that my script can write big files to it and uses can access them through web. However, it looks like I…

John Doe
- 1
0
votes
1 answer
Apache acting strange on symlinks
I have a VPS with CentOS and I'm facing a very strange behavior by Apache webserver.
I started this server with 50GB of disk space and soon I ran out of space so I asked maintenance department and they added another 50GB as a new hard drive. So I…

Farid Rn
- 195
- 3
- 14