Hypothesis: /var/www/html/modul-cscart.com/public_html/app/addons/sendsms
is a symlink with nonexistent target.
cd
says No such file or directory
because the target doesn't exist. Still the symlink itself does exist, that's why ln
says File exists
. I guess maybe your FTP server is configured to ignore invalid or all symlinks.
Run the following command to confirm the hypothesis:
ls -ld /var/www/html/modul-cscart.com/public_html/app/addons/sendsms
If the symlink exists, just remove it before you proceed with ln -s …
to create it anew (with a proper target this time); or use ln -s -f …
to make ln
overwrite it without complaining.
Warning: Removing or overwriting something else than a symlink may cause data loss. Removing or overwriting a symlink discards information what its target was. Make sure you know what the file really is. Aside from the above ls -ld …
command, use file
(if available):
file /var/www/html/modul-cscart.com/public_html/app/addons/sendsms
This tool should explicitly tell you the link is broken, if this is the case.
My attempt to replicate the problem:
$ mkdir /tmp/test608752
$ cd /tmp/test608752
$ ls
$ ln -s foo bar
$ ln -s /tmp bar
ln: failed to create symbolic link 'bar': File exists
$ cd bar
-bash: cd: bar: No such file or directory
$ ls -ld bar
lrwxrwxrwx 1 kamil kamil 3 Sep 10 12:04 bar -> foo
$