Magento 安装信息

发布于 2024-10-07 03:58:10 字数 963 浏览 0 评论 0原文

我正在使用 Xampp 1.7.0,我使用的 Magento 版本是 1.4.2.0

除了 ini 中的基本更改(如

extension=php_curl.dll
extension=php_mcrypt.dll
extension=php_mcrypt_filter.dll
extension=php_mhash.dll

我做了 3 个其他更改)

  1. 首先,我替换了 apache/bin/ 中的一个文件 我用较新版本的 libmysql.dll 替换了 libmysql.dll

  2. 在安装的下一步中,我使用 127.0.0.1 代替 localhost

  3. 完成安装后,为了登录到管理部分,我必须评论特定文件的一部分。

文件的位置是 app/code/core/Mage/Core/Model/Session/Abstract/Varien.php 我评论的部分是第 86 到 101 行,

/*
if (!$cookieParams[’httponly’]) {
    unset($cookieParams[’httponly’]);
    if (!$cookieParams[’secure’]) {
        unset($cookieParams[’secure’]);
        if (!$cookieParams[’domain’]) {
            unset($cookieParams[’domain’]);
        }
    }
}

if (isset($cookieParams[’domain’])) {
    $cookieParams[’domain’] = $cookie->getDomain();
}
*/

之后所有这些似乎都工作正常。我的问题是为什么我提到的 3 个更改对于 Magento 的运行是必要的。

I am using Xampp 1.7.0 and the version of Magento I am using is 1.4.2.0

Apart from basic changes in the ini like

extension=php_curl.dll
extension=php_mcrypt.dll
extension=php_mcrypt_filter.dll
extension=php_mhash.dll

I made 3 other changes

  1. First I replaced a file in apache/bin/
    I replaced libmysql.dll with a newer version of libmysql.dll

  2. In the next step of the installation i used 127.0.0.1 in place of localhost

  3. After complete installation in order to login to the admin section I had to comment a section of a particular file.

The location of the file was
app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
The section I commented was lines 86 to 101

/*
if (!$cookieParams[’httponly’]) {
    unset($cookieParams[’httponly’]);
    if (!$cookieParams[’secure’]) {
        unset($cookieParams[’secure’]);
        if (!$cookieParams[’domain’]) {
            unset($cookieParams[’domain’]);
        }
    }
}

if (isset($cookieParams[’domain’])) {
    $cookieParams[’domain’] = $cookie->getDomain();
}
*/

After This all of it seems to be working fine. My question is why the 3 changes I have mentioned are necessary in order to make Magento work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

  1. magento 需要某些扩展,
  2. 您可以通过使用域名获得更好的结果,
  3. 但无法在本地主机上创建 cookie,因此您最好为本地主机指定一个名称,如 local.host 并将其添加到主机文件中
  1. magento needs certain extensions
  2. you get better results by using domain name
  3. fails to create cookies on localhost so you better give your localhost a name like local.host and add it to the host file
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文