For those of you getting weird errors in your logs from /var/www/html/webmail/tmp where the error is related to CANNOT LSTAT you will be relieved to know there is a very simple fix for it.
The script /webmail.sh has a bug in it so when your webmail is installed on a new server the tmp permission is wrong.
The script does a chmod 700 on /var/www/html/webmail/tmp. Thats wrong, it should be chmod 755 /var/www/html/webmail/tmp.
If you are getting CANNOT LSTAT /var/www/html/webmail/tmp ijn your logs go type;
chmod 755 /var/www/html/webmail/tmp and your errors will go away.
webmail.sh should be;
not
Maybe the DA crew should fix this issue as it occurs on all new installations and leads to annoying errors in the logs. The question about why this occures has been asked in the forums OVER AND OVER and nobody from DA has bothered to offer a fix, at least i havent found a post releated to fix. Its simply been ignored.
The script /webmail.sh has a bug in it so when your webmail is installed on a new server the tmp permission is wrong.
The script does a chmod 700 on /var/www/html/webmail/tmp. Thats wrong, it should be chmod 755 /var/www/html/webmail/tmp.
If you are getting CANNOT LSTAT /var/www/html/webmail/tmp ijn your logs go type;
chmod 755 /var/www/html/webmail/tmp and your errors will go away.
webmail.sh should be;
Code:
$TAR xzf ${FILE} -C ${DEST}
$MKDIR -p $TMPDIR
[B]$CHMOD -f -R 755 $TMPDIR;[/B]
$CHOWN -f -R apache:apache $TMPDIR;
not
Code:
$TAR xzf ${FILE} -C ${DEST}
$MKDIR -p $TMPDIR
$CHMOD -f -R 700 $TMPDIR;
$CHOWN -f -R apache:apache $TMPDIR;
Maybe the DA crew should fix this issue as it occurs on all new installations and leads to annoying errors in the logs. The question about why this occures has been asked in the forums OVER AND OVER and nobody from DA has bothered to offer a fix, at least i havent found a post releated to fix. Its simply been ignored.
Last edited: