problems with su-php and multiple wesite for the same client

Discussion in 'Installation/Configuration' started by tchouvince, Mar 18, 2013.

  1. tchouvince

    tchouvince New Member

    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:


    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.
  2. almere

    almere Member HowtoForge Supporter

    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/
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
  4. tchouvince

    tchouvince New Member

    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.
  5. tchouvince

    tchouvince New Member

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


Share This Page