HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   suPHP Problem with user webs (http://www.howtoforge.com/forums/showthread.php?t=15899)

Lobanak 1st October 2007 20:57

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

Lobanak 1st October 2007 21:09

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.

till 1st October 2007 23:29

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.


All times are GMT +2. The time now is 11:44.

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