What can I do about a hanging MyCollab installation?

MyCollab displays an initial setup screen a la Wordpress, but the installer hangs, regardless of how permissive I've set its directory to be.

When I test a database connection, it said that it can't make a connection. I have specified the database name, a user with access to that database, the corresponding password, and the address. If I click "Check connection" it says "Cannot connect to database. Recheck your input."

I am not sure what it's not connecting to. I can use a mysql -ufoo -p, giving the same credentials as I gave MyCollab, and telnetting to localhost on 3306 gets binary data that includes an intelligible MariaDB prompt. I can use the database from the command line.

What else should I be doing?


Solution 1:

Wanted to comment as this is not a direct answer, but I'm lacking the reputation to do so.

Assuming you are using the proper configuration and considering that you have tested it, the issue might lie elsewhere : Are you using SELinux on your system (type getenforce to check if it is Enforcing) ? If you do, it might be blocking the communication between your services. To know if it does, look in /var/log/audit/audit.conf for lines with status=denied.

If you can afford to temporarily disable some security features, the easiest way to fix the issues you may see in audit.conf is to use setenforce 0, re-attempt to connect your service to your database (it should work at this point), then create a new permission file audit2allow -a -M mycollab and register it in your system semodule -i mycollab.pp before re-enabling selinux setenforce 1.

Note that the files generated by audit2allow contain sensitive configuration and should be audited before being applied to your system if you are in a security-sensitive context.

For some more details on audit2allow's usage: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security-enhanced_linux/sect-security-enhanced_linux-fixing_problems-allowing_access_audit2allow