Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3
Results 31 to 42 of 42
  1. #31
    Member
    Join Date
    Sep 2007
    Posts
    30

    Default Re: EasyApache with mpm-itk

    @cPanelTristan, thanks for the update. Please keep posting to this thread with information on adding this to EasyApache.
    Eric Caldwell - CEO
    Web-JIVE.com
    Web design, Joomla Development and Hosting

  2. #32
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: EasyApache with mpm-itk

    You can easily add it to EasyApache using the guide I linked in my last response. I wouldn't want to re-iterate the full guide here. If you do have questions on the instructions, though, please let me know. Thanks!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #33
    Member
    Join Date
    Sep 2007
    Posts
    30

    Default Re: EasyApache with mpm-itk

    Sorry, meant to keep us updated on if cPanel will include this as part of a future build I would rather wait on your guys expertise to make sure this is baked and ready for production.
    Eric Caldwell - CEO
    Web-JIVE.com
    Web design, Joomla Development and Hosting

  4. #34
    Member
    Join Date
    Sep 2011
    Posts
    15
    cPanel/Enkompass Access Level

    Website Owner

    Default Re: EasyApache with mpm-itk

    I followed the guide and have mpm-itk working with mod_php

    but all the processes are running as nobody.

    mkdir -p /usr/local/apache/conf/userdata/std/2/username
    echo "AssignUserID username username" >> /usr/local/apache/conf/userdata/std/2/username
    /scripts/ensure_vhost_includes --user=username
    This doesn't work properly as it says
    -bash: /usr/local/apache/conf/userdata/std/2/username: Is a directory
    if i just create a file with the name username with AssignUserID username username in it
    and then run ensure_vhost_includes.

    it restarts the apache process and everything is works but the process is still called nobody.

    what am i doing wrong?

  5. #35
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: EasyApache with mpm-itk

    You are correct. Revised the guide to change to having /usr/local/apache/conf/userdata/std/2/username/mpm.conf for the name of the file, since this is a configuration file for the include.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #36
    Member
    Join Date
    Sep 2011
    Posts
    15
    cPanel/Enkompass Access Level

    Website Owner

    Default Re: EasyApache with mpm-itk

    perfect its running now.

    is php supposed to run as the user? as i am getting problems when using a php upload script, it returns an empty response.

    This happens even when the folder is owned by nobody:nobody, username:nobody and username:username.
    and when permissions are 777

    here's the script i wrote to add every user

    #!/bin/bash
    for user in `ls /var/cpanel/users`; do
    mkdir -p /usr/local/apache/conf/userdata/std/2/${user}
    echo "AssignUserID ${user} ${user}" >> /usr/local/apache/conf/userdata/std/2/${user}/mpm.conf
    /scripts/ensure_vhost_includes --user=${user}
    done
    Last edited by swany; 09-21-2011 at 07:58 PM.

  7. #37
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: EasyApache with mpm-itk

    Try running the scripts as the user, since they do run that way now rather than nobody. That's the point of MPM ITK.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #38
    Member
    Join Date
    Sep 2011
    Posts
    15
    cPanel/Enkompass Access Level

    Website Owner

    Default Re: EasyApache with mpm-itk

    Quote Originally Posted by cPanelTristan View Post
    Try running the scripts as the user, since they do run that way now rather than nobody. That's the point of MPM ITK.
    yeah i tried to do that by changing the filename / folder owners / groups to the username / username but it still wouldn't work.

    I've moved on to trying to get php-fpm working as that is the recommended way by php.net

  9. #39
    Member
    Join Date
    Dec 2008
    Posts
    81

    Default Re: EasyApache with mpm-itk

    [Tue Jan 03 05:20:39 2012] [error] [client 94.15.87.216] Premature end of script headers: index.php
    [Tue Jan 03 05:20:44 2012] [error] [client 66.249.72.187] SecurityException in Application.cpp:182: Calling user is not webserver user!

    Doesn't work with suphp selected, someone said it would in one of these forum posts.

  10. #40
    Member
    Join Date
    Dec 2008
    Posts
    81

    Default Re: EasyApache with mpm-itk

    Also getting a lot of segfaults and apache crashing out, first time I've had this out of any configuration I've tried. Shame, because my sites are massively quicker with this setup.

  11. #41
    Member
    Join Date
    Dec 2008
    Posts
    81

    Default Re: EasyApache with mpm-itk

    Doesn't work with ModSecurity out of the box either.

  12. #42
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: EasyApache with mpm-itk

    Quote Originally Posted by britsenigma View Post
    [Tue Jan 03 05:20:39 2012] [error] [client 94.15.87.216] Premature end of script headers: index.php
    [Tue Jan 03 05:20:44 2012] [error] [client 66.249.72.187] SecurityException in Application.cpp:182: Calling user is not webserver user!

    Doesn't work with suphp selected, someone said it would in one of these forum posts.
    There wouldn't be a reason to use MPM ITK with suPHP, since you would actually have suPHP running even slower. MPM ITK should only be used with DSO.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Using MPM ITK as a Custom Opt Module
    By cPanelTristan in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-04-2012, 09:20 AM
  2. EasyApache with mpm-itk [Case 50762]
    By xanubi in forum Archived Feature Requests
    Replies: 5
    Last Post: 08-02-2011, 07:46 AM
  3. configure: error: the selected mpm -- itk -- is not supported
    By Saytik in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-04-2011, 07:56 PM
  4. mpm-itk easyapache module - where is it?
    By fujipadam in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-04-2009, 07:32 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube