Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th March 2013, 16:57
tchouvince tchouvince is offline
Junior Member
 
Join Date: Mar 2013
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default problems with su-php and multiple wesite for the same client

Hello all,

I have a problem with mod su-php:
When I create multiple website for a same client, I have that in my directory:

/var/www/clients/client1/web1
/var/www/clients/client1/web2
etc...

I want to use mod su-php for all websites for all clients.

For the first website, no problem.
For the second website, I have an error 500.
In logs, I have that:
SoftException in Application.cpp:555: Directory /var/www/clients/client1 is not owned by web2


If I change owner for example chown -R web2:client1, the second website work but the first website no.

What can I do for it work with owner web1:client1 for the first webiste, client1:web2 for the second site etc....

Thanks for advance et excuse me for my very bad english.
Reply With Quote
Sponsored Links
  #2  
Old 18th March 2013, 20:40
almere almere is offline
ISPConfig Developer
 
Join Date: Nov 2012
Location: Netherlands, Rotterdam
Posts: 231
Thanks: 20
Thanked 39 Times in 34 Posts
Send a message via Skype™ to almere
Default

Quote:
Originally Posted by tchouvince View Post
Hello all,

I have a problem with mod su-php:
When I create multiple website for a same client, I have that in my directory:

/var/www/clients/client1/web1
/var/www/clients/client1/web2
etc...

I want to use mod su-php for all websites for all clients.

For the first website, no problem.
For the second website, I have an error 500.
In logs, I have that:
SoftException in Application.cpp:555: Directory /var/www/clients/client1 is not owned by web2


If I change owner for example chown -R web2:client1, the second website work but the first website no.

What can I do for it work with owner web1:client1 for the first webiste, client1:web2 for the second site etc....

Thanks for advance et excuse me for my very bad english.
You’ve got the wrong permissions set on one or more folders.
Please, change permissions of your index file to 755 (because now you have 777, I guess).
You can try this for each site (in your case for web1 and web2):

If you care about your security:
find /var/www/clients/client1/web1/web/* -type f -exec chmod 644 {} \;
find /var/www/clients/client1/web1/web/* -type d -exec chmod 755 {} \;
find /var/www/clients/client1/web2/web/* -type f -exec chmod 644 {} \;
find /var/www/clients/client1/web2/web/* -type d -exec chmod 755 {} \;

If you do not care about your security, or just lazzzzzzzy:
chmod -R 755 /var/www/clients/client1/web1/web/
chmod -R 755 /var/www/clients/client1/web2/web/
Reply With Quote
The Following User Says Thank You to almere For This Useful Post:
tchouvince (19th March 2013)
  #3  
Old 19th March 2013, 09:18
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,808
Thanks: 821
Thanked 5,339 Times in 4,188 Posts
Default

Just as a sidenote, dont use suphp these days. It is too slow. A better alternative s to use php-fcgi or php-fpm and enable the suexec checkbox in the site settings, this is much faster then suphp and will run the php scripts under the website user.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
tchouvince (19th March 2013)
  #4  
Old 19th March 2013, 12:02
tchouvince tchouvince is offline
Junior Member
 
Join Date: Mar 2013
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by almere View Post
You’ve got the wrong permissions set on one or more folders.
Please, change permissions of your index file to 755 (because now you have 777, I guess).
You can try this for each site (in your case for web1 and web2):

If you care about your security:
find /var/www/clients/client1/web1/web/* -type f -exec chmod 644 {} \;
find /var/www/clients/client1/web1/web/* -type d -exec chmod 755 {} \;
find /var/www/clients/client1/web2/web/* -type f -exec chmod 644 {} \;
find /var/www/clients/client1/web2/web/* -type d -exec chmod 755 {} \;

If you do not care about your security, or just lazzzzzzzy:
chmod -R 755 /var/www/clients/client1/web1/web/
chmod -R 755 /var/www/clients/client1/web2/web/
Thanks you very much.
Now it's works.
I had also change owner of client's directory (for example /var/www/clients/client1):
the client's directories seems to be root.
Reply With Quote
  #5  
Old 19th March 2013, 12:03
tchouvince tchouvince is offline
Junior Member
 
Join Date: Mar 2013
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

Thanks you for this post.
I will to see that.

Quote:
Originally Posted by till View Post
Just as a sidenote, dont use suphp these days. It is too slow. A better alternative s to use php-fcgi or php-fpm and enable the suexec checkbox in the site settings, this is much faster then suphp and will run the php scripts under the website user.
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
ISPConfig3 How to have multiple manually created port based SSL client sites hosts zapyahoo Installation/Configuration 10 20th January 2013 16:01
Multiple PHP versions Croydon Developers' Forum 8 3rd July 2012 12:29
Multiple PHP versions. Tekati Installation/Configuration 4 24th May 2012 08:23
ISPConfig virtual web pages not working mike_phi Installation/Configuration 8 7th May 2008 16:51
Multiple Vulnerabilities in PHP 5.2.xxx albertux Installation/Configuration 1 20th November 2007 10:29


All times are GMT +2. The time now is 12:00.


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