php, sbox and virt. hosts
| From: | Charles Williams | Date: | Sun, 02 Nov 2003 14:45:58 +0000 |
| Subject: | php, sbox and virt. hosts | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-12179@lists.php.net to get a copy of this message | ||
hey all,
I was wondering if anyone here has used sbox before and if so I have some
questions.
1. how does it compare to suexec?
2. does it function with apache 2.x.xx?
3. I was comtemplating setting it up but I'm not sure how to best go about
it. Our system is a virt hosting system and have the following structure:
[root@eh1 web]# ls -al /home
total 64
drwxr-xr-x 9 root root 4096 Nov 2 07:10 .
drwxr-xr-x 21 root root 4096 Nov 1 13:13 ..
drwxr-xr-x 6 root root 4096 Nov 2 00:32 3624630791
drwxr-xr-x 4 root root 4096 Oct 31 23:48 3624673531
lrwxrwxrwx 1 root root 16 Nov 2 00:32 3624690201 ->
/home/3624630791
lrwxrwxrwx 1 root root 16 Oct 31 23:48 anothersite.com ->
/home/3624673531
-rw------- 1 root root 7168 Nov 2 07:10 aquota.group
-rw------- 1 root root 7168 Nov 2 07:10 aquota.user
lrwxrwxrwx 1 root root 16 Oct 29 19:57 estroo.de ->
/home/3624630791
drwxr-xr-x 2 root root 4096 Sep 18 16:25 ftp
drwxr-xr-x 4 root root 4096 Oct 29 19:52 home
drwx------ 2 root root 16384 Oct 29 13:49 lost+found
drwx------ 8 vpopmail vchkpw 4096 Oct 29 19:42 vpopmail
[root@eh1 web]# ls -al /home/3624673531
total 16
drwxr-xr-x 4 root root 4096 Oct 31 23:48 .
drwxr-xr-x 9 root root 4096 Nov 2 07:10 ..
drwxr-xr-x 2 root root 4096 Oct 31 23:48 _logs
drwxr-xr-x 7 root root 4096 Oct 31 23:48 www
[root@eh1 web]# ls -al /home/3624673531/www
total 28
drwxr-xr-x 7 root root 4096 Oct 31 23:48 .
drwxr-xr-x 4 root root 4096 Oct 31 23:48 ..
drwxrwxr-x 2 root g3624673531 4096 Oct 31 23:48 data
drwxr-xr-x 2 root root 4096 Oct 31 23:48 logs
drwxr-xr-x 2 root root 4096 Oct 31 23:48 ssl
drwxr-xr-x 2 root g3624673531 4096 Oct 31 23:48 users
drwxrwxr-x 5 root g3624673531 4096 Nov 2 05:30 web
[root@eh1 web]# ls -al /home/3624673531/www/web
total 64
drwxrwxr-x 5 root g3624673531 4096 Nov 2 05:30 .
drwxr-xr-x 7 root root 4096 Oct 31 23:48 ..
-rw-rw-r-- 1 root g3624673531 31982 Oct 31 23:48 back.gif
-rw-rw-r-- 1 root g3624673531 7530 Oct 31 23:48 back.jpg
drwxrwxr-x 3 root g3624673531 4096 Oct 31 23:48 errors
-rw-rw-r-- 1 root g3624673531 1729 Oct 31 23:48 index.html
drwxr-xr-x 2 root root 4096 Nov 2 05:30 stats
[root@eh1 web]#
As you can see we use the format /home/domain/host/web and
/home/domainid/host/web for the doc_root of a particular domain/subdomain.
And as I have never installe sbox before I'm asking anyone and everyone how
they would do it before I lay my grubby hads on it and dork it up. The main
reason being is there can be no limiting the sites to just
http://www.domain.com/cgi-bin/script.php|pl|cgi|etc...
They need to be able
to run the scripts anywhere.
Well, That's it for now. Anyone with experience in this area let me know
please. I'll gather all the info I can and see if it worth doing a small
FAQ as there isn't a lot of info about sbox out there.
thanks,
chuck