bagio_error

[Solved] CPanel failed to expand condition

I’ve a problem with mailbox permission, but the root of case isn’t permission in mailbox directory but the problem caused by configuration files couldn’t read by user. Please¬†the following error logs:

2012-10-27 11:10:47 H=([127.0.0.1]) 92.239.28.234]:3289 sender verify defer for <[email protected]>: require_files: error for /home/bagio/etc/bagio.co.id: Permission denied
2012-10-27 11:11:19 H=([192.168.5.6]) [122.248.36.18]:3365 sender verify defer for <[email protected]>: require_files: error for /home/bagio/etc/bagio.co.id: Permission denied

and also the following errors:

2012-10-27 11:08:55 failed to expand condition “${if eq {${lookup {$local_part} lsearch {${extract{5}{:}{${lookup passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/etc/$domain/passwd}}}{} {false}{${if exists {${extract{5}{:}{${lookup passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/etc/$domain/$local_part/.boxtrapperenable} {true} {false}}}}” for virtual_boxtrapper_user router: failed to open /home/bagio/etc/bagio.co.id/passwd for linear search: Permission denied (euid=47 egid=12)
2012-10-27 11:08:55 failed to expand condition “${if eq {${lookup {$local_part} lsearch {${extract{5}{:}{${lookup passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/etc/$domain/passwd}}}{} {false}{true}}” for virtual_user router: failed to open /home/bagio/etc/bagio.co.id/passwd for linear search: Permission denied (euid=47 egid=12)
2012-10-27 11:13:33 1TRxlx-0000YV-2N spam acl condition: cannot parse spamd output
2012-10-27 11:17:45 failed to expand condition “${if exists {$home/etc/$domain/quota}{${if > {${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{0}{${if eq {${if exists {$home/mail/$domain/$local_part/maildirsize}{1}{0}}}{0}{${if > {${run {/usr/local/cpanel/bin/eximwrap GETDISKUSED $local_part $domain}}}{${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{true}{false}}}{${perl{checkuserquota}{$domain}{$local_part}{$message_size}{${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}}}{$home/mail/$domain/$local_part/maildirsize}}}}}{false}}}{false}}” for virtual_user_maildir_overquota router: failed to open /home/bagio/etc/bagio.co.id/quota for linear search: Permission denied (euid=47 egid=12)
2012-10-27 11:17:45 failed to expand condition “${if eq {${lookup {$local_part} lsearch {${extract{5}{:}{${lookup passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/etc/$domain/passwd}}}{} {false}{${if exists {${extract{5}{:}{${lookup passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/etc/$domain/$local_part/.boxtrapperenable} {true} {false}}}}” for virtual_boxtrapper_user router: failed to open /home/bagio/etc/bagio.co.id/passwd for linear search: Permission denied (euid=47 egid=12)
2012-10-27 11:17:45 failed to expand condition “${if eq {${lookup {$local_part} lsearch {${extract{5}{:}{${lookup passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/etc/$domain/passwd}}}{} {false}{true}}” for virtual_user router: failed to open /home/bagio/etc/bagio.co.id/passwd for linear search: Permission denied (euid=47 egid=12)

Ok, the following step will fix the problem in above:

1. Force to change the ownership of user directory, this step is required when cpanel fixperms script doesn’t work.
# chown -R bagio.bagio /home/bagio

2. Then fix directory permission using /scripts/fixperms
# /scripts/fixperms -a bagio

If the steps in above doesn’t work, please submit a ticket to tickets.cpanel.net or send your root password to me and I’ll try help as I can.
Hope this help.


[Solved] error : virNetServerMDNSStart:460 : internal error Failed to create mDNS client: Daemon not running

Today I’m getting error when trying to start libvirtd with the following error messages from /var/log/libvirtd.log

2012-09-19 06:56:19.400+0000: 3749: error : virNetServerMDNSStart:460 : internal error Failed to create mDNS client: Daemon not running

Please use the following steps to fix it:
yum -y install avahi
service messagebus start
service avahi-daemon start
service libvirtd start

Avahi-daemon registers local IP addresses and static services using mDNS/DNS-SD and provides two IPC APIs for local programs to make use of the mDNS record cache the avahi-daemon maintains. First there is the so called “simple protocol” which is used exclusively by avahi-dnsconfd (a daemon which configures unicast DNS servers using server info published via mDNS) and nss-mdns (a libc NSS plugin, providing name resolution via mDNS). Finally there is the D-Bus interface which provides a rich object oriented interface to D-Bus enabled applications. (linux.die)


error_fpm

PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp)

This article referring to another article that not published yet, I had some issue with session.save_path in php-fpm setup. For security improvements¬† I want to make PHP execute under individual user accounts insted of a system user like nginx (default www user and group). In apache environments I can use suPHP or suExec and in Nginx I can use php-fpm with custom “pool” each web server and that makes PHP scripts executed by owner and groups that describe in each pool. Continue reading “PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp)” »