because "/etc/motd" is a file, not a directory, and therefore can't "contain" "/foo".
This can happen when creating a unix domain socket with socket(2) and bind(2) or connect(2) for the same reason, (you're trying to create a socket like /etc/motd/foo where motd is a file not a directory).
lib/main.php:944: Notice: PageInfo: Cannot find action page