2017 © Pedro PelĂĄez
 

project poc-m2-ce-project

eCommerce Platform for Growth (Community Edition)

image

joanhe/poc-m2-ce-project

eCommerce Platform for Growth (Community Edition)

  • Monday, April 6, 2015
  • by joanhe
  • Repository
  • 1 Watchers
  • 1 Stars
  • 44 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

Welcome to Magento 2 installation! We're glad you chose to install Magento 2, a cutting edge, feature-rich eCommerce solution that gets results., (*2)

Contents

Magento 2 system requirements

Before you install Magento 2, make sure your system meets or exceeds the following requirements:, (*3)

  • Operating systems, (*4)

    Linux distributions such as RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian, and so on, (*5)

  • Composer (latest stable version), (*6)

  • Apache 2.2 or later
  • PHP 5.4.11 or 5.5.x
  • Required PHP extensions:, (*7)

    • PDO/MySQL
    • mbstring
    • mcrypt
    • mhash
    • simplexml
    • curl
    • gd2, ImageMagick 6.3.7 (or later) or both
    • soap
  • MySQL 5.6.x, (*8)

  • Mail Transfer Agent (MTA) or an SMTP server
  • Optional but recommended:, (*9)

    • php_xdebug2.2.0 or later (development environments only; can have an adverse effect on performance)
    • PHPUnit (as a command-line tool) 4.1 or later

Composer and Magento

We now use Composer to install the Magento 2 software. Composer enables us to manage Magento 2, extensions, and their dependencies., (*10)

Composer provides you with the following advantages:, (*11)

  • Enables you to reuse third-party libraries without bundling them with source code
  • Component-based architecture with robust dependency management
  • Manages dependencies to reduce extension conflicts and compatibility issues
  • Versioned dependencies
  • Semantic versioning
  • Supports PHP Framework Interoperability standards

We'll have more information soon on how developers can use Composer to package extensions to distribute to Magento merchants and to other developers., (*12)

High-level installation roadmap

Following is a brief overview of how to install the Magento 2 software., (*13)

Step 1: Verify your prerequisites

Use the following table to verify you have the correct prerequisites to install the Magento 2 software., (*14)

Prerequisite How to check For more information
Apache 2.2 or later Ubuntu: apache -v
CentOS: httpd -v
Apache
PHP 5.4.11 or 5.5.x php -v PHP
MySQL 5.6.x mysql -u [root user name] -p MySQL

Step 2: Prepare to install

After verifying your prerequisites, perform the following tasks in order to prepare to install the Magento 2 software., (*15)

  1. Installing Composer
  2. Cloning the Magento 2 GitHub repository

Step 3: Install and verify

  1. Installing or reinstalling the Magento software
  2. Verifying the installation

Required server permissions

Unless otherwise noted, all commands in this Readme must be entered as a user with root privileges and permission to write to the web server docroot. Depending on your system, that might mean you must use different user accounts or add users to the web server user group—provided that group has sufficient privileges., (*16)

Installing software on Linux typically requires root privileges. You should generally not install the Magento 2 software in the web server docroot using root privileges; however, that is up to you., (*17)

Prerequisites

This section discusses how to install software required to install Magento 2., (*18)

See one of the following sections:, (*19)

Before you begin

Before you install Magento, you must do all of the following:, (*20)

  • Set up one or more hosts that meet the Magento 2 system requirements.
  • Make sure you can back up your entire system at various points during the installation so you can roll back in the event of issues.

Apache

Installing Apache on Ubuntu

  1. Install Apache using the guidelines on the Ubuntu site.
  2. Enable server rewrites:
    • Apache 2.2: Use the guidelines on askubuntu.
    • Apache 2.4: Enter the following command: a2enmod rewrite
  3. Specify the type of directives that can be used in .htaccess. Magento uses .htaccess for redirects. For guidelines, see:
    • Apache 2.2: The Apache 2.2 documentation.
    • Apache 2.4: The Apache 2.4 documentation.
      Note that in Apache 2.4, the server's default site configuration file is /etc/apache2/sites-available/000-default.conf
      For example, you can add the following to the bottom of 000-default.conf:
      <Directory "/var/www">
      AllowOverride [value from Apache site]
      </Directory>
      Note: You must change the value of AllowOverride in the directive for the directory to which you expect to install the Magento software. For example, to install in the web server docroot, edit the directive in <Directory /var/www>.
  4. Restart Apache: service apache2 restart

Installing Apache on CentOS

  1. Install Apache:, (*21)

    yum -y install httpd, (*22)

    For additional information, see the Apache site., (*23)

  2. Enable server rewrites., (*24)

    Note: You must change the value of Allow Override in the directive for the directory to which you expect to install the Magento software. For example, to install in the web server docroot, edit the directive in <Directory "/var/www/html">., (*25)

  3. Set the type of directives that can be used in .htaccess. Magento uses .htaccess for redirects. Apache documentation., (*26)

  4. Restart Apache: service httpd restart, (*27)

MySQL

Installing MySQL on Ubuntu

  1. Install MySQL on Ubuntu 12 or Ubuntu 14.
  2. Configure the database instance.

Installing and configuring MySQL on CentOS

The following procedure is based on Install MySQL Server 5.6 in CentOS 6.x and Red Hat 6.x Linux., (*28)

  1. Install the MySQL database:, (*29)

    cd /tmp
    wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
    rpm -ivh mysql-community-release-el6-5.noarch.rpm
    yum -y install mysql-server
  2. Start MySQL., (*30)

    service mysqld start, (*31)

  3. Set a password for the root user and set other security-related options. Enter the following command and follow the prompts on your screen to complete the configuration., (*32)

    mysql_secure_installation, (*33)

Configuring the Magento database instance

This section discusses how to create a new database instance for Magento. Although a new database instance is recommended, you can optionally install Magento into an existing database instance., (*34)

To configure a MySQL database instance:, (*35)

  1. Log in to your database server as any user.
  2. Enter the following command to get to a MySQL command prompt:, (*36)

    mysql -u root -p, (*37)

  3. Enter the MySQL root user's password when prompted., (*38)

  4. Enter the following commands in the order shown to create a database instance named magento with user name magento:
create database magento;
GRANT ALL ON magento.* TO magento@localhost IDENTIFIED BY 'magento';
  1. Enter exit to quit the command prompt.

PHP

Magento 2 requires PHP 5.4.11 or later or PHP 5.5.x., (*39)

Note: Magento 2 does not support PHP 5.6., (*40)

PHP 5.5 or 5.4 on Ubuntu

Install PHP 5.5 on Ubuntu 14

To install PHP 5.5 on Ubuntu 14:, (*41)

  1. Enter the following command:, (*42)

    apt-get -y install php5, (*43)

  2. Verify the PHP version by entering php -v. Messages similar to the following should display:, (*44)

    PHP 5.5.9-1ubuntu4.4 (cli) (built: Sep  4 2014 06:56:34)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
Install PHP 5.5 on Ubuntu 12
  1. Use the following commands from dev-metal:, (*45)

    add-apt-repository ppa:ondrej/php5
    apt-get update
    sudo apt-get install php5
  2. Verify the PHP version by entering php -v. Messages similar to the following should display:, (*46)

    PHP 5.5.18-1+deb.sury.org~precise+1 (cli) (built: Oct 17 2014 15:11:34)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
Install PHP 5.4 on Ubuntu 12

To install PHP 5.4 on Ubuntu 12:, (*47)

  1. Use the following instructions from askubuntu:, (*48)

    add-apt-repository ppa:ondrej/php5-oldstable
    apt-get update
    apt-get upgrade
    apt-get install php5
  2. Verify the PHP version by entering php -v. Messages similar to the following should display:, (*49)

    PHP 5.4.33-2+deb.sury.org~precise+1 (cli) (built: Sep 25 2014 09:06:25)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
  3. Restart Apache: service apache2 restart, (*50)

Upgrade to PHP 5.4 on Ubuntu

To upgrade to PHP 5.4 on Ubuntu:, (*51)

  1. Use the instructions on phpave.
  2. After upgrading, verify the PHP version by entering php -v. Messages similar to the following should display:, (*52)

    PHP 5.4.33-2+deb.sury.org~precise+1 (cli) (built: Sep 25 2014 09:06:25)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
  3. Restart Apache: service apache2 restart, (*53)

Install required PHP extensions on Ubuntu

Enter the following command to install required PHP extensions:, (*54)

apt-get -y install php5 php5-mhash php5-mcrypt php5-curl php5-cli php5-mysql php5-gd

Ubuntu 14 only: workaround for mcrypt issue

There is a known issue in Ubuntu 14 with the mcrypt PHP extension. To work around the issue, see askubuntu., (*55)

PHP 5.5 or 5.4 on CentOS

PHP 5.3 is the default PHP version on CentOS distributions. Upgrade to PHP 5.4 using a repository like remi., (*56)

The following resources are also available:, (*57)

To verify if PHP is installed already, enter php -v. If PHP is not installed, install it by entering the following command:, (*58)

yum -y install php php-xml
PHP 5.5 on CentOS

To upgrade to PHP 5.5:, (*59)

There is more than one way to upgrade CentOS 6.5 to PHP 5.5; the following is a suggestion only. Consult a reference for additional options., (*60)

Enter the following commands in the order shown., (*61)

cd /tmp
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum -y remove php-common-5.3.3-40.el6_6.x86_64
yum -y install php55w php55w-opcache

Restart Apache: service httpd restart, (*62)

PHP 5.4 on CentOS

To upgrade to PHP 5.4:, (*63)

  1. Enter the following commands:, (*64)

    cd /tmp
    rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
    rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
    yum -y --enablerepo=remi install httpd php php-common
  2. To verify PHP 5.4 is installed, enter php -v. The command displays results similar to the following:, (*65)

    PHP 5.4.33 (cli) (built: Sep 20 2014 16:20:03)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
  3. Restart Apache: service httpd restart, (*66)

Install required PHP extensions on CentOS

Enter the following command to install required PHP extensions:, (*67)

yum -y --enablerepo=remi install php-xml php-mcrypt.x86_64 gd gd-devel php-gd php-mysql, (*68)

Setting the PHP timezone (all operating systems)

Before you install Magento, you might need to set the system time zone for PHP; otherwise, errors like the following display during the installation and time-related operations like cron might not work:, (*69)

PHP Warning: date(): It is not safe to rely on the system's timezone settings. [more messages follow], (*70)

To set your time zone:, (*71)

  1. Locate your server's time zone in the available time zone settings.
  2. Locate php.ini by entering the following command:, (*72)

    php -i | grep "Loaded Configuration File", (*73)

    Typical locations follow:, (*74)

    Ubuntu: /etc/php5/cli/php.ini, (*75)

    CentOS: /etc/php.ini, (*76)

  3. Open php.ini in a text editor., (*77)

  4. Locate the following setting and uncomment it if necessary:, (*78)

    date.timezone =, (*79)

  5. Add the time zone setting you found in step 1., (*80)

  6. Save your changes to php.ini and exit the text editor.

Setting the PHP memory limit (all operating systems)

Increase memory_limit in php.ini to at least 512MB for normal operation or 2GB for testing:, (*81)

  1. Open one of the following in a text editor:, (*82)

    • Ubuntu: /etc/php5/apache2/php.ini
    • CentOS: /etc/php.ini
  2. Change memory_limit to:, (*83)

    memory_limit = 512M or more for normal operation, (*84)

    memory_limit = 2G or more for testing, (*85)

  3. Save your changes and exit the text editor., (*86)

  4. Restart Apache:, (*87)

    Ubuntu: service apache2 restart, (*88)

    CentOS: service httpd restart, (*89)

Installing Composer

To install Composer:, (*90)

  1. Change to or create an empty directory on your Magento server., (*91)

  2. Enter the following commands:, (*92)

    curl -sS https://getcomposer.org/installer | php
    mv composer.phar /usr/local/bin/composer

    For additional installation options, see the Composer installation documentation., (*93)

Cloning the Magento 2 GitHub repository

To clone the Magento 2 GitHub repository:, (*94)

  1. Change to your web server's docroot directory., (*95)

    Typically, for Ubuntu, it's /var/www and for CentOS it's /var/www/html., (*96)

  2. Enter any of the following commands as a user with privileges to write to the web server docroot:, (*97)

    To clone using HTTPS, use either of the following:, (*98)

    git clone https://github.com/magento/magento2.git, (*99)

    git clone https://[your github.com user name]:[password]@github.com/magento/magento2.git, (*100)

    To clone using SSH: git clone git@github.com:magento/magento2.git, (*101)

  3. Wait for the repository to clone on your server., (*102)

Note: If you get an error that includes Permission denied (publickey), see Troubleshooting., (*103)

Installing or reinstalling the Magento 2 software

Before you begin, make sure that:, (*104)

  1. Your system meets the requirements discussed in Magento 2 system requirements.
  2. You completed all prerequisite tasks discussed in Prerequisites.
  3. You installed Composer.
  4. You cloned the Magento 2 GitHub repository.

Setting file system permissions and ownership before you install

To make sure the installation completes successfully, we suggest the following file system permissions and ownership:, (*105)

  • All files and directories owned by the web server user
  • Certain directories must be writable

Finding the web server user

To find the web server user, enter one of the following commands:, (*106)

  • Ubuntu: ps -ef | grep apache2
  • CentOS: grep User /etc/httpd/conf/httpd.conf

Pre-installation permissions and ownership

Before the installation, set the following permissions:, (*107)

  • All directories have 700 permissions (drwx------)., (*108)

    700 permissions give full control (that is, read/write/execute) to the owner and no permissions to anyone else., (*109)

  • All files have 600 permissions (-rw-------)., (*110)

    600 permissions mean the owner can read and write but other users have no permissions., (*111)

Setting permissions and ownership

  1. To set ownership, enter the following commands as a user with root privileges:, (*112)

    cd [your Magento installation directory]
    chown -R [web server user name] .

    CentOS example:, (*113)

    cd /var/www/html/magento2
    chown -R apache .

    Ubuntu example:, (*114)

    cd /var/www/magento2
    chown -R www-data .
  2. Set file and directory permissions:, (*115)

    find . -type d -exec chmod 700 {} \;
    find . -type f -exec chmod 600 {} \;

Getting started with your installation

After you complete the tasks discussed in the preceding section, update Composer and run the installer:, (*116)

  1. Log in to your Magento server as a user with root privileges.
  2. Change to the Magento 2 installation directory. For example,, (*117)

    cd /var/www/html/magento2, (*118)

    Note: On Ubuntu, you might have to use the sudo -s or equivalent command to access this directory., (*119)

  3. As user with privileges to write to the web server docroot, enter composer install, (*120)

    This command updates package dependencies and can take a few minutes to complete., (*121)

  4. Change to the Magento 2 setup subdirectory and enter composer install., (*122)

Note: You must run composer install from both directories., (*123)

Running the Magento 2 installer

This section discusses how to run the command-line installer for Magento 2., (*124)

Note: You must install Magento from its setup subdirectory., (*125)

The installer is designed to be run multiple times if necessary so you can:, (*126)

  • Provide different values, (*127)

    For example, after you configure your web server for Secure Sockets Layer (SSL), you can run the installer to set SSL options., (*128)

  • Correct mistakes in previous installations
  • Install Magento in a different database instance

Note: By default, the installer doesn't overwrite the Magento database if you install the Magento software in the same database instance. You can use the optional clean_database parameter to change this behavior., (*129)

Note: If you get errors during the installation, see Troubleshooting., (*130)

Before you begin, you can run the following commands to find values for some required options:, (*131)

Installer option Command
Language php -f index.php help languages
Time zone php -f index.php help timezones
Currency php -f index.php help currencies
<p>The format of the command follows:</p>

<code>php -f index.php install [--[installation option name]=[installation option value] ...</code>

<p>The following table discusses the meanings of installation option names and values. An example is provided in <a href="#sample-localhost-installation">Sample localhost installation</a>.</p>
Name Value Required?
base_url

Base URL to use to access your Magento Admin and storefront in the format http[s]://[host or ip]/[your Magento base dir]/., (*132)

Note: The scheme (http:// or https://) and a trailing slash are both required., (*133)

[your Magento base dir] is the docroot-relative path in which to install the Magento 2 software. Depending on how you set up your web server and virtual hosts, the path might be magento2 or it might be blank., (*134)

To access Magento on localhost, you can use either http://localhost/[your Magento base dir]/ or http://127.0.0.1/[your Magento base dir]/., (*135)

Yes
backend_frontname Path to access the Magento Admin. This path is appended to Base URL. For example, if Base URL is http://www.example.com and Admin Path is admin, the Admin Panel's URL is http://www.example.com/admin—provided you configured your web server for server rewrites. Yes
db_host

Use any of the following:, (*136)

  • The database server's fully qualified host name or IP address.
  • localhost if your database serve is on the same host as your web server.
  • UNIX socket; for example, /var/run/mysqld/mysqld.sock

Note: You can optionally specify the database server port in its host name like www.example.com:9000, (*137)

Yes
db_name Name of the Magento database instance in which you want to install the Magento database tables. Yes
db_user User name of the Magento database instance owner. Yes
db_pass Magento database instance owner's password. No
db_prefix

Use only if you're installing the Magento database tables in a database instance that has Magento tables in it already., (*138)

In that case, use a prefix to identify the Magento tables for this installation. Some customers have more than one Magento instance running on a server with all tables in the same database., (*139)

This option enables those customers to share the database server with more than one Magento installation., (*140)

No
admin_firstname Magento administrator user's first name. Yes
admin_lastname Magento administrator user's last name. Yes
admin_email Magento administrator user's e-mail address. Yes
admin_username Magento administrator user name. Yes
admin_password Magento administrator user password. Yes
language Language code to use in the Admin and storefront. (If you have not done so already, you can view the list of language codes by entering php -f index.php help languages from the setup directory.) Yes
currency Default currency to use in the storefront. (If you have not done so already, you can view the list of currencies by entering php -f index.php help currencies from the setup directory.) Yes
timezone Default time zone to use in the Admin and storefront. (If you have not done so already, you can view the list of time zones by entering php -f index.php help timezones from the setup directory.) Yes
use_secure

1 enables the use of Secure Sockets Layer (SSL) in all URLs (both Admin and storefront). Make sure your web server supports SSL before you select this option., (*141)

0 disables the use of SSL with Magento. In this case, all other secure URL options are assumed to also be 0., (*142)

No
base_secure_url

1 means SSL is preferred in Magento URLs designed to use it (for example, the checkout page). Make sure your web server supports SSL before you select this option., (*143)

0 means SSL is not used., (*144)

No
use_secure_admin

1 means you use SSL to access the Magento Admin. Make sure your web server supports SSL before you select this option., (*145)

0 means you do not use SSL with the Admin., (*146)

No
admin_use_security_key

1 causes the Magento software to use a randomly generated key value to access pages in the Magento Admin and in forms. These key values help prevent cross-site script forgery attacks., (*147)

0 disables the use of the key., (*148)

No
session_save

Use any of the following:, (*149)

  • files to store session data in the file system. File-based session storage is appropriate unless the Magento file system access is slow or you have a clustered database.
  • db.files to store session data in the database. Choose database storage if you have a clustered database; otherwise, there might not be much benefit over file-based storage.
No
key If you have one, specify a key to encrypt sensitive data in the Magento database. (This includes passwords and personally identifiable customer information.) If you don't have one, Magento generates one for you. No
cleanup_database To drop database tables before installing the Magento 2 software, specify this parameter without a value. Otherwise, the Magento database is left intact. No
db_init_statements Advanced MySQL configuration parameter. Uses database initialization statements to run when connecting to the MySQL database. Consult a reference similar to this one before you set any values. No
sales_order_increment_prefix Specify a string value to use as a prefix for sales orders. Typically, this is used to guarantee unique order numbers for payment processors. No

Sample localhost installation

The following example installs Magento with the following options:, (*150)

  • The Magento software is installed in the magento2 directory relative to the web server docroot on localhost and the path to the Magento Admin is admin; therefore:, (*151)

    Your storefront URL is http://localhost and you can access the Magento Admin at http://localhost/admin, (*152)

  • The database server is on the same host as the web server., (*153)

    The database name is magento, and the user name and password are both magento, (*154)

  • The Magento administrator has the following properties:, (*155)

    • First and last name are is Magento User
    • User name is admin and the password is iamtheadmin
    • E-mail address is user@example.com
  • Default language is en_US (U.S. English), (*156)

  • Default currency is U.S. dollars
  • Default time zone is U.S. Central (America/Chicago)
php -f index.php install --base_url=http://localhost/magento2/
    --backend_frontname=admin 
    --db_host=localhost --db_name=magento 
    --db_user=magento --db_pass=magento 
    --admin_firstname=Magento --admin_lastname=User 
    --admin_email=user@example.com  --admin_username=admin 
    --admin_password=iamtheadmin --language=en_US
    --currency=USD --timezone=America/Chicago

Reinstalling the Magento 2 software

This section discusses how to install the Magento 2 software after you installed it previously. You might do this in an development environment especially to get all the latest code changes., (*157)

To reinstall the Magento 2 software:, (*158)

  1. Optionally delete and re-create the database instance.
  2. Log in to your Magento server as a user with permissions to modify files in the Magento file system.
  3. Enter the following commands in the order shown:, (*159)

    cd [your Magento install dir]
    git pull
    composer install
    cd setup
    composer install
  4. Repeat the tasks discussed in Installing or reinstalling the Magento 2 software., (*160)

Verifying the installation

Verifying the storefront

Go to the storefront in a web browser. For example, if your Magento 2 installation base URL is http://www.example.com, enter it in your browser's address or location bar., (*161)

The following figure shows a sample storefront page. If it displays as follows, your installation was a success!, (*162)

Magento storefront which verifies a successful installation, (*163)

If the page appears unconfigured (no styles, only text), see Troubleshooting., (*164)

Verifying the Magento Admin

Go to the Magento Admin in a web browser. For example, if your Magento 2 installation base URL is http://www.example.com, and the Admin URL is admin, enter http://www.example.com/admin in your browser's address or location bar., (*165)

(The Admin URL is specified by the value of the backend_frontname installation parameter.), (*166)

When prompted, log in as a Magento Administrator., (*167)

The following figure shows a sample Magento Admin page. If it displays as follows, your installation was a success!, (*168)

Magento Admin which verifies a successful installation, (*169)

If the page appears unconfigured (no styles, only text), see Troubleshooting., (*170)

If you get a 404 (Not Found) error similar to the following, see Troubleshooting:, (*171)

The requested URL /magento2index.php/admin/admin/dashboard/index/key/0c81957145a968b697c32a846598dc2e/ was not found on this server., (*172)

Troubleshooting

Problem: Cannot clone the Magento 2 GitHub repository

Detail: Error is similar to the following:, (*173)

Cloning into 'magento2'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

Solution: Upload your SSH key to GitHub as discussed in the GitHub help page., (*174)

Problem: Cannot run 'composer install'

Suggestion: Change to the directory in which you installed Composer and enter the following command:, (*175)

mv composer.phar /usr/local/bin/composer, (*176)

Problem: During installation, PHP date warning

Details: During the installation, the following message displays:, (*177)

PHP Warning: date(): It is not safe to rely on the system's timezone settings. [more], (*178)

Solution: Set the PHP timezone properly., (*179)

Problem: During installation, the following fatal error displays:

PHP Fatal error: Class 'PDO' not found in /var/www/html/magento2/setup/module/Magento/Setup/src/Module/Setup/ConnectionFactory.php on line 44, (*180)

Solution: Make sure you installed all required PHP extensions., (*181)

Problem: You cannot access Magento in a web browser

Details: The following message displays when you try to access the Magento storefront or Admin:, (*182)

Whoops, it looks like you have an invalid PHP version.
Magento supports PHP 5.4.11 or newer. 

Solution: Either upgrade PHP or restart Apache (Apache might not be using the same PHP version as is on the file system)., (*183)

To restart Apache:, (*184)

  • Ubuntu: service apache2 restart
  • CentOS: service httpd restart

Problem: Error after logging in to the Magento Admin:

The requested URL /magento2index.php/admin/admin/dashboard/index/key/0c81957145a968b697c32a846598dc2e/ was not found on this server., (*185)

Note the lack of a slash character between magento2 and index.php in the URL., (*186)

Solution: The base URL is not correct. The base URL must start with http:// or https:// and it must end with a slash (/). Run the installation again with a valid value., (*187)

Problem: After installing, images and stylesheets do not load; only text displays, no graphics.

Details: The path to images and stylesheets is not correct, either because of an incorrect base URL or because server rewrites are not set up properly. To confirm this is the case, use a web browser inspector to check the paths to static assets and verify those assets are located on the Magento file system., (*188)

Magento 2 static assets should be located under [your Magento install dir]/pub/static/ (there should be frontend and adminhtml directories)., (*189)

Verify your server rewrites setting and your base URL and try again., (*190)

The Versions

06/04 2015

dev-master

9999999-dev

eCommerce Platform for Growth (Community Edition)

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • magento/product-community-edition 0.74.0-beta2

 

The Development Requires