Check for ruid2 with CB 1.1/1.2

Version 1.431


Template changes in DA 1.43.0 added tokens for certain aspects, such as mod_ruid2, eg: |*if HAVE_RUID2="1"| <IfModule mod_ruid2.c> RMode config RUidGid |USER| |GROUP| RGroups apache |SECURE_ACCESS_GROUP| </IfModule> Where the HAVE_RUID2 token was new. This token is set to 1 if: mod_ruid2=yes is set in the options.conf for custombuild 2.0 (1.1 and 1.2 are not checked). Users who had manually installed mod_ruid2 and relied on the <IfModule mod_ruid2.c> would have run into issues with the 1.43.0 update. This fix will have DA make a manual check for all 1.1 and 1.2 Custombuild systems. The files: /etc/httpd/conf/httpd.conf /etc/httpd/conf/extra/httpd-includes.conf will be checked for this text: LoadModule ruid2_module And if that text exists anywhere in the file (even if it's commented out), then the HAVE_RUID2 token will be set to 1. Even if it's commented out, it doesn't matter much, as the <IfModule mod_ruid2.c> code will skip it when apache is started up. The whole point of the token was to make the httpd.conf files smaller, and to lower the amount of ram apache uses. It was noticed that the apache memory usage dropped quite a bit with fewer httpd.conf options.

Interested to try DirectAdmin? Get a 30-day Free Trial!