installer script for Joomla 1.0.15 fails to install if the virtual server's password has been changed but not the MySQL password

installer script for Joomla 1.0.15 fails to install if the virtual server's password has been changed but not the MySQL password.

Joomla 1.7 installer runs fine in that condition, but joomla 1.0.15 installer appears to be "backwards-compatibility wise broken": Looks like old installer script for Joomla 1.0.15 needs to be udpated to the new method of getting database password

Status: 
Closed (fixed)

Comments

Hi Joe and Jamie, btw, Nick (nant) works with me, so that you can see all the Virtualmin Pro licenses. ;-) And i could confirm the issue.

Was the password change done within Virtualmin? The Joomla installer should support different DB and domain passwords, but only if the change was made at Edit Databases -> Passwords, so that Virtualmin knows about it..

The hosting plan is set to not change the database password when the webmin password is changed. Database password hasn't been changed, but webmin's has.

Joomla 1.7 installs fine. Only Joomla 1.0.15 doesn't.

Joomla 1.0.15 maybe has an older virtualmin installer that takes the webmin password for database ?

I remember something related to database password in joomla installer was fixed in the installer API around a year ago...

The installer code uses the same password for both Joomla 1.0.15 and 1.7 ..

What is the exact error message you are getting when installing (or after) ?

Beat asked me to post error message when trying to install Joomla 1.0.15:

Install Script
In domain j1015.cbdemosites.com Found http://joomlacode.org:80/gf/download/frsrelease/6828/22537/Joomla_1.0.15... in cache ..

Configuring Apache PHP settings .. .. done

Applying web server configuration .. .. done

Now installing Joomla version 1.0.15 ..

Database connection failed : DBI connect failed : Access denied for user 'j1015admin'@'localhost' to database 'j1015admin_joomla' 1360.

.. failed! See the error message above for the reason why.

<- Return to list of scripts

And here is successful Joomla 1.7 script run messages:

Install Script
In domain j1015.cbdemosites.com Found http://joomlacode.org:80/gf/download/frsrelease/15278/66554/Joomla_1.7.0... in cache ..

Configuring Apache PHP settings .. .. already done.

Now installing Joomla version 1.7.0 ..

Joomla installation complete. Go to http://j1015.cbdemosites.com/administrator/ to manage it.

More information on using this script can be found at http://joomlacode.org/.

The initial administration login is j1015admin with the password XXXXXX

.. done

Re-loading Webmin .. .. done

That is really odd ... were both installs using the same database, and in the same domain?

The code in the installer that runs the SQL is the same for all Joomla versions.

Yes, both installs use the default script settings which is set to create a new database. No databases exist on this domain before script running.

Any chance I can login to this system myself and try a test install to see what is going on?

How can I privately send you credentials?

Ok, I see the problem now .. the error happens when you install Joomla 1.0 and are creating a new DB at the same time. The work-around is to create the DB first, then select it when installing..

I will also fix this in Virtualmin 3.88

Thank you Jamie, really appreciated :-) Beat

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