hansmiddelhoek
Verified User
Hi,
We installed mpm-itk. We considered suPHP some time ago, but the side affects, much slower than mod_php and .htaccess flags (php_flags) should go into own php.ini files which will allow more changes, besides that, chmod's of 777 will not work anymore and that will trigger more support issues. Than we came across mod_ruid2 and mpm-itk. Both look great but mod_ruid2 doesn't seem to build very well on FreeBSD, so mpm-itk is the way to go for us. I've read alot of other opinions and nobody seems to share the same ideas This isn't the topic to discuss our choice for mpm-itk.
On one of our test servers we accomplished a successful installation within a few minutes. I tested itk by changing a virtual host file with AssignUser added and it works! But there are some issues during our tests.
1. In all our public_html directories there's a symlink awstats pointing to ../awstats. The awstats directory is owned by the user, so it shouldn't be a problem, but it looks like cgi scripts can't be ran with itk, therefore a suexecusergroup option is in de vhost. I think this is overwritten by itk and thereafter cgi scripts won't work.
2. We use aliases like /webmail, /roundcube, /squirrelmail and some others. Within these directories itk is doing it's job and therefore webmail doesn't work.
I added this to the end of the vhost:
I managed to solve one of above issues by moving the new options into the directory directive, like this:
Because the assinguserid only applies on /home/<user>/domains/<domain>/public_html directory and it's sub's, the webmail on other locations isn't touched by this setting.
AWstats still doesn't work, because the symlink resides in public_html.
What is the way to go to solve these issues, do the ones using mpm-itk face the same issues? Or did they solve them already? And how? AFAIK it's not possible to exclude extensions from directive, so we could specify that the assignuserid doesn't apply on .cgi .pl and .py files for example. You could match extensions with <FilesMatch>, but there no exclude parameter like ! afaik.
If you have any suggestions, please let me know. When everything works fine and I've did some additional tests I will post a howto. If you feel that assignuserid doesn't belong within the <directoy> directive, I really want to know, I couldn't find anything about it and it seems to solve some issues.
We installed mpm-itk. We considered suPHP some time ago, but the side affects, much slower than mod_php and .htaccess flags (php_flags) should go into own php.ini files which will allow more changes, besides that, chmod's of 777 will not work anymore and that will trigger more support issues. Than we came across mod_ruid2 and mpm-itk. Both look great but mod_ruid2 doesn't seem to build very well on FreeBSD, so mpm-itk is the way to go for us. I've read alot of other opinions and nobody seems to share the same ideas This isn't the topic to discuss our choice for mpm-itk.
On one of our test servers we accomplished a successful installation within a few minutes. I tested itk by changing a virtual host file with AssignUser added and it works! But there are some issues during our tests.
1. In all our public_html directories there's a symlink awstats pointing to ../awstats. The awstats directory is owned by the user, so it shouldn't be a problem, but it looks like cgi scripts can't be ran with itk, therefore a suexecusergroup option is in de vhost. I think this is overwritten by itk and thereafter cgi scripts won't work.
2. We use aliases like /webmail, /roundcube, /squirrelmail and some others. Within these directories itk is doing it's job and therefore webmail doesn't work.
I added this to the end of the vhost:
Code:
<IfModule mpm_itk_module>
AssignUserId user group
</IfModule>
</VirtualHost>
I managed to solve one of above issues by moving the new options into the directory directive, like this:
Code:
<Directory /home/<user>/domains/<domain>/public_html>
...
...
<IfModule mpm_itk_module>
AssignUserId user group
</IfModule>
</Directory>
Because the assinguserid only applies on /home/<user>/domains/<domain>/public_html directory and it's sub's, the webmail on other locations isn't touched by this setting.
AWstats still doesn't work, because the symlink resides in public_html.
What is the way to go to solve these issues, do the ones using mpm-itk face the same issues? Or did they solve them already? And how? AFAIK it's not possible to exclude extensions from directive, so we could specify that the assignuserid doesn't apply on .cgi .pl and .py files for example. You could match extensions with <FilesMatch>, but there no exclude parameter like ! afaik.
If you have any suggestions, please let me know. When everything works fine and I've did some additional tests I will post a howto. If you feel that assignuserid doesn't belong within the <directoy> directive, I really want to know, I couldn't find anything about it and it seems to solve some issues.