Textpattern install fails on creating database

Hello! I have this virtual server which has one database available, which is not created yet. Textpattern 4.2.0 install fails, it says there are no rights to add other databases (or something similar). However, the server has the right to add one database. So if i go to the Edit Databases page and create the database manually, textpattern install will work fine then.

Status: 
Closed (fixed)

Comments

Could you post the exact error message that you are seeing? I'm not sure if this warning is coming from Virtualmin, MySQL, or Textpattern ..

I have the same problem now with another client that wanted to install Joomla. The error seems to come from Virtualmin. It seems that Virtualmin thinks the installer script is not allowed to create a database because the client has reached its limit, which it has not. The client has a limit of 1 database, and currently has 0 databases.

So if you go to the List Databases page for that domain, it doesn't show any DBs at all?

If it shows exactly one, you could just select that as the DB for new Joomla install ..

exactly, it shows none. so actually the install script should create the database automatically, but for some reason it thinks it is not allowed to and returns that error. so i have to create a database manually first in order to be able to install a script making use of mysql.

Ok, I see the bug now ... this will be fixed in the Virtualmin 3.78 release.

could you maybe provide me with a patch against version 3.77, in case it is a minor thingy? :)

Sure .. just edit /usr/{libexec,share}/webmin/virtual-server/scripts-lib.pl and change line 548 from :

if ($dleft == 1) {

to :

if ($dleft == 0) {

then run /etc/webmin/restart

thank you very much! :)

Automatically closed -- issue fixed for 2 weeks with no activity.