Jump to content

Recommended Posts

Posted

On my server, I installed Movable Type into the colowing directory:

 

/cgi-bin/mt-2.63/

 

I'd like to reference this directory by using

/cgi-bin/mt/

 

That way, when I upgrade movable type to version 2.7, etc. I would just have to update the symbolic link, pointing /cgi-bin/mt to /cgi-bin/mt-2.7/

 

I can't remember the correct syntax for doing this, and would it have to be a hard link, or a sym link?

 

Thanks!

 

Vincent

Posted

A sym link should be fine. Unfortunately, I haven't the slighest idea how to create one through FTP (or CPanel's File Manager).

 

Anybody have a clue how to do that? :P

  • 1 month later...
Posted

Yeap. It can't be done using cpanel or FTP. It is one of the rare situations we need telnet.

 

I also tried to use PHP and CGI to execute the link command. I am not family with either so I ended up in a mess. You can give them a try.

 

I also need a few symobolic links. Solutions will be much appreciated.

Posted

Here is a CGI that will create a symbolic link named bar under your public_html/ directory

and then show you the contents of the directory (so you can verify the link):

 

>#!/bin/sh -u
# -IAN! idallen@ncf.ca

cat <<EOF
Content-Type: text/plain

Hello.  If you don't see this, your CGI isn't working.
The blank line after Content-Type: above is necessary.
The "id" and "pwd" commands below are not necessary;
they just show you info about how the script is running.
Make sure you make this script executable, and put it
in your public_html/cgi-bin/ directory.
EOF
id
pwd
cd $DOCUMENT_ROOT
pwd
ln -s foo bar
ls -l

Posted

Thanks :) it is linked.

 

However, I am astonished that my

 

DOCUMENT_ROOT=/usr/local/apache/htdocs

 

:D

 

What is happening?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...