the permission denied error ususally means that your php is congifured not to allow connections to be made. search the net for "php Failed to connect socket: Permission denied" or similar and you will get some suggestions.
also i notice you are trying to port 110, thats is normally POP3, roundcube is an IMAP client. it will not cause the permission denied errors but once you get those sorted you'll need to use the right port.