Phpmyadmin notworking after cb update to 1.441

Djunity

Verified User
Joined
Mar 9, 2008
Messages
243
Location
Holland
Hi,

After updating direct admin to latest release (1.441) we notice some issues with certain functions.
We use mod_ruid2 with cb.

If customers want to go to /phpmyadmin/ or /webmail/ or want to use sendmail it doesn't work any more.
My guess is that it comes by the change in feature: http://www.directadmin.com/features.php?id=1514

This is fixable by using custom virtual_host2* files and redo this security update but then we have to manualy update the vhost files and that is not something you want.
The other hand is a security update is always good but it takes away the user freedom on the system this way.

I hope to get some good response and thoughts or maybe even a work around.
 
Hello,

A few things:
1) With mod_ruid2, the /var/www must be 755 as mentioned in tip #14:
http://help.directadmin.com/item.php?id=247

2) However, we had already found/fixed (but not released) a bug in:
/usr/local/directadmin/scripts/custombuild.sh
for fresh installs that sets it to 750 webapps:apache (if my memory is correct).
CustomBuild itself sets the correct values, but the script that calls it for install time follows it up with an incorrect override.

Manually setting /var/www to 755 should fix it... or re-compiling apache will also reset.

The issue is actually with how mod_ruid2 works, in that before dropping permissions to webapps, it's looking into /var/www/html as the default VirtualHost User.
I tried a few combinations of <directory> and <location> tags to try and isolate each one to have the VH run as apache or something else, but have yet to find a combination that allows /var/www to be set to 750 with mod_ruid2.

John
 
@John, This is really confusing statements. All my servers have /var/www set to permission 551 and Group: apache Owner: webapps. I have not changed those permissions myself, it is default from DirectAdmin install. I am using mod_ruid2 in cb 2.0. I do not have any problems.

But you say "With mod_ruid2, the /var/www must be 755", and that confuses me. I have 551 on var/www, it is default permission from install, I do not have any problems.
 
I'm also running mod_ruid2 with 0551 and group apache owner webapps, no issues. I checked and I have RGroups @none in my user httpd.confs.
 
Back
Top