|
-
Apr 18th, 2006, 08:32 PM
#1
Thread Starter
Fanatic Member
Last edited by Ruku; Apr 27th, 2006 at 06:25 PM.
-
Apr 19th, 2006, 01:38 PM
#2
Thread Starter
Fanatic Member
Re: Apache chroot question...
*bump*
A friend of mine showed me "htaccess" methods in the apache config file...
what htaccess does is simple, it gives read/write permissions over the directories you have within apache (real or virtual).
However, the problem is that all users would have read access to my main .php files, which is a problem.
I really need to chroot the folder, so that the php files within the folder don't have access to anywhere else than within the folder...
my brain is still going on this... any help, any at all?
Last edited by Ruku; Apr 19th, 2006 at 01:46 PM.
-
Apr 20th, 2006, 05:19 AM
#3
Re: Apache chroot question... [Unresolved]
Change permissions either through an FTP client or your hosting software such as Cpanel or DirectAdmin, both have file system tools.
-
Apr 20th, 2006, 11:21 AM
#4
Thread Starter
Fanatic Member
Re: Apache chroot question... [Unresolved]
All the permissions are already set...
What I'm looking for is a way to login the user locked under the permissions over a specific folder, which would be his root...
(I don't need 1 general user account, I need to chroot all users individually)
how do I do that through apache config?
-
Apr 20th, 2006, 03:04 PM
#5
Re: Apache chroot question... [Unresolved]
The only way you can croot PHP is to have it start as root, carry out the chroot and demote itsself to the user you want to run it as. There are programs that do this for you, such as suexec. To do this you need to have PHP run as a CGI not a web server module.
Another method you can use is the powerful URL rewriting module in Apache. A request to http://www.example.com/user/ gets rewritten to http://user.example.com/ (you can then have a name server running on the server which resolves unknown .example.com addresses to the IP address of the server).
-
Apr 20th, 2006, 03:08 PM
#6
Re: Apache chroot question... [Unresolved]
-
Apr 27th, 2006, 06:23 PM
#7
Thread Starter
Fanatic Member
Re: Apache chroot question... [Unresolved]
 Originally Posted by visualAd
thx alot... for now, I can rewrite
mydomain.com/member/member1 (limited subdomains, no wildcard, but .com)
to
member1.mydomain.gotdns.com (wildcard, but .gotdns.com)
it still has the ugly gotdns part... but it's better than nothin'...!
!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|