开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
develop
分支 (4)
develop
sql_data
master
catagory
develop
分支 (4)
develop
sql_data
master
catagory
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
develop
分支 (4)
develop
sql_data
master
catagory
wowcarts
/
install.php
wowcarts
/
install.php
install.php 6.29 KB
一键复制 编辑 原始数据 按行查看 历史
ben.wu@cifang.hk 提交于 2015年07月16日 17:16 +08:00 . 初始化代码
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category Mage
* @package Mage
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* There are two modes to run this script:
*
* 1. Dump available locale options (currencies, locales, timezones) and exit
* php -f install.php -- --get_options
*
* The output can be eval'd in a regular PHP array of the following format:
* array (
* 'locale' =>
* array (
* 0 =>
* array (
* 'value' => 'zh_TW',
* 'label' => 'Chinese (Taiwan)',
* ),
* ),
* 'currency' =>
* array (
* 0 =>
* array (
* 'value' => 'zh_TW',
* 'label' => 'Chinese (Taiwan)',
* ),
* ),
* 'timezone' =>
* array (
* 0 =>
* array (
* 'value' => 'zh_TW',
* 'label' => 'Chinese (Taiwan)',
* ),
* ),
* );
*
* or parsed in any other way.
*
* 2. Perform the installation
*
* php -f install.php -- --license_agreement_accepted yes \
* --locale en_US --timezone "America/Los_Angeles" --default_currency USD \
* --db_host localhost --db_name magento_database --db_user magento_user --db_pass 123123 \
* --db_prefix magento_ \
* --url "http://magento.example.com/" --use_rewrites yes \
* --use_secure yes --secure_base_url "https://magento.example.com/" --use_secure_admin yes \
* --admin_lastname Owner --admin_firstname Store --admin_email "admin@example.com" \
* --admin_username admin --admin_password 123123 \
* --encryption_key "Encryption Key"
*
* Possible options are:
* --license_agreement_accepted // required, it will accept 'yes' value only
* Locale settings:
* --locale // required, Locale
* --timezone // required, Time Zone
* --default_currency // required, Default Currency
* Database connection options:
* --db_host // required, You can specify server port, ex.: localhost:3307
* // If you are not using default UNIX socket, you can specify it
* // here instead of host, ex.: /var/run/mysqld/mysqld.sock
* --db_model // Database type (mysql4 by default)
* --db_name // required, Database Name
* --db_user // required, Database User Name
* --db_pass // required, Database User Password
* --db_prefix // optional, Database Tables Prefix
* // No table prefix will be used if not specified
* Session options:
* --session_save <files|db> // optional, where to store session data - in db or files. files by default
* Web access options:
* --admin_frontname <path> // optional, admin panel path, "admin" by default
* --url // required, URL the store is supposed to be available at
* --skip_url_validation // optional, skip validating base url during installation or not. No by default
* --use_rewrites // optional, Use Web Server (Apache) Rewrites,
* // You could enable this option to use web server rewrites functionality for improved SEO
* // Please make sure that mod_rewrite is enabled in Apache configuration
* --use_secure // optional, Use Secure URLs (SSL)
* // Enable this option only if you have SSL available.
* --secure_base_url // optional, Secure Base URL
* // Provide a complete base URL for SSL connection.
* // For example: https://www.mydomain.com/magento/
* --use_secure_admin // optional, Run admin interface with SSL
* Backend interface options:
* --enable_charts // optional, Enables Charts on the backend's dashboard
* Admin user personal information:
* --admin_lastname // required, admin user last name
* --admin_firstname // required, admin user first name
* --admin_email // required, admin user email
* Admin user login information:
* --admin_username // required, admin user login
* --admin_password // required, admin user password
* Encryption key:
* --encryption_key // optional, will be automatically generated and displayed on success, if not specified
*
*/
if (version_compare(phpversion(), '5.2.0', '<')===true) {
die('ERROR: Whoops, it looks like you have an invalid PHP version. Magento supports PHP 5.2.0 or newer.');
}
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
require 'app/Mage.php';
try {
$app = Mage::app('default');
$installer = Mage::getSingleton('install/installer_console');
/* @var $installer Mage_Install_Model_Installer_Console */
if ($installer->init($app) // initialize installer
&& $installer->checkConsole() // check if the script is run in shell, otherwise redirect to web-installer
&& $installer->setArgs() // set and validate script arguments
&& $installer->install()) // do install
{
echo 'SUCCESS: ' . $installer->getEncryptionKey() . "\n";
exit;
}
} catch (Exception $e) {
Mage::printException($e);
}
// print all errors if there were any
if ($installer instanceof Mage_Install_Model_Installer_Console) {
if ($installer->getErrors()) {
echo "\nFAILED\n";
foreach ($installer->getErrors() as $error) {
echo $error . "\n";
}
}
}
exit(1); // don't delete this as this should notify about failed installation
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

magento购物商城
暂无标签
AFL-3.0
使用 AFL-3.0 开源许可协议
, OSL-3.0
使用 OSL-3.0 开源许可协议
, OSL-3.0
使用 OSL-3.0 开源许可协议
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/mb_admin/wowcarts.git
git@gitee.com:mb_admin/wowcarts.git
mb_admin
wowcarts
wowcarts
develop
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /