So I've spent the last 4 hours or so googling around, running through basic debugging, trying to connect with different tools, etc. And I'm at my wits end. This is a brand new test environment, so all systems are basically fresh. This is more of a "does this work?" test, than a "lets get this up and running perfectly and using absolute best practices"
VM 1:
hostname: owncloud
services: owncloud
open ports: 80/443
OS: Fedora 24 Server
VM2
hostname: mariadb
services: mariadb
open ports: 3306 (nmap confirmed)
OS: Fedora 24 Server
user: owncloud (allowed to connect from anywhere, %)
pass: owncloud
database name: owncloud
I can connect to the mariadb server with the owncloud user, and 'use owncloud' via my laptop, so I know its accepting remote connections.
Yet, when I try to do initial setup from owncloud, and specify
Database user: owncloud
Database password: owncloud
Database: owncloud
Database Host: mariadb.local
Owncloud shoots back:
Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] Permission denied
I'll admit, I know very little about MYSQL/MariaDB, so I'm not really sure where to start debugging this beyond what I've done so far. The part that confuses me the most is the fact that connecting via client works fine.
Edit: solved. Selinux boolean "httpd_can_network_connect" needed to be true.
[link] [comments]