nolageek Posted March 27, 2003 Posted March 27, 2003 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 Quote
rayners Posted March 27, 2003 Posted March 27, 2003 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? Quote
alexfung Posted May 5, 2003 Posted May 5, 2003 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. Quote
idallen Posted May 5, 2003 Posted May 5, 2003 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 Quote
alexfung Posted May 5, 2003 Posted May 5, 2003 Thanks it is linked. However, I am astonished that my DOCUMENT_ROOT=/usr/local/apache/htdocs What is happening? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.