Okay, be prepared for this one. It's a doozy.

Here's what I ultimately want to accomplish.

Have a central script:
    http://www.myisp.com/controlpanel/filemanager.php

User logs into control panel, and wants to access the file manager. 
Let's say this user is called "myhostedsite", and has a site called 
"myhostedsite.com" which is on our servers at 
/usr/local/apache/virtual-hosts/com/m/myhostedsite/, owner.group: 
myhostedsite.myhostedsite

Now, I want to be able to give full read/write permissions to that user, 
through this file manager script that I have written. Currently I have 
looked at renaming the file manager to something like "filemanager.sphp" 
and then having .sphp send files through a wrapper on that user's hosted 
site. 
(/usr/local/apache/virtual-hosts/com/m/myhostedsite/cgi-bin/php-wrapper.cgi 
or .sh or whatever will work) to suid before executing the script. I 
have attempted having a copy of the PHP CGI binary installed in 
/usr/local/bin/php and having the shell script invoke the CGI binary by 
the command line, then spewing forth the output.

One other option I looked at, was to have every hosted site have a 
/control-panel alias (so http://myhostedsite.com/control-panel) and have 
that load to our control panel, but since our sites are managed with 
mod_rewrite (hence our directory structure).

No such luck so far, and I was hoping someone with a little more 
knowledge/experience in doing something similar may be able to steer me 
in the right direction in getting this configured properly, or even an 
entirely different way of setting it up so that it'll work.

Mike Eheler


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to