converting a joomla site to joomla installed via "script"

I love that I can easily update ALL my clients using the Joomla script upgrader, however, for any sites that we imported from other hosts, or other platforms the script is not "installed"

How do I go about converting an existing Joomla site that we already host in Virtualmin to a Joomla version that was installed via the "script installer"? I want to ensure we upgrade ALL our customers to the latest Joomla for security patches, etc.

Status: 
Active

Comments

Howdy -- there unfortunately isn't a simple way to do that.

There's a "hacky" way that you could make it work -- though note that you could potentially run into problems with trying to get Virtualmin to manage an app it didn't install originally

It usually does work, though we'd suggest making a backup first.

Would you like an explanation as to how to manually edit some config files in the /etc/webmin/virtual-server/scriptlog dir in order to set that up? I ask as not everyone is comfortable editing config files, but if you don't mind doing that you shouldn't have too tough a time.

sure, I would like to try this...

Okay, here is what I would try.

In /etc/webmin/virtual-server/scriptlog, you'll see a bunch of directories with numbers. Those numbers all correspond to a particular domain ID. That is, each one of those belongs to one of your Virtual Servers.

You can see the domain ID's defined in /etc/webmin/virtual-server/domains.

What I would do, is perform a new install of Joomla into one of your domains that has an existing manual installation.

Install it into a new sub-directory, such as /joomla2/.

After you do that, you'll see a new .script file created for that domain in /etc/webmin/virtual-server/scriptlog/DOMAIN_ID/.

That file is the Install Script Definition.

Make a copy of that file, using any set of random numbers as the filename (followed by .script).

Then, edit that new file, and tweak all the variables in there so that it matches the parameters of your manually installed Joomla install.

That includes the path, database name, database username and password, URL, and so forth.

Once you're done, restart Webmin -- and then using Virtualmin, go back into the Virtualmin Install Scripts for that domain.

You should now see not only the Install Script you recently installed, but also a script that you just manually setup.

Once that manually setup script config appears correct, you can delete the newly installed Joomla instance, as that was only needed to get the .script file.

Does that all make sense?

the folders you listed above don't exist on my CentOS 7 installation...

Hmm, what output do you see if you run this command:

ls /etc/webmin

/etc/webmin/virtual-server/scriptlog doesn't exist on my system at all?? I have all the other folders listed, but no scriptlog

Do you have any other scripts installed (by Virtualmin) under this domain?