|
|
home and sites directory
|
|
|
|
Forum Regular
Join Date: Jul 2002
Location: Seattle
Status:
Offline
|
|
I would like to move my "sites" directory from my "home" directory to a portable firewire drive so that I may take my work with me, or maybe set up a second "sites" directory on the firewire drive (that would be best). I need to be able to run some basic PHP and MySQL. Can this be done?
Yes, I tried a search, but there were like a million and one results.
Thank you,
Chris
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Jul 2002
Location: Seattle
Status:
Offline
|
|
one bump and then I'll try the os X forum.
bump!
|
|
|
|
|
|
|
|
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
you can serve files from wherever the hell you like, as long as the local version of apache knows what you're trying to do. that's fine on your own machine, but every machine you plug that drive into will need to know too. i doubt you'll find many sys admins who will alter their httpd.conf just for you, when it's easier for you to be setup as a regular user, and then copy your files into the correct directory.
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Jul 2002
Location: Seattle
Status:
Offline
|
|
coolio. I thought maybe it would be the httpd.conf thingie. seems like I messed with that once when I updated to the latest php. it's been so long I've kind of forgotten about it. no worries for the sys admin since it's my own desktop and laptop i'll be working with.
feel free to describe how to change httpd.conf, otherwise I'll muddle through it OK, I did once before.
|
|
|
|
|
|
|
|
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
i'd say you just need to configure the VirtualHost section, where /volumes/firewire_drive/sites would be the DocumentRoot
feel free to google for the rest
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status:
Offline
|
|
You might try to use a symlink from your ~User directory to your FireWire Drive. It's easier, and it ought to work.
A symlink is basically an Alias that works on *Nix. It will work just like an Alias, so you'd put it in the Sites Folder, and it would redirect to the External Drive.
It may just be easier for your needs.
|
|
|
|
|
|
|
|
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
good point. i certainly do things the hard way, sometimes
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Jul 2002
Location: Seattle
Status:
Offline
|
|
since I would prefer not to move the whole sites directory, just a couple subfolders, it sounds like a symlink is the way to go.
sooo, what is a symlink? how do I make one?
|
|
|
|
|
|
|
|
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
Originally posted by cnelson87:
since I would prefer not to move the whole sites directory, just a couple subfolders, it sounds like a symlink is the way to go.
sooo, what is a symlink? how do I make one?
a symlink is similar to an alias. apache doesn't like you using an alias, though. use terminal:
ln -s /path/to/original/directory /path/to/link
for more info, see man ln
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|