@robocoder opened this Issue on November 24th 2009 Contributor

On shared hosting, the db user typically won't have create database privilege.

If database creation fails, we can offer to use the cpanel xml api.

@robocoder commented on December 5th 2009 Contributor

We can try to auto-detect cpanel. Hints that cpanel may be present:

  • /usr/bin/spamassassin-cpanel
  • /etc/cpanel_exim_system_filter
  • $HOME/.cpanel/ e.g., dirname($_SERVER['DOCUMENT_ROOT']) . '/.cpanel'

Note: be mindful of possible open basedir restrictions.

@mattab commented on December 8th 2009 Owner

I think if users have cpanel, it is generally easy for them to create the DB anyway. I would say wont fix except if you feel like this is an issue for many users.

@robocoder commented on December 9th 2009 Contributor

This made a mess of databaseSetup() in Installation/Controller.php. (Deeply-nested try...catch blocks.)

Deferring...

This Issue was closed on December 9th 2009
Powered by GitHub Issue Mirror