MOD_RUID2 installed nut not working??

pinooo

Verified User
Joined
Dec 1, 2004
Messages
15
Hi all,

I have set MOD_RUID2 yes in the options of Custombuild 2.0, and run
./build all d
./build rewrite_confs

But when test it with this simple php file in a public_html folder I get an permission error.

PHP:
<?php
mkdir('ruidtest');
file_put_contents('ruidtest/test.txt', 'Hello!'); 
?>

How can I test if MOD_RUID2 is working?

The "grep 'mod_ruid2' /etc/httpd/conf/httpd.conf" command does not give any output.

Custombuild display's this in the options "mod_ruid2: 0.9.8" and php "PHP (default): 5.6 as mod_php"

What am I missing ?!
 
I have set MOD_RUID2 yes in the options of Custombuild 2.0, and run
./build all d
./build rewrite_confs
You forgot the most important one. Should have done "./build update" as very first.

Edit: If you did this and got a permission denied on the test file, it's working.

You can also test by installing for example Wordpress or something else which request chmod 777 directory's, and only chmod them 755.
If Wordpress does not complaint it's not 777 (or files 644 instead of 666) then it's ok.
 
Last edited:
Sorry I made a mistake.
If Ruid is working, the directory ruidtest should be made. However you have to first chown the ruid.php file to the da account.

If it's not working, do ./build update first and then the other 2 commands, then it should work and you can use the test php file to test it. Or like I said with a CMS and not using 777 or 666.
 
Thanks for helping me out... :)

But I still get an permission error and testing with Wordpress give's me the same error's. No permission. The folders and files are owned by the correct user for that domain.

I have tried the exact same steps on a different server and that works without a problem...

What is going wrong here?

PHPInfo tells me the mod ruid module is loaded...

Any log files to check ?
 
Is it an older install that you upgraded to CB2/mod_ruid2? In that case, you may have custom templates present in either /usr/local/directadmin/data/templates/custom/ or /usr/local/directadmin/custombuild/custom/ that may prevent the ruid settings from being loaded.
 
@arieh

I think this is indeed the case, there are files in the directadmin custom directory. It is an older directadmin installation, with previous CB and mod_ruid2. What to do next?

Can they all be deleted / moved ? The dates are from 2012....
 
If you only made them for the old mod_ruid you can delete them or if you want to be sure, backup them to some save place.
After that you have to run the ./build update and ./build mod_ruid2 again and after that maybe ./build rewrite_confs, or if you rather do a ./build all d that's also possible but takes longer.
 
Back
Top