Change /var/www/html/owncloud/config/config.php database host to 127.0.0.1 instead of localhost
/var/www/html/owncloud/config/config.php
127.0.0.1
localhost
No Comments