Virtualmin Pro Unable to Install opencart using the autoinstaller

In case of OpenCart 20 seconds is more than enough.

Ok, I’ll add that …

Will I get an update?

Yes, your system should receive updated version of OpenCart install script soon! Give it a try; it should fix your initial issue. However, I would like to point out that the bug is in OpenCart version 3.

Also, I think, you should use OpenCart 4 nowadays!

I need to use OC 3, as it is what is compatible with the addons I need.

As for update, when can I check? How do I know it updated?

You can try already.

Ok, seems to have worked.

Now, how to solve the another problem:

// HTTP
define(‘HTTP_SERVER’, ‘https://www.opencart.virtualmin.timetakernet.info/’);

// HTTPS
define(‘HTTPS_SERVER’, ‘https://www.opencart.virtualmin.timetakernet.info/’);

It is putting https://www.opencart.virtualmin.timetakernet.info in opencart’s configuration file causing cors errors on browser. By default, it’s supposed to be without www.

We don’t set those, OpenCart installer does. Could you just manually edit that record?

Yes, I can - but that is not the point here - I cannot tell webhosting users to edit it each time.

I took the time to do 2 manual installations on my opencart.virtualmin.mydomain.com host and things are as I guessed.

When I access https://opencart.virtualmin.mydomain.com the opencart script installs without www. If I use www to access the URL, cors kicks in and icons don’t show.

Same thing happens when I access https://www.opencart.virtualmin.mydomain.com - the opencart scripts installs with www. So If I want to use non-www, cors makes icons not to show as well.

So what I suppose is happening is that the automatic installer is always using WWW in front of the URL. There should be an option to choose this.

P.S. I think you may not be happy with me reporting these issues. So I request, if that’s the case please try to work with Softaculous team to get their autoinstaller working - as I haven’t had any problems with it and I will leave you alone. The autoinstaller is the only reason I bought pro…

Thanks for your time.

I am happy, I will look into fixing it. I agree, it supposed to work.

Thanks. I appreciate it. Please let me know when you have some info on it.

Alright, the real issue here is that your example.com domain was setup to redirect to www.example.com, while Virtualmin was making a request to example.com and it was failing.

I have added a new API on Webmin side and proposed a code change on Virtualmin side to use that new API, which should solve the problem for such setups.

I will mark this ticket as solved, and all further discussions should happen here:

@radi Thank you for your time and patience reporting it!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.