Saturday, May 11, 2013

Magento Commerce development environment on Windows


Step 1: Windows stack for PHP development

There are two popular bundled solutions available which comes with everything you need to run a PHP application (E.g. Apache, MySQL, PHP)

Download wampserver for windows or xampp
http://www.wampserver.com/en/
http://www.apachefriends.org/en/xampp-windows.html

wamp installation should be straight forward, click through the screens and once the installation is done you should find a wampserver tools on the system tray as show in the screenshot below, you can start all the services by clicking on the last option on the menu "Put Online", once it is started type http://localhost on the browser and you should be able to see default wamp server page.






Edit php.ini file to include following entry in F:\wamp\bin\apache\apache2.2.22\bin\php.ini


This will enable xdebug which will be later used from eclipse for debugging PHP application.

[xdebug]
xdebug.remote_enable = true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable = true
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "f:/wamp/tmp"


Step 2: Eclipse IDE for PHP development


For existing eclipse install you can install Eclipse PDT Plugin as follows, This will install PHP development perspective into the existing eclipse environment, if you don't have an existing eclipse setup you can download it from http://projects.eclipse.org/projects/tools.pdt

For existing eclipse setup you can install PDT plugin as follows.
Help -> Install New Software


Create a new PHP project, notice the directory location, this should point to www folder inside the wamp installation folder.


You can download the latest version of Magento zip from this location http://www.magentocommerce.com/download
Once the project is created import all the files from magento folder, After you import the package you may notice DLTK indexing takes long time to finish, this is a trade off.


If you let it complete it helps you with autocompletion else you can disable it by partially disabling packages in magento that should not be indexed, exclude packages as shown in the screenshot below.




Before we runt he application make sure PHP executable is configured to make use of php engine in WAMP installation folder, it should appear as shown in the screenshot below.





Now you can click on the index.php and launch it as shown in the screen shot below, for debugging you should select "Debug As" ->"PHP Web Application", This should bring up Magento install page with eclipse debugger view.




18 comments:

  1. good job......it's easy to understand.....
    thanks for this post.
    _____________________________________
    Magento Web Development India

    ReplyDelete
  2. Hi the information on this blog is just amazing it keeps us coming back time and time again ,personally i met my wife using this site so i couldnt love it any more i have done my best to promote this blog as i feel that others need to see this thang ,cheers for all your effort spent in making this fabulous site

    ReplyDelete
  3. Thanks for sharing as it is an excellent post would love to read your future post
    Magento ecommerce Developer

    ReplyDelete
  4. Thanks for the good explanation. As a Magento developer it is very useful for me and I don't have hands on Windows. It is a new information I learnt today with coding

    ReplyDelete
  5. Your current material consistently uses a lot of really up to now details. Where do you come up with this? Just saying you are very amazing. Thanks againMagento Web Development Company Bangalore

    ReplyDelete
  6. Great post on Magento commerce development. I found very useful info from this post. Thank you very much.

    Magento Development Company

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. Great Read! I am impressed on how you make your article easy to understand. I'll come back for more :D

    Japs Buidon is a Social Media Specialist and belongs to a team of Magento Developer in Florida. For more tutorial and tips you can follow him here -> alwaysopencommerce.com

    ReplyDelete
  9. I would like to thank you for sharing this great information with us. Thanks for nice post. Website Design Company Bangalore | Web Designing Bangalore

    ReplyDelete
  10. magento website are developed so that the website looks attractive and with modernized look.Magento Development India

    ReplyDelete
  11. It is complicated to me now, the efficiency and significance is annoying. Thanks for sharing. Magento Development Companies in Bangalore

    ReplyDelete
  12. Magento provides enhanced browsing experience to the visitors through features like multiple images per product, zoomed images, product reviews, stock availability, option of sharing the product with friends via email and other related capabilities.
    Web Design Company in Bangalore | Logo Design Company in Bangalore

    ReplyDelete
  13. It was very nice blog to learn about Selenium.Thanks for sharing new things.selenium training in chennai

    ReplyDelete
  14. Very interesting blog to read. You are providing very informative tips to us. Thanks for sharing Web Development Company Bangalore

    ReplyDelete
  15. Why To Approach Magento Web Development Company? Ask me Benefits of Working With Magento Web Development Magento, formed on open-source platform, is a Best feature-rich e-commerce technology with the help of which online merchants can control over the content, look and functionality of their e-commerce store. In order to give a similar kind of environment and experience to users on desktops, laptops, tablets and Smartphones an individual website is designed by Magento developers. Source-https://www.acmewebtechnology.com/blog/benefits-of-working-with-magento-web-development-service-provider

    ReplyDelete
  16. nice post Vendorzapp Compnay provides Mobile apps for small business, Ecommerce android apps India, iOS ecommerce apps, Ecommerce website Pune, Ready ecommerce website and apps. Android ecommerce apps then visit now Ecommerce android apps India, iOS ecommerce apps, ecommerce website for small business call us +91-9850889625

    ReplyDelete