Couple of CB2 mod_ruid questions

Richard G

Verified User
Joined
Jul 6, 2008
Messages
13,500
Location
Maastricht
I just installed a new server and have a couple of questions regarding to custombuild 2.0 since I use it for the first time (always was on CB 1.2 until now).

1.) I activated mod_ruid and miss some things. Previous we had to change httpd.conf files like enable mod_ruid
Code:
#LoadModule ruid2_module       /usr/lib/apache/mod_ruid2.so
Which is (as you can see) commented out now in CB2's httpd.conf. Where is the module loaded instead?

2.) In httpd.conf we also had to put these lines:
Code:
# Mod_ruid
RMode config
RUidGid apache access
I don't see this anymore. Is mod ruid working OK without this or where is this setting residing now?

3.) Changes in like httpd-directories-new.conf (for webmail)
after </ifmodule> we had to add the webapps line:
Code:
</IfModule>
RUidGid webapps webapps
Is this not necessary anymore?

Then another question about webmail.
In directadmin.conf we could use the line:
webmail_link=webmail
is that line still valid for in directadmin.conf?
 
Firstly, I would like to mention that CustomBuild is a tool for automatic installation and configuration of the software provided, meaning that no manual changes are needed in configs to enable something. That's true for your case too, mod_ruid2 is a part of CustomBuild 2.0, and it automatically does all the configuration needed, so there is no need to worry about it.

1) httpd-phpmodules.conf
2) Yes, it will work fine without these lines in httpd.conf.
3) This change is not needed.

About the webmail_link=webmail, it's not recommended, as CB would try adding /webmail alias to point to /var/www/html/webmail.
 
Hello Martinas, thank you for the explanation.
However in custombuilds I also need some manual changes (like httpd-info, disable userdir directory's in httpd.conf and disable posix in the php configure) to finetune.

I have some additional questions.

1.) I checked that, and found some additional things which were not there before:
LoadModule ruid2_module /usr/lib/apache/mod_ruid2.so
Mutex sem
LoadModule mpm_prefork_module /usr/lib/apache/mod_mpm_prefork.so
a.) What is the "Mutex sem" line for?
b.) I can't recall the load of a prefork module before anywhere (in CB 1.2). Does it has something to do with preforking? Because I disabled preforking systemwide. So if this mod_prefork_module makes use of that, I could disable it to safe memory, or is it a different kind of preforking?

About the webmail_link statement.
Correct, but that is why I also make the change in the httpd-alias.conf like this:
Code:
Alias /webmail /var/www/html/roundcube
A lot of customers just forget the name of the webmail used and it's easyer to use http://www.domain.com/webmail to reach their webmail.
Unless you know an easier method to accomplish this?
 
Hello Martinas, thank you for the explanation.
However in custombuilds I also need some manual changes (like httpd-info, disable userdir directory's in httpd.conf and disable posix in the php configure) to finetune.
Yes, that's custom additional configuration :)

I have some additional questions.

1.) I checked that, and found some additional things which were not there before:

a.) What is the "Mutex sem" line for?
b.) I can't recall the load of a prefork module before anywhere (in CB 1.2). Does it has something to do with preforking? Because I disabled preforking systemwide. So if this mod_prefork_module makes use of that, I could disable it to safe memory, or is it a different kind of preforking?

About the webmail_link statement.
Correct, but that is why I also make the change in the httpd-alias.conf like this:
Code:
Alias /webmail /var/www/html/roundcube
A lot of customers just forget the name of the webmail used and it's easyer to use http://www.domain.com/webmail to reach their webmail.
Unless you know an easier method to accomplish this?

a) That's added to prevent http://help.directadmin.com/item.php?id=411 from happening.
b) Prefork is the default Apache 2.4 MPM module when running mod_ruid2 + mod_php. mod_php is not thread safe, so it couldn't be used with Event or Worker MPMs. Please check http://www.vps.net/blog/2013/04/08/apache-mpms-prefork-worker-and-event/ for more info, it seems to have it written in easy-to-understand manner.

And for webmail_link, you can use webmail_link=roundcube in directadmin.conf, and DA would add "Alias /webmail /var/www/html/roundcube" automatically that way for you (meaning domain.com/webmail would have no problems).
 
Thanks for the explanation again!

And for webmail_link, you can use webmail_link=roundcube in directadmin.conf, and DA would add "Alias /webmail /var/www/html/roundcube" automatically that way for you (meaning domain.com/webmail would have no problems).
I will try that again. Tried this on CB 1.2 servers and it did not work, that's why I changed the files.
 
Just added the webmail_link=roundcube in directadmin.conf, restarted DA, no alias added in httpd-alias.conf (neither by Directadmin itself), but it works like it should now.
Thank you!
 
Sorry, I forgot to restart apache, after restarting apache the webmail link does not work anymore.

Bug?

Solved: Instead of /etc/rc.d/init.d/directadmin restart, I now did service directadmin restart and now it works,
Sorry. :)
 
Last edited:
Back
Top