Announcement

Collapse
No announcement yet.

How to install Magento on Local host – XAMPP ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to install Magento on Local host – XAMPP ?


    http://www.simicart.com/ - Best mobile shopping apps for magento

    Thanks for visiting Magento tutorial for novices, as you may know, When setting up Magento, we frequently have a lot of questions because we miss some steps or even the author don’t provide you with all of the steps to possess a easy installation. Today, I provides you with a visible installation procedure for How you can install Magento on Local host - XAMPP - The most popular and effective but additionally very light local host .
    Summary of tutorial:
    • Before the installtion
    • Step 1ownload and install XAMPP
    • Step 2: Change your host file
    • Step 3: Create a MySQL database using PhPadmin
    • Step 4: Install Magento on Local host XAMPP
    BEFORE THE INSTALLATION

    Before we jump into action, it’s good to have a closer look at Magento’s requirements.What do you need to run it?
    Simply put, all up-to-date requirements for Magento can be found here:

    http://www.magentocommerce.com/system-requirements
    But maybe that’s a bit overwhelming if you are just a beginner. So let’s break this up into the most essential stuff:
    Requirement Notes
    Operating system: Linux Magento runs best on Linux, as offered by most hosting companies. Don’t worry about your local test environment as that will run on Windows or Mac as well. But for your live store you should go in for a Linux solution because if you decide to run it on anything else other than Linux for a live store, it will not be supported.
    Web server: Apache Magento runs on Versions 1.3.x, 2.0.x, and 2.2.x of this very popular web server. As of Version 1.7 of Magento community and Version 1.12 of Magento Enterprise there’s a new web server called Nginx that is compatible as well.
    Programming language: PHP Magento has been developed using PHP, a programming language which is very popular. Many major open source solutions such as WordPress and Joomla! for instance, have been built using PHP. Use Versions 5.2.13 – 5.3.15. Do not use PHP4 anymore, nor use PHP 5.4 yet!
    PHP extensions Magento requires a number of extensions, which should be available on top of PHP itself. You will need: PDO_MySQL, mcrypt, hash, simplexml, GD, DOM, Iconv, and Curl. Besides that you also need to have the possibility to switch off ”safe mode”. You do not have a clue about all of this? Don’t worry. A host offering Magento services already takes care of this. And for your local environment there are only a few additional steps to take. We’ll get there in a minute.
    Database: MySQL MySQL is the database, where Magento will store all data for your store. Use Version 4.1.20 or (and preferably) newer.
    STEP 1: DOWNLOAD AND INSTALL XAMPP
    You need a web server, so that you can run your website locally, on your own machine.
    On Windows machines, XAMPP is an easy to use all-in-one solution. Download the installer version via:http://www.apachefriends.org/en/xampp-windows.html
    XAMPP is also available for Mac and Linux. The download screen is as follows:
    Once downloaded, run the executable code to start the installation process
    You might receive some security warnings that you have to accept, especially when you’re using Windows Vista, 7 or 8,like in the following example:
    Because of this it’s best to install XAMPP directly in the root of your hard drive, c:\xampp in most cases. Once you click on OK, you will see the following screen, which shows the progress of installation:
    Once the installation has finished, the software asks if you’d like to start the Control Panel. If you do so, you’ll see a number of services that have not been started yet. The minimum that you should start by clicking the Start button are Apache, the web server and MySQL, the database server.
    Now you’re running your own web server on your local computer. Be aware that generally this web server will not be accessible for the outside world. It’s running on your local machine, just for testing purposes. Before doing the next step, please verify if your web server is actually running. You can do so by using your browser and going to http://localhost or http://127.0.0.1 If all went well you should see something similar to the following:
    No result? If you’re on a Windows computer, please first reboot your machine. Next, check using the XAMPP control panel if the Apache service is running. If it isn’t, try to start it and pay attention to the error messages that appear. Need more help? Start with the help available on XAMPP’s website at:
    http://www.apachefriends.org/en/faq-xampp-windows.html
    STEP 2: CHANGE YOUR WINDOWS HOST FILE

    Change the following Windows file: C:\Windows\System32\drivers\etc\hosts.
    Make sure to open your editor using administrator rights, otherwise you will not be
    able to save your changes. Add the following line to the host file:


    127.0.0.1 www.localhost.com. This is needed because Magento will not work correctly on a localhost without this setting. You may use a different name, but the general rule is that at least one dot must be used in the local domain name. The following screenshot gives an example of a possible host file. Please note that every host file will look a bit different.

    Recommend the free Notepad++ for Windows users, which is even available in lots of different languages: Download: http://notepad-plus-plus.org
    STEP 3: CREATE A MYSQL DATABASE USING PHPMYADMIN

    Download the Magento installation package
    Head over to http://www.magentocommerce.com/download and download the package you need. For a Windows user almost always the full ZIP package is the most convenient one. In our situation Version 1.7.0.2 is the latest one, but please be aware that this will certainly change over time when newer versions are released. You will need to create a (free) account to download the software. This account will also be helpful later on. It will give you access to the Magento support forums, so make sure to store your login details somewhere.

    If you’re a beginner then it is handy to have some sample data in your store. Magento offers a download package containing sample data on the same page, so download that as well. Note that for a production environment you would never install the sample data, but for a test system like the local installation we’re doing here, it might be a good idea to use it. The sample data will create a few items and customers in your store, which will make the learning process easier.
    Unzip the downloaded Magento package and put all files in a sub folder of your XAMPP installation. This could for instance be c:\xampp\htdocs\magento.
    Now, go to www.localhost.com/magento to check if the installation screen of Magento is visible, as shown in the following screenshot. But do not yet start the installation process!
    Before you start the installation, first create a MySQL database. To do this, use a second browser tab and navigate to localhost | phpMyAdmin. By default the user is root, and so without a password you should be able to continue without logging in.
    Click on Databases and create a database with a name of your choice. Write it down, as you will need it during the Magento installation. After creating the database you may close the browser tab.
    STEP 4: INSTALL MAGENTO ON LOCAL HOST XAMP
    It’s finally time to start the installation process now. Go back to the installation screen of Magento, accept the license agreement and click on Continue.
    Next, set your country, Time Zone and Default Currency. If you’re working with multiple currencies that will be addressed later on:

    The next screen is actually the most important one of the installation process and this is where most beginners go wrong because they do not know what values to use. Using XAMPP this is an easy task, however, fill in your Database Name, User Name (root) and do not forget to check the Skip Base URL Validation Before the Next Step box, otherwise your installation might fail:
    In this same form there are some fields that you can use to immediately improve the security level of your Magento setup. On a local test environment that isn’t necessary, so we’ll pay attention to those settings later on when we’ll discuss installing Magento at a hosting provider. Please note that the Use Secure URLs option should remain unchecked for a local installation like we’re doing here.
    In the last step, yes, really! Just fill out your personal data and chose a username and password. Also in here, since you’re working locally you do not have to create a complicated, unique password now. But you know what we mean, right? Doing a live installation at a hosting provider requires a good, strong password! You do not have to fill the Encryption Key field, Magento will do that for you:
    In the final screen please just make a note of the Encryption Key value that was generated. You might need it in the future whenever upgrading your Magento store to a newer software version:
    Congratulations! You simply installed Magento on Local host for the first time! Find out more helpful guide at Magento tutorial for novices



  • #2
    Originally posted by kanesimicart View Post

    http://www.simicart.com/ - Best mobile shopping apps for magento

    Thanks for visiting Magento tutorial for novices, as you may know, When setting up Magento, we frequently have a lot of questions because we miss some steps or even the author don’t provide you with all of the steps to possess a easy installation. Today, I provides you with a visible installation procedure for How you can install Magento on Local host - XAMPP - The most popular and effective but additionally very light local host .
    Summary of tutorial:
    • Before the installtion
    • Step 1ownload and install XAMPP
    • Step 2: Change your host file
    • Step 3: Create a MySQL database using PhPadmin
    • Step 4: Install Magento on Local host XAMPP

    BEFORE THE INSTALLATION

    Before we jump into action, it’s good to have a closer look at Magento’s requirements.What do you need to run it?
    Simply put, all up-to-date requirements for Magento can be found here:

    http://www.magentocommerce.com/system-requirements
    But maybe that’s a bit overwhelming if you are just a beginner. So let’s break this up into the most essential stuff:
    Requirement Notes
    Operating system: Linux Magento runs best on Linux, as offered by most hosting companies. Don’t worry about your local test environment as that will run on Windows or Mac as well. But for your live store you should go in for a Linux solution because if you decide to run it on anything else other than Linux for a live store, it will not be supported.
    Web server: Apache Magento runs on Versions 1.3.x, 2.0.x, and 2.2.x of this very popular web server. As of Version 1.7 of Magento community and Version 1.12 of Magento Enterprise there’s a new web server called Nginx that is compatible as well.
    Programming language: PHP Magento has been developed using PHP, a programming language which is very popular. Many major open source solutions such as WordPress and Joomla! for instance, have been built using PHP. Use Versions 5.2.13 – 5.3.15. Do not use PHP4 anymore, nor use PHP 5.4 yet!
    PHP extensions Magento requires a number of extensions, which should be available on top of PHP itself. You will need: PDO_MySQL, mcrypt, hash, simplexml, GD, DOM, Iconv, and Curl. Besides that you also need to have the possibility to switch off ”safe mode”. You do not have a clue about all of this? Don’t worry. A host offering Magento services already takes care of this. And for your local environment there are only a few additional steps to take. We’ll get there in a minute.
    Database: MySQL MySQL is the database, where Magento will store all data for your store. Use Version 4.1.20 or (and preferably) newer.
    STEP 1: DOWNLOAD AND INSTALL XAMPP
    You need a web server, so that you can run your website locally, on your own machine.
    On Windows machines, XAMPP is an easy to use all-in-one solution. Download the installer version via:http://www.apachefriends.org/en/xampp-windows.html
    XAMPP is also available for Mac and Linux. The download screen is as follows:
    Once downloaded, run the executable code to start the installation process
    You might receive some security warnings that you have to accept, especially when you’re using Windows Vista, 7 or 8,like in the following example:
    Because of this it’s best to install XAMPP directly in the root of your hard drive, c:\xampp in most cases. Once you click on OK, you will see the following screen, which shows the progress of installation:
    Once the installation has finished, the software asks if you’d like to start the Control Panel. If you do so, you’ll see a number of services that have not been started yet. The minimum that you should start by clicking the Start button are Apache, the web server and MySQL, the database server.
    Now you’re running your own web server on your local computer. Be aware that generally this web server will not be accessible for the outside world. It’s running on your local machine, just for testing purposes. Before doing the next step, please verify if your web server is actually running. You can do so by using your browser and going to http://localhost or http://127.0.0.1 If all went well you should see something similar to the following:
    No result? If you’re on a Windows computer, please first reboot your machine. Next, check using the XAMPP control panel if the Apache service is running. If it isn’t, try to start it and pay attention to the error messages that appear. Need more help? Start with the help available on XAMPP’s website at:
    http://www.apachefriends.org/en/faq-xampp-windows.html
    STEP 2: CHANGE YOUR WINDOWS HOST FILE

    Change the following Windows file: C:\Windows\System32\drivers\etc\hosts.
    Make sure to open your editor using administrator rights, otherwise you will not be
    able to save your changes. Add the following line to the host file:


    127.0.0.1 www.localhost.com. This is needed because Magento will not work correctly on a localhost without this setting. You may use a different name, but the general rule is that at least one dot must be used in the local domain name. The following screenshot gives an example of a possible host file. Please note that every host file will look a bit different.

    Recommend the free Notepad++ for Windows users, which is even available in lots of different languages: Download: http://notepad-plus-plus.org
    STEP 3: CREATE A MYSQL DATABASE USING PHPMYADMIN

    Download the Magento installation package
    Head over to http://www.magentocommerce.com/download and download the package you need. For a Windows user almost always the full ZIP package is the most convenient one. In our situation Version 1.7.0.2 is the latest one, but please be aware that this will certainly change over time when newer versions are released. You will need to create a (free) account to download the software. This account will also be helpful later on. It will give you access to the Magento support forums, so make sure to store your login details somewhere.

    If you’re a beginner then it is handy to have some sample data in your store. Magento offers a download package containing sample data on the same page, so download that as well. Note that for a production environment you would never install the sample data, but for a test system like the local installation we’re doing here, it might be a good idea to use it. The sample data will create a few items and customers in your store, which will make the learning process easier.
    Unzip the downloaded Magento package and put all files in a sub folder of your XAMPP installation. This could for instance be c:\xampp\htdocs\magento.
    Now, go to www.localhost.com/magento to check if the installation screen of Magento is visible, as shown in the following screenshot. But do not yet start the installation process!
    Before you start the installation, first create a MySQL database. To do this, use a second browser tab and navigate to localhost | phpMyAdmin. By default the user is root, and so without a password you should be able to continue without logging in.
    Click on Databases and create a database with a name of your choice. Write it down, as you will need it during the Magento installation. After creating the database you may close the browser tab.
    STEP 4: INSTALL MAGENTO ON LOCAL HOST XAMP
    It’s finally time to start the installation process now. Go back to the installation screen of Magento, accept the license agreement and click on Continue.
    Next, set your country, Time Zone and Default Currency. If you’re working with multiple currencies that will be addressed later on:

    The next screen is actually the most important one of the installation process and this is where most beginners go wrong because they do not know what values to use. Using XAMPP this is an easy task, however, fill in your Database Name, User Name (root) and do not forget to check the Skip Base URL Validation Before the Next Step box, otherwise your installation might fail:
    In this same form there are some fields that you can use to immediately improve the security level of your Magento setup. On a local test environment that isn’t necessary, so we’ll pay attention to those settings later on when we’ll discuss installing Magento at a hosting provider. Please note that the Use Secure URLs option should remain unchecked for a local installation like we’re doing here.
    In the last step, yes, really! Just fill out your personal data and chose a username and password. Also in here, since you’re working locally you do not have to create a complicated, unique password now. But you know what we mean, right? Doing a live installation at a hosting provider requires a good, strong password! You do not have to fill the Encryption Key field, Magento will do that for you:
    In the final screen please just make a note of the Encryption Key value that was generated. You might need it in the future whenever upgrading your Magento store to a newer software version:
    Congratulations! You simply installed Magento on Local host for the first time! Find out more helpful guide at Magento tutorial for novices

    I am having some problems in creating localhost xampp ..The issue is I have created localhost successfully but i cant run xampp Its coming an error like local host not available..Please give solution for it??

    Comment

    Working...
    X