Questions tagged [symlink]

166 questions
0
votes
1 answer

MySQL not finding database/tables through symlink

In my installation of MySQL the database files are located in ./var/lib/mysql. I wanted to move one of those databases to another drive, so I followed instructions to move one database to a different directory and copied the data files for the…
Altimus Prime
  • 334
  • 2
  • 7
  • 20
0
votes
0 answers

Moving a MySQL database to another device, even if dropped and recreated

I'm using symlinks to move some MySQL databases to another device with more space. All works fine until one of those DBs gets dropped and then re-created: the symlink is deleted in the process of dropping the database. And then a regular directory…
frnhr
  • 125
  • 7
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

Centralized logs folders with symlinks

I have a question about symlinks that I cant fullunderstand. I have next schema: Machine1: /opt/xxx/logs Machine2: /opt/xxx/logs Machine3: /opt/xxx/logs Machine4: /opt/xxx/logs Machine5: /opt/xxx/logs SharedFolder:/logs First, We had a shared…
user1422434
  • 101
  • 2
0
votes
1 answer

ruby: symlink doesnt exist yet trying the command says it does?

I've borked something up somehow. On one of my servers, if I type ruby, I get the error bash: /opt/rh/rh-ruby23/root/usr/bin/ruby: No such file or directory which ruby gives: /usr/local/bin/ruby which -a ruby…
jemminger
  • 125
  • 2
  • 8
0
votes
1 answer

nginx + php-fpm chdir not working

I'm meeting a problem with getting my nginx and php-fpm working. I'm getting an error 504 when I try to access my application. I have a structure like this; data/mywebsite/ | |---revisions/ | |---shared/ | |---released/ |---web/ …
0
votes
2 answers

AWS - Symlink directory in EC2 to S3 bucket

I would like to create "infinite" directory in terms of storage in an EC2 instance. Is it possible to symlink directories to S3 bucket? I did not find any solution in the Internet, maybe somebody knows?
user350413
  • 23
  • 1
  • 4
0
votes
2 answers

Is there a way to create a file that is the output of a command?

I have two files: foo.txt and bar.txt. I want a file named foobar.txt that is the content of both foo.txt followed by bar.txt. And if I change either file, I want foobar.txt to still output whatever is currently in foo.txt followed by bar.txt. Now…
Jason Thompson
  • 403
  • 2
  • 6
  • 15
0
votes
1 answer

php files(Symlink) are displaying as text

This is not same other question like "php file is displaying text or not executing". In my case, the php files are indeed working fine. However the files(symlink) to the php files are not working. For example, the normal .php files are working. #…
Abdul
  • 85
  • 1
  • 2
  • 9
0
votes
2 answers

Change the name of a symlink directory without breaking it?

I'm trying to go through the process of changing a symlink on ubuntu 14.04 LTS without breaking anything. Do I simply rename the folder and change the way the virtual hosts file points to the directory? In order to avoid running into a bunch of…
Wolfpack'08
  • 101
  • 2
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
  • 5
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
  • 71
  • 1
  • 2
  • 5
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…