#1  
Old 1st October 2007, 20:57
Lobanak Lobanak is offline
Junior Member
 
Join Date: Sep 2005
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Question suPHP Problem with user webs

I have installed suPHP, because I need PHP5 for a specific site and also want to use suPHP for all sites when it's running ok.

Now I have the problem, that when I enable suPHP for this site, my users cannot use php scripts in their ../~webXX_user/ directory.

As the users have their own UID and not the same as the admin user (which I used in the vhost config), suPHP do not allow execution of the php scripts.

Is it possible to enable the different UID in suPHP for the ../user/webXX_user/ folders?

Also the question how this is handled if suexec+fastcgi ist used? Is it also only possible to run the php scripts when they are owned by the admin user or can php scripts owned by a different UID be executed?

Thanks

Greets

Lobanak
Reply With Quote
Sponsored Links
  #2  
Old 1st October 2007, 21:09
Lobanak Lobanak is offline
Junior Member
 
Join Date: Sep 2005
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

ok, found the problem in the howto I used http://www.howtoforge.com/suphp_debian_etch_ispconfig

there is the problem:
Code:
./configure --prefix=/usr
  --sysconfdir=/etc
  --with-apache-user=www-data
  --with-setid-mode=paranoid
  --with-apxs=/usr/bin/apxs2
If I use --with-setid-mode=owner, this works, but is not that secure.
Reply With Quote
  #3  
Old 1st October 2007, 23:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,638
Thanks: 793
Thanked 4,998 Times in 3,909 Posts
 
Default

Quote:
Is it possible to enable the different UID in suPHP for the ../user/webXX_user/ folders?
Thats not possible beacuse the user directories do not have their own apache vhost.

Quote:
Also the question how this is handled if suexec+fastcgi ist used? Is it also only possible to run the php scripts when they are owned by the admin user or can php scripts owned by a different UID be executed?
It is the same then with suphp. The uid and gid is set in the vhost and every website is hust one vhost. If you need different vhosts with differend userID's, then you should create a new website for every user with a subdomain like username.yourdomain.com. A client can have a unlimited number of websites.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Anything I can do against illegal login-requests? schmidtedv Installation/Configuration 17 7th November 2008 09:25
User Add/Delete and FTP login problem. clabrown Installation/Configuration 3 23rd August 2007 19:12
log files cruz Technical 3 15th May 2007 14:35
User Login Problem protocol Installation/Configuration 6 16th May 2006 14:17


All times are GMT +2. The time now is 13:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.