What about the owner/group of the file default_pref itself
With many thanks:
Code:
-rwxrwx--- 1 webapps webapps 41 Feb 7 2007 default_pref
Last edited:
What about the owner/group of the file default_pref itself
-rwxrwx--- 1 webapps webapps 41 Feb 7 2007 default_pref
# usermod -s /bin/bash webapps
# grep webapps /etc/passwd
webapps:x:501:502::/var/www/html:/bin/bash
# su - webapps -c 'id'
uid=501(webapps) gid=502(webapps) groups=502(webapps)
# su - webapps -c 'stat /var/www/html/squirrelmail/data/default_pref'
File: `/var/www/html/squirrelmail/data/default_pref'
Size: 41 Blocks: 8 IO Block: 4096 regular file
Device: fc02h/64514d Inode: 141079 Links: 1
Access: (0770/-rwxrwx---) Uid: ( 501/ webapps) Gid: ( 502/ webapps)
Access: 2012-08-14 14:32:44.000000000 +0700
Modify: 2007-02-07 14:59:00.000000000 +0600
Change: 2012-08-24 13:27:25.000000000 +0700
# usermod -s /bin/false webapps
you could do the following in a root shell:
Code:# usermod -s /bin/bash webapps [code]# su - webapps -c 'stat /var/www/html/squirrelmail/data/default_pref' File: `/var/www/html/squirrelmail/data/default_pref' Size: 41 Blocks: 8 IO Block: 4096 regular file Device: fc02h/64514d Inode: 141079 Links: 1 Access: (0770/-rwxrwx---) Uid: ( 501/ webapps) Gid: ( 502/ webapps) Access: 2012-08-14 14:32:44.000000000 +0700 Modify: 2007-02-07 14:59:00.000000000 +0600 Change: 2012-08-24 13:27:25.000000000 +0700
(here we check whether the user can read the file)
Code:# usermod -s /bin/false webapps
(here we change back temporary allowed shell access for webapps user)
If the user webapps is allowed to access the file, and there is NO system level restrictions, then I'd say your apache is miss-configured.
[root@ser ~]# usermod -s /bin/bash webapps
usermod: no changes
[root@ser ~]# su - webapps -c 'stat /var/www/html/squirrelmail/data/default_pref '
File: `/var/www/html/squirrelmail/data/default_pref'
Size: 41 Blocks: 8 IO Block: 4096 regular file
Device: fd02h/64770d Inode: 11539047 Links: 1
Access: (0770/-rwxrwx---) Uid: ( 501/ webapps) Gid: ( 502/ webapps)
Access: 2013-03-02 15:27:45.047978103 +0330
Modify: 2007-02-07 12:29:00.000000000 +0330
Change: 2013-03-06 15:11:01.278986859 +0330
Thank again.
I tried codes, problem not solved. and not sure about result:
If you think problem is apachi, is there any solution?
./build set mod_ruid2 yes
./build set php1_release mod_php
I wrote the article on http://wiki.amservers.nl/Mod_ruid2
It should be the best way to install mod_ruid2 if you run custombuild 1.2 (it is still the latest stable). Only if you have Custombuild 2.0 you don't have to follow any guide here, it has it included.
I recommend recompiling php with that posix line for extra safety. It is not mandatory for mod_ruid2 to work.
You don't need to copy the vhost files, DA already has the mod_ruid2 modifications in the vhost files by default (it also says that in the article)
The directadmin templates changed much since the HowTo were written, for now if you use CB.2 you don't need to follow the guide, just set:
Code:./build set mod_ruid2 yes ./build set php1_release mod_php
and build php.
The directadmin templates changed much since the HowTo were written, for now if you use CB.2 you don't need to follow the guide, just set:
Code:./build set mod_ruid2 yes ./build set php1_release mod_php
and build php.
i did have same issue with whmcs.. i think whmcs installer or updated do this changes, but reverting back to 755 to me did work and whmcs doenst complain
Regards
That is the major feature of it, 777 should not be necessary. But if your whmcs files are currently not owned by the DA user but instead apache for example, it would still need 777. So check if the file owner/group is the DA username. If not you need to make the owner/group the DA user. You can do that with the commands listed under 'Converting an existing envoirment' at the wiki.
Also WHMCS may be buggy in not recognizing if it actually has writing rights rather then checking other factors.