logo

Moving localhost virtuemart to live server

logo

For whatever reason you may have installed joomla on your localhost and then installed the virtuemart component locally as well.

This is all well and good but when it comes to moving your virtue mart installation to the live server you may notice one or two problems:

  • The component in the administrator section is pointing to localhost
  • all product images are pointing to localhost

So what do you need to do to fix this?

Simple:

  1. Locate the file administrator/components/com_virtuemart/virtuemart.cfg.php
  2. Go to around line 34 and locate the lines:
    define( ‘URL’, ‘http://localhost/mysite’ );
    define( ‘SECUREURL’, ‘http://localhost/mysite’ );
  3. Replace localhost with your production server URL’s
  4. Re-upload the virtuemart.cfg.php file
  5. Drink a beer

7 Responses to “Moving localhost virtuemart to live server”

  1. stanislavus says:

    Unfortunately after moving to server & following you guidelines the full images of the additional product images link to the localhost (the additional thumbnails & main images are OK). I have no idea how to fix it. Maybe you could help? (I was using akeeba back up when moving from localhost to server)

  2. Timby says:

    Hrm I haven’t personally come across this issue mate. The first thing I’d check is if in the database/source files there is any reference to localhost and if there is just update that to your production URL.

  3. Thanks for your sensible critique. Me and my neighbor were just preparing to complete some investigation about this. We received a grab a ebook from our local library but I believe I discovered more from this put up. I’m extremely glad to determine this kind of fantastic details getting shared freely on the market.

  4. ghos7mas7er says:

    Thank you so mch man… u are live saver!!

  5. Cydonian says:

    Thank you! That is a great solution!

  6. Moving from a locolhost install like a LAMP or WAMP server, or even IIS to a CentOS or Linux production server there will also be file and/or folder permission issues since those are not required in the windows setup.

    Anyone have a permissions chart that shows the correct files and folders permissions?

  7. I think other web-site proprietors should take this web site as an model, very clean and fantastic user genial style and design, as well as the content. You’re an expert in this topic!

Leave a Reply

logo
logo
Powered by Wordpress | Designed by Elegant Themes