Overview
This article discusses how to install:

  • Magento Community Edition (CE) 1.9.x or 1.8.x of the
  • Magento Enterprise Edition (EE) 1.13.x or 1.14.x

To install Magento Magento is the CE or EE, please use the following high-level guidance:

  1. Provided in the system to meet the system requirements for Magento.
  2. Install software prerequisites (Web server, PHP and PHP extensions needed).
  3. Setting the MySQL Magento database instance.
  4. Magento run the Setup program to complete the installation.
  5. Verify that the correct installation of Magento.

81

Prerequisites
Before you begin:

  • Get Magento CE or EE discuss Magento installation files acquired.
  • Complying with one or more host Magento system requirements.
  • If you are using load balancing setting up multiple network nodes, and part of the installation of Magento set before testing the system.
  • If your database server and Web server are on different hosts, and then continue to get help.
  • Make sure that you can back up during the installation process at different points throughout the system, so you can roll back in the event of problems.

Magento is strongly recommended that you follow these guidelines when you build your Magento database:

  • Magento first use MySQL database trigger re-indexing process to improve database access. Any custom triggers Magento Magento database does not support, because customized triggers can introduce future Magento versions are not compatible.
  • Familiar with these potential MySQL trigger limit, and then continue.
  • If you are using MySQL database replication to note Magento MySQL statement-based replication does not support. Make sure that you only use row-based replication.

For more information, including necessary software, in the next section.

Prepare your servers Magento’s CE or EE

The following sections discuss how to download and install the necessary software is installed on a system running Magento CE or EE:

  • Ubuntu 10 or later, or the CentOS 6
  • The Apache 2.X
  • The nginx 1.7.x
  • Extended PHP5.4 and necessary
  • MySQL database

Prerequisites of SELinux

Security Enhanced Linux (SELinux) allowed CentOS and Ubuntu administrators their higher server access control. If you use Apache and SELinux must start command to connect to another host, you must discussed in this section.

If Apache and database servers on the same host, you can skip this section, and continue to open ports in the firewall.

In order to start Apache and SELinux is enabled on another host connection:

  1. To determine whether to enable SELinux, use the following command:
    setenforce
    Forced display confirm SELinux is running.
  2. Enter the following command:

CentOS
setsebool-P httpd_can_network_connect = 1

Ubuntu's
setsebool-P of Apache2 can network_connect = 1

Open ports in the firewall
Depending on your security needs, you may feel the need to open port 80 and other ports on the firewall. Due to the sensitive nature of network security, Magento is strongly recommended before you continue with your IT department. Here are some suggestions for reference:

  • The Ubuntu: Ubuntu documentation page.
  • The CentOS: CentOS CentOS operating instructions and reference pages.

Installing optional software
This section discusses how to create or install the following:

  • Installation and configuration, so that your system clock and distributed around the world pool server synchronization Network Time Protocol (NTP). NTP is a clock used to synchronize multiple hosts are particularly useful.
  • Create a file phpinfo.php
  • Installation and configuration of phpMyAdmin database management tool.

These optional utilities that can help you with installation; however, they are not required to install or use Magento.

To skip installing these tools, database directly to create an instance of Magento.

See the following sections:

  • Install and configure the Network Time Protocol (NTP)
  • Create a phpinfo.php
  • phpMyAdmin installation

Install and configure the Network Time Protocol (NTP)
NTP server so that the server uses globally available pool synchronize its system clock. Magento advice you trust, whether it is a dedicated hardware solution, your internal network or external public server NTP server.

If you deploy on multiple hosts Magento, NTP is a simple way to ensure that their clocks are synchronized, no matter what time zone the server.

To install and configure NTP:

  1. Only the CentOS.
    • Enter the following command to locate the appropriate software NTP: NTP Yum search
    • Select a package to install. For example, ntp.x86_64.
    • Installation package. Yum -y install ntp.x86_64
  2. Only Ubuntu Linux system. Enter the following command to install NTP: apt-get install NTP
  3. Select the NTP server pool to use.
    Select the server pool is up to you. If you use an NTP server pool, ntp.org recommend that you use the Help page NTP pool project in question is a server close to your server’s time zone pool. If you have a dedicated NTP server is available to your Magento deployment of all hosts, you can use the server instead.
  4. Open /etc/ntp.conf in a text editor.
  5. Looking similar to the following lines:

    Server 0.centos.pool.ntp.org

    Server 1.centos.pool.ntp.org
    Server 2.centos.pool.ntp.org
  6. Replace these lines or add the specified NTP pool servers or other lines other NTP servers. This is to specify more than one a good idea.Three examples of the use of US-based NTP server as follows:
    Server 0.us.pool.ntp.org
    Server 1.us.pool.ntp.org
    Server 2.us.pool.ntp.org
  7. Save changes to /etc/ntp.conf and exit the text editor.
  8. Only the CentOS. When the server is started with NTP begin entering the following command.
    chkconfig on NTPD
  9. Restart the service.

    The CentOS

    Service Restart NTPD

    Ubuntu’s
    NTP service starts
  10. Enter the date of the order to check the date of the server.
    If the date is not correct, make sure that the NTP client port (usually, UDP123) is open on the firewall. Try ntpdate pool server hostname command. If that fails, the search will return an error.
    If all else fails, try restarting the server.

Create a phpinfo.php
phpinfo.php display a lot of information about PHP and its extensions. Add the following code anywhere in the document root directory of the Web server:

<?php // Show all information, defaults to INFO_ALL phpinfo();

To view the results, enter the following URL in the location or address field of the browser:

HTTP: //web-server-ip-or-host/phpinfo.php

If the 404 (Not Found) error display, please check the following:

  • If it is necessary to start the Web server.
  • Make sure your firewall allows port 80 traffic on.

phpMyAdmin installation

phpMyAdmin is an easy to use, free database management tool. You can use it to check and manipulate the contents of the database. You must be logged in to phpMyAdmin as MySQL database administrator user.

For more information on phpMyAdmin, please phpMyAdmin homepage.

For more details on installation, see the installation documentation phpMyAdmin.

To install phpMyAdmin in the CentOS:

  1. Download of CentOS EPEL RPM version you are using. One example is as follows:CD / tmp directory
    wget of http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
    RPM -ivh EPEL release, 6-8.noarch.rpm
  2. Phpmyadmin installed as follows:Yum -y install phpmyadmin
  3. Unauthorized access phpMyAdmin from IP address of your computer.
    • Open the file you want to edit the following:
      VIM /etc/httpd/conf.d/phpMyAdmin.conf
    • Your IP address replaces the following IP address
      #Require IP 127.0.0.1
      Unauthorized access phpMyAdmin from IP address of your computer.E.g,
      Need IP 192.51.100.101
    • Your IP address replaces the following IP
      From 127.0.0.1 #AllowE.g,
      Allow from 192.51.100.101
  4. Save changes to /etc/httpd/conf.d/phpMyAdmin.conf and exit the text editor.
  5. Restart Apache:
    service httpd restart 
  6. To use phpmyadmin, enter the following command in the address or location field of the browser:
    HTTP: // host or IP address / phpMyAdmin’s
  7. When prompted, log in using the MySQL database root or administrative user name and password.
    To install on Ubuntu phpmyadmin:

    • Use the following command: apt-get install phpmyadmin
    • Follow the prompts on the screen to complete the installation.
    • To use phpmyadmin, enter the following URL in the browser address or location field in: HTTP: // host or IP address / phpMyAdmin’s
    • When prompted, log in using the MySQL database root or administrative user name and password.

Create a database instance Magento.

This section discusses how to create a new instance of the Magento database. While it is recommended a new database instance, you can choose to install Magento to an existing database instance. If you choose to do so, skip this section and proceed to install the optional sample data.

82

To create a new database instance:

  1. Any user logged into your database server.
  2. Input Display create a database instance the following sequence of commands named Magento:
    Ü the MySQL root – P
    # Enter in the MySQL> prompt the remaining commands.
    Create a database of Magento;
    GRANT ALL ON Magento of the @ * TO Magento local IDENTIFIED BY’Magento apos;
  3. For MySQL versions 5.0.2 and 5.1.6 between, you must enter the following command:
    GRANT SUPER ON * * TO’Magento the ‘@’ localhost ‘is.
  4. After you’re done, type exit
  5. Test database instance.
    MySQL is the -p -u Magento
    Similar to the following message appears to confirm that you successfully create a database instance. If an error is displayed, repeat the above command.
    Welcome to the MySQL monitor. Command terminated with; or \ g.
    Your MySQL connection ID is 20
    Server version: 1967 May 1 source distribution
    Copyright (c) 2000,2012, Oracle and / or its affiliates. all rights reserved.
    Oracle is Oracle Corporation and / or registered trademarks. its
    Branches. Other names may be trademarks of their respective companies
    owner.
    Type ‘help;’ or to help ‘\ H’. Type ‘\ c’ to clear the current input statement.

Extraction Magento installation files.

Extract the document root of your Web server Magento installation files.

Ubuntu path is usually / var / WWW

CentOS path is usually / var / www / html etc.

For example:

  • Ubuntu’s
    CD’s / var / WWW
    CP / path / Magento installation archive.
    -zxvf Magento installation tar archive name
  • The CentOS
    CD’s / var / www / html etc.
    CP / path / Magento installation archive name.
    -zxvf Magento installation tar archive

You can choose to install the sample data Magento continue to the next section.

To no sample data install Magento, continue to set the ownership and permissions of files and directories.

Installing optional sample data.

Magento provides you the option to install the sample data, to the idea of your product is what the admin panel and your online store. You can use this sample data to learn how Magento works with custom theme tested.

Magento You must install the sample data on the file system, and installed in the database before.

To skip install the sample data, continue to set the ownership and permissions of files and directories.

To install the Magento sample data:

  1. One of the positions from Magento CE or EE acquired, download sample data.
  2. If desired, the Magento sample data to the server.
  3. In your Magento server, extract the sample data archived than outside your Magento installation directory.
  4. Media subdirectory note of the path of the sample data.
  5. Change to [your Magento installation directory] / media directory.#Ubuntu Examples
    CD / var / network / Magento’s / Media
    #CentOS Examples
    CD’s / var / www / html etc / Magento’s / Media
  6. As user permissions to write Magento installation directory (usually Web server user), the media directories and subdirectories of the sample data copied to your Magento installation directory.
    For example, copy the sample data from / home / username to / var / WWW / Magento is Magento, enter:
    CP -R / home / username / media / *.
  7. The Magento Magento CE 1.9 and the EE 1.14 只. You must also copy the skin sample data directory to the following [your Magento installation directory] / Skin:
    For example, Magento skin files from the / home / username / skin to / var / WWW / Magento’s / copy skin, enter
    CD [your Magento installation directory] / Skin
    CP -R / home / username / skin / *.
  8. Import CE or EE sample data to your MySQL database, as follows:
    Ü the MySQL root – P Magento’s -DB instance name, <path to the sample data extraction -DIR / sample data filename.sql
    EE 1.14 Examples
    Ü the MySQL root – P of Magento </home/username/magento_sample_data_for_1.14.0.0.sql

Installation of Magento CE or EE
This section discusses how to run the Magento installation, use Magento as an example of EE. Installation of Magento CE with identical choice; only different looks.

84

To install the Magento CE or EE:

  1. Complete all tasks as discussed earlier in this article.
  2. Enter the following URL in the address or location field in your Web browser:
    IP network server or host: port / Magento path / Magento’sFor example, if your Web server http://www.example.com, listening on port 80 and Magento installation enter the subdirectory Web server’s document root directory Magento
    http://www.example.com/magento

    The following page is displayed.
    85

  3. Check this box to indicate that you agree to the terms and conditions, and then click Continue.
  4. On a localized page, enter the following information.
    86
    The following figure shows the configuration of Magento for American English in the US Central time zone, and use the dollar as an example the default currency.
    87
  5. Click Continue.
    Configuration page displays. Its three segments discussed in the following step.
  6. In the configuration page, enter the following information:In the Database Configuration section, enter the following information.
    88
    One example is as follows.
    89
    In the Web Access Options section, enter the following information.90
    One example is as follows.
    91
    In the session storage Options section, click one of the following options:

    File to [your Magento installation directory] to store user session data on the file system / var / session directory.

    Unless the Magento file system access speed is very slow, or you have a cluster database is appropriate based session storage file.

    User session data in a database stored in the database.

    Select the database storage, if you have a cluster database; otherwise, may not benefit much more than file-based storage.

    Click Continue.