chown webapps:webapps /var/www/html -R
dr-xr-x--- 9 webapps apache 4.0K Jul 18 18:55 www
I can't see httpd-directories.conf on /etc/httpd/conf/extra/To be sure the webmail clients etc still works we need to change the owner permissions
Edit by NoBaloney; see posts 324 and 325, page 17 of this thread:
And last you need to modify httpd-directories.conf
Add the RUidGid line below between the <Directory "/var/www/html"> and </Directory>Code:nano -w /etc/httpd/conf/extra/httpd-directories.conf
Code:<Directory "/var/www/html"> Options -Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all <IfModule mod_suphp.c> suPHP_Engine On suPHP_UserGroup webapps webapps SetEnv PHP_INI_SCAN_DIR </IfModule> RUidGid webapps webapps </Directory>
Error opening ../data/default_pref
Default preference file not found or not readable!
Please contact your system administrator and report this error.
Now follow the steps below for each virtual_host2 file you've copiedCode:cd /usr/local/directadmin/data/templates/custom/
nano -w virtual_host2.conf
## replace line: SuexecUserGroup |USER| |GROUP|
## replace with: #SuexecUserGroup |USER| |GROUP|
## Add the lines below under the just replaced line
RMode config
RUidGid |USER| |GROUP|
RGroups apache
<IfModule !mod_ruid2.c>
#SuexecUserGroup |USER| |GROUP|
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid |USER| |GROUP|
RGroups apache |SECURE_ACCESS_GROUP|
</IfModule>
Thanks AndreaSince DA now install via CB 2 mod_ruid2, i suppose your default templates should work with mod_ruid2 without need to edit them.
Be sure you do have just latest DirectAdmin.
Regards
Thanks and let me ask some questions:
1:
I can't see httpd-directories.conf on /etc/httpd/conf/extra/
should I create it?
I have error on SquirrelMail:
-----------------------------Code:Error opening ../data/default_pref Default preference file not found or not readable! Please contact your system administrator and report this error.
2:
Im using vi editor and just comment this line:
SuexecUserGroup |USER| |GROUP| with # is it enough?
this is part of my virtual_host2*:
Code:<IfModule !mod_ruid2.c> #SuexecUserGroup |USER| |GROUP| </IfModule> <IfModule mod_ruid2.c> RMode config RUidGid |USER| |GROUP| RGroups apache |SECURE_ACCESS_GROUP| </IfModule>
Safe Mode is kinda useless: http://ilia.ws/archives/18_PHPs_safe_mode_or_how_not_to_implement_security.html
And from php itself:
This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
This means if you have php 5.3 it already gives you an warning that you shouldn't use it, in 5.4 you even can't.
<Directory "/var/www/html">
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<IfModule mod_suphp.c>
suPHP_Engine On
suPHP_UserGroup webapps webapps
SetEnv PHP_INI_SCAN_DIR
</IfModule>
RUidGid webapps webapps
</Directory>
chown -R webapps:webapps squirrelmail
chown -R webapps:webapps /var/www/html/squirrelmail/data
cd /usr/local/directadmin/scripts/
./set_permissions.sh email
touch /var/www/html/squirrelmail/data/default_pref
cd /usr/local/directadmin
cd custombuild
./build squirrelmail
cp: `/var/www/html/squirrelmail/data' and `/var/www/html/squirrelmail-1.4.22/data' are the same file
SquirrelMail 1.4.22 installation is done.
SquirrelMail version 1.4.22
By the SquirrelMail Project Team
ERROR
Error opening ../data/default_pref
Default preference file not found or not readable!
Please contact your system administrator and report this error
ls -ld /var/www/html/squirrelmail/data/
ls -ld /var/www/html/squirrelmail/
ls -ld /var/www/html/
ls -ld /var/www/
ls -ld /var/
drwxrwx--- 2 webapps webapps 135168 Mar 4 17:00 /var/www/html/squirrelmail/data/
drwxr-xr-x 16 webapps webapps 4096 Mar 2 15:27 /var/www/html/squirrelmail/
drwxr-xr-x. 5 webapps webapps 4096 Mar 2 15:27 /var/www/html/
dr-xr-x---. 9 webapps apache 4096 Dec 3 2011 /var/www/
drwxr-xr-x. 23 root root 4096 Jan 12 2012 /var/