LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-15-2004, 07:37 AM   #1
drisay
Member
 
Registered: Sep 2004
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 30
strange question regarding symbolic links and apache


Is it possible to have some sort of dynamic symbolically linked directory?

Kind of a weird request, but here is my reasoning. I set up apache/php on the weekend, for a project that I am going to work on, on my home server. There are 2 people that are going to connect to this box to do development. There is a central cvs repository and then each person will have there own code base to work out of.

code base directory will be something like this: /home/user1/dev and /home/user2/dev

I was wondering if I could set up a linked directory under apache like the following /usr/local/httpd/codebase and link it to /home/<dynamic username>/dev.

Now I know I could just set up 2 instances of apache under each of our home directories... and I'm sure that's what I'll end up doing, but I was just wondering if something like this is even possible.

If the only solution would be to set up 2 instances of apache... can I just copy the binairies from /usr/local/httpd to some folder in the user's home folder and modify httpd.conf to accomodate those changes? Will it still recognize php or do I need to do some relinking on it's module as well?

Thanks,
drisay.
 
Old 11-15-2004, 07:48 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
In most cases, apache will read and follow symlinks.
 
Old 11-16-2004, 08:59 AM   #3
drisay
Member
 
Registered: Sep 2004
Distribution: Slackware 10
Posts: 167

Original Poster
Rep: Reputation: 30
How about the copying of binary files? Will apache work properly with it's php module if I copy the binary files to each users home folder?
 
Old 11-16-2004, 11:14 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Did you try the apache alias directive (httpd.conf) ?

Code:
Alias /codebase/ "/usr/local/httpd/codebase"

<Directory "/usr/local/httpd/codebase">
        Options Indexes FollowSymlinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache & symbolic links zeky Linux - Software 3 06-19-2008 09:23 AM
cp and symbolic links? sausagejohnson Linux - General 3 07-19-2005 01:25 AM
help with symbolic links sopiaz57 Linux - General 2 06-11-2004 06:17 PM
Symbolic links? TongueTied Linux - Newbie 3 08-27-2003 06:00 AM
Apache and Symbolic Links epeus Linux - General 2 11-09-2002 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration