Can we test extensions on localhost?

Find out what you need to know about the different types of magento hosts and how to pick a reputable and suitable hosting provider to fit your magento store needs.

Can we test extensions on localhost?

Postby dweeves » Fri Oct 04, 2013 9:57 am

We need to test the extension in our localhost enviroment. Is it possible considering that Plumrocket only issues licenses for live domains and testing subdomain and not localhost or 127.0.0.1?
dweeves
 
Posts: 8
Joined: Fri Sep 27, 2013 1:14 am

Re: Can we test extensions on localhost?

Postby AlexMalex » Fri Oct 04, 2013 10:15 am

EDIT (02.09.2015):
From now on you can test extensions on localhost. No further actions needed. Please disregard all steps below. See this FAQ for more info.



Hello dweeves,

True, we do not issues licenses for localhost due to security issues and piracy.

However there is still a legal way for you to test your site on your localhost. Here is what you can do:


1. Contact Plumrocket tech support (https://store.plumrocket.com/contacts/) and request additional testing license for a subdomain.

So if your "live domain" is "domain.com" then testing license can be anything like: "test.domain.com" or "dev.domain.com" or even "localhost.domain.com".

Remember: you can use up to three testing subdomain with each extension purchased on our store.


2. Now follow this link http://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/ to see 3 examples for each OS type (Windows, Ubuntu, Mac OS). You will need to edit "hosts" file in your OS. I have also attached pdf copy of How-To Geek page in case if it will not work for you.

The basic idea is to find this line in hosts file:

127.0.0.1 localhost


add your testing subdomain and save hosts file, so your file looks like this:

127.0.0.1 localhost test.domain.com


Where test.domain.com is your testing subdomain.

Now open test.domain.com in your browser and it should load from your localhost webserver.

Hope this helps!

Regards,
Alex
User avatar
AlexMalex
Site Admin
 
Posts: 39
Joined: Mon Jul 15, 2013 5:30 am

Re: Can we test extensions on localhost?

Postby dweeves » Fri Oct 04, 2013 10:58 am

Thanks... We will try.
dweeves
 
Posts: 8
Joined: Fri Sep 27, 2013 1:14 am

Re: Can we test extensions on localhost?

Postby dweeves » Tue Oct 15, 2013 3:25 am

Hi AlexMalex,

Your suggestion worked well!!! Thanks!

However, if I wanted to have two testing sites on localhost. Is it possible?

Thanks.
dweeves
 
Posts: 8
Joined: Fri Sep 27, 2013 1:14 am

Re: Can we test extensions on localhost?

Postby AlexMalex » Tue Oct 15, 2013 10:47 am

Hello dweeves,

Yes, of course.

You just need to create two virtual hosts on your local machine.

As an example you can use this article for Mac OS X - http://davidwalsh.name/create-virtual-host I also attached a pdf copy of this article.

This is example for Windows - http://foundationphp.com/tutorials/apache22_vhosts.php

You can also use this shell script for Mac OS to create virtual hosts - https://code.google.com/p/virtualhost-sh/

Or this bat script for Windows -
http://taat.pl/article/virtual-host-manager/

Best Regards,
Alex
Attachments
Create_a_Virtual_Host.pdf
(104.87 KiB) Downloaded 760 times
User avatar
AlexMalex
Site Admin
 
Posts: 39
Joined: Mon Jul 15, 2013 5:30 am

Re: Can we test extensions on localhost?

Postby dweeves » Wed Oct 16, 2013 3:58 am

It worked again! thanks!
dweeves
 
Posts: 8
Joined: Fri Sep 27, 2013 1:14 am

Re: Can we test extensions on localhost?

Postby yasar » Sat May 09, 2015 7:59 am

some extension it can possible but payment integration exension we cant access on localhost
yasar
 
Posts: 1
Joined: Wed May 06, 2015 9:01 am


Return to Magento Web Hosting

Who is online

Users browsing this forum: No registered users and 1 guest

cron