apache2-mpm-itk problem

Discussion in 'Installation/Configuration' started by Wojtek1, Aug 18, 2010.

  1. Wojtek1

    Wojtek1 New Member

    Hi All !

    After change apache from standard instalation (falko's perfect setup on debian lenny) to mpm-itk i heave problem with apache server.
    Test file: index.php with content: <? phpinfo(); ?>

    On CGI mode works fine.
    On Mod-PHP mode works fine.
    On Fast-CGI mode in error log: [Wed Aug 18 10:04:25 2010] [emerg] (13)Permission denied: mod_fcgid: can't get lock, pid: 5726

    On SuPHP mode in error log:
    [Wed Aug 18 10:11:19 2010] [error] SecurityException in Application.cpp:162: Calling user is not webserver user!
    [Wed Aug 18 10:13:36 2010] [error] Premature end of script headers: index.php
    CGI with Suexex mode:
    [Wed Aug 18 10:14:23 2010] [error] (13)Permission denied: exec of '/usr/lib/apache2/suexec' failed
    [Wed Aug 18 10:14:23 2010] [error] Premature end of script headers: php-cgi-starter


    Anyone has solution for this ?
    Last edited: Aug 18, 2010
  2. falko

    falko Super Moderator ISPConfig Developer

    Can you try and add the calling user to the Apache group?
  3. Wojtek1

    Wojtek1 New Member

    -rwxr-xr-- 1 web55 client7 19 Aug 18 10:22 index.php

    manualy added web55 to group www-data
    uid=5015(web55) gid=5008(client7) groups=5008(client7),33(www-data),5002(sshusers)

    still the same errors :(

    after change php setting from FCGI to SuPHP user web55 is removed from www-data ...
  4. JeGr

    JeGr Member

    Why do you run php as cgi with suphp or suexec after you installed mpm_itk? Is there a special need for that?
  5. Wojtek1

    Wojtek1 New Member

    no, it isn't ... i'm trying all possibilities.
    if cannot run with that options - It should not be available
  6. JeGr

    JeGr Member

    I think I don't understand you there. If one has mpm-itk configured correctly and thereby the apache process already changed it's ID, how is suexec or suphp suppose to change it again? That's simply pointless and has nothing to do with trying all options. You won't combine the same function 3 times and complain about the last 2 failing because it is already done?
  7. Wojtek1

    Wojtek1 New Member

    ok, You know that, i know it now too, but "client" not necessarily ...
    webpanel should prevent from stupid options ;) don't You think ?
  8. sh1ny

    sh1ny New Member

    When you create the client, you can choose what options are available to him. Leaving only mod-php solves the problem.
  9. Wojtek1

    Wojtek1 New Member

    You're right! simplest thing is hardest to find ...
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    And thats why the administrator can limit the available php options for the client... See client limits.
  11. Wojtek1

    Wojtek1 New Member

    Thats correct. Thanks for advice!
    Simplest thing is hardest to find ...

Share This Page