magento2php
下載地址:https://github.com/magento/magento2/archive/develop.zipcss
參考地址: 版本要求 這個magento2 要選擇好php的版本 下載綜合版服務器時看好這個服務器支持的具體版本 下邊的網站有具體的版本要求頁,在此就不列出了html
https://www.magentochina.org/blog/download-install-magento.htmlgit
XAMPP 版本上邊明確提示裏邊帶有php的版本.我選的是支持 php 7.0.6的版本 github
下載地址, https://jaist.dl.sourceforge.net/project/xampp/XAMPP%20Windows/7.0.6/xampp-win32-7.0.6-0-VC14-installer.exeredis
若是php 版本沒選擇好,則進行 安裝時會出現版本不正確的提示,致使失敗json
第二:報錯2:打開安裝頁提示服務器
Vendor autoload is not found. Please run 'composer install' under application root directory.session
沒安裝composer 是php的依賴項下載服務吧.我的理解,總之須要安裝. 運行xammpp 裏邊的 命令行 cd 進入htdoc目錄 composer install mvc
結果又報錯:
# composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension. Problem 2 - The requested PHP extension ext-xsl * is missing from your system. Install or enable PHP's xsl extension.
這是提示,php.ini 沒有把上邊要求的註釋掉的內容打開,這兩個intl 和xsl 都有相關的dll 庫在php的ext 目錄下.
extension=php_intl.dll
extension=php_xsl.dll
在從新運行composer install 問題解決
# composer install Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 99 installs, 0 updates, 0 removals - Installing magento/magento-composer-installer (0.1.12): Downloading (100%) - Installing zendframework/zend-stdlib (2.7.7): Downloading (100%) - Installing zendframework/zend-hydrator (1.1.0): Downloading (100%) - Installing psr/container (1.0.0): Downloading (100%) - Installing container-interop/container-interop (1.2.0): Downloading (100%) - Installing zendframework/zend-validator (2.9.1): Downloading (100%) - Installing zendframework/zend-escaper (2.5.2): Downloading (100%) - Installing zendframework/zend-uri (2.5.2): Downloading (100%) - Installing zendframework/zend-eventmanager (2.6.3): Downloading (100%) - Installing zendframework/zend-code (3.1.0): Downloading (100%) - Installing zendframework/zend-server (2.7.0): Downloading (100%) - Installing zendframework/zend-soap (2.6.0): Downloading (100%) - Installing zendframework/zend-math (2.7.0): Downloading (100%) - Installing zendframework/zend-crypt (2.6.0): Downloading (100%) - Installing zendframework/zend-console (2.6.0): Downloading (100%) - Installing zendframework/zend-filter (2.7.2): Downloading (100%) - Installing zendframework/zend-inputfilter (2.7.4): Downloading (100%) - Installing zendframework/zend-form (2.10.2): Downloading (100%) - Installing zendframework/zend-servicemanager (2.7.8): Downloading (100%) - Installing zendframework/zend-mvc (2.6.3): Downloading (100%) - Installing zendframework/zend-text (2.6.0): Downloading (100%) - Installing zendframework/zend-di (2.6.1): Downloading (100%) - Installing zendframework/zend-loader (2.5.1): Downloading (100%) - Installing zendframework/zend-http (2.6.0): Downloading (100%) - Installing zendframework/zend-db (2.8.2): Downloading (100%) - Installing paragonie/random_compat (v2.0.10): Downloading (100%) - Installing zendframework/zend-captcha (2.7.1): Downloading (100%) - Installing colinmollenhour/credis (1.6): Downloading (100%) - Installing colinmollenhour/php-redis-session-abstract (v1.2.2): Downloading (100%) - Installing symfony/polyfill-mbstring (v1.4.0): Downloading (100%) - Installing psr/log (1.0.2): Downloading (100%) - Installing symfony/debug (v3.0.9): Downloading (100%) - Installing symfony/console (v2.8.22): Downloading (100%) - Installing colinmollenhour/cache-backend-redis (1.10.2): Downloading (100%) - Installing colinmollenhour/cache-backend-file (1.4): Downloading (100%) - Installing pelago/emogrifier (v0.1.1): Downloading (100%) - Installing tubalmartin/cssmin (v3.0.0): Downloading (100%) - Installing braintree/braintree_php (3.22.0): Downloading (100%) - Installing tedivm/jshrink (v1.1.0): Downloading (100%) - Installing symfony/process (v2.8.22): Downloading (100%) - Installing symfony/finder (v3.3.2): Downloading (100%) - Installing symfony/filesystem (v3.3.2): Downloading (100%) - Installing seld/phar-utils (1.0.1): Downloading (100%) - Installing seld/jsonlint (1.6.1): Downloading (100%) - Installing seld/cli-prompt (1.0.3): Downloading (100%) - Installing justinrainbow/json-schema (5.2.1): Downloading (100%) - Installing composer/spdx-licenses (1.1.6): Downloading (100%) - Installing composer/semver (1.4.2): Downloading (100%) - Installing composer/ca-bundle (1.0.7): Downloading (100%) - Installing composer/composer (1.4.1): Downloading (100%) - Installing magento/composer (1.2.0): Downloading (100%) - Installing ramsey/uuid (3.6.1): Downloading (100%) - Installing symfony/yaml (v2.8.22): Downloading (100%) - Installing sebastian/version (1.0.6): Downloading (100%) - Installing sebastian/recursion-context (1.0.5): Downloading (100%) - Installing sebastian/exporter (1.2.2): Downloading (100%) - Installing sebastian/environment (1.3.8): Downloading (100%) - Installing sebastian/diff (1.4.3): Downloading (100%) - Installing sebastian/comparator (1.2.4): Downloading (100%) - Installing doctrine/instantiator (1.0.5): Downloading (100%) - Installing phpunit/php-text-template (1.2.1): Downloading (100%) - Installing phpunit/phpunit-mock-objects (2.3.8): Downloading (100%) - Installing phpunit/php-timer (1.0.9): Downloading (100%) - Installing phpunit/php-file-iterator (1.3.4): Downloading (100%) - Installing phpunit/php-token-stream (1.4.11): Downloading (100%) - Installing phpunit/php-code-coverage (2.2.4): Downloading (100%) - Installing phpunit/phpunit (4.1.0): Downloading (100%)
成功: