
My father wanted to try out b2evolution. Oh my god...
He was not able to login. With the help of ethereal we found out that b2evolution uses the following line of code to determine your cookie domain:
$cookie_domain = ($basehost == 'localhost') ? '' : '.'. $basehost;which will not work when you have a local net with hostnames such as "linux1" because this tries to restrict the cookie to .linux1.
Changing it to
$cookie_domain = '';worked like a charm.
Why is there not a single PHP program that just works? Is it the language that invites you to write crappy code, or is it the users of PHP that have no clue?
zsh: can't write history file /root/.zsh/history
You'll get this error message on logout when your ssh login is to a userid which may not write your home directory (such as staff_t, when logging into root whose files usually are sysadm_home_r).
Here's a simple workaround for you zsh users:
if id | grep -q sysadm_r; then
export SAVEHIST=1500
export HISTFILE=~/.zsh/history
export HISTSIZE=1500
fi
This will only enable history when you are sysadm_r.Bash users probably can use
if ! id | grep -q sysadm_r; then
shopt -u cmdhist
fi