Magento商城系统的安装要求及检查脚本


Magento(麦进斗)商城是一款开源的电子商务系统,功能非常强大,不过对服务器或是虚拟空间的要求也是非常高的,php,mysql版本都有要求的,某些扩展及函数功能也都是必须的。

Magento的系统要求

系统要求来自官方:http://www.magentocommerce.com/system-requirements

  • Supported Operating Systems:
    • Linux x86, x86-64
  • Supported Web Servers:
    • Apache 1.3.x
    • Apache 2.0.x
    • Apache 2.2.x
  • Supported Browsers:
    • Microsoft Internet Explorer 7 and above
    • Mozilla Firefox 3.5 and above
    • Apple Safari 5 and above on Mac only
    • Google Chrome 7 and above
    • Adobe Flash browser plug-in should be installed
  • PHP Compatibility:
    • 5.2.13+
    • Required extensions:
      • PDO_MySQL
      • simplexml
      • mcrypt
      • hash
      • GD
      • DOM
      • iconv
      • curl
      • SOAP (if Webservices API is to be used)
    • Safe_mode off
    • Memory_limit no less than 256Mb (preferably 512)
  • MySQL:
    • 4.1.20 or newer
    • InnoDB storage engine
  • SSL:
    • If HTTPS is used to work in the admin, SSL certificate should be valid. Self-signed SSL certificates are not supported
  • Server – hosting – setup:
  • Ability to run scheduled jobs (crontab) with PHP 5
  • Ability to override options in .htaccess files

我看有的要求还需要装上php扩展ioncube。

Magento的检查脚本

You can test your server for compatibility by following these simple steps:

  1. 下载 magento-check file 放到你有服务器.
  2. 解压后是 magento-check.php
  3. 在浏览器里打开,如:
     xxxx.com/magento-check.php

来自官方:http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento
成功的提示

Congratulations! Your server meets the requirements for Magento.

  • You have PHP 5.2.0 (or greater)
  • Safe Mode is off
  • You have MySQL 4.1.20 (or greater)
  • You have the curl extension
  • You have the dom extension
  • You have the gd extension
  • You have the hash extension
  • You have the iconv extension
  • You have the mcrypt extension
  • You have the pcre extension
  • You have the pdo extension
  • You have the pdo_mysql extension
  • You have the simplexml extension

注意:

运行上面的脚本,php.ini需开启shell_exec函数,打开php.ini,找到shell_exec,在disable_functions前面加分号;注释掉。

另有里面还有句

shell_exec('mysql -V')

这个脚本需要用shell运行mysql命令得到脚本,如果mysql还没有注册为系统命令的话,可能就不能直接这样运行了。需改为全路径的,如:

shell_exec('/usr/local/mysql/bin/mysql -V')

完。


116条回应:“Magento商城系统的安装要求及检查脚本”

  1. 艺创网络公司是西部数码、万网的核心代理,免费诚征代理、200元加盟送代理平台,欢迎咨询qq:66610942 建站680元起400多种模板任你挑选。