Magento 安装信息
我正在使用 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 个其他更改)
首先,我替换了 apache/bin/ 中的一个文件 我用较新版本的 libmysql.dll 替换了 libmysql.dll
在安装的下一步中,我使用 127.0.0.1 代替 localhost
完成安装后,为了登录到管理部分,我必须评论特定文件的一部分。
文件的位置是 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
First I replaced a file in apache/bin/
I replaced libmysql.dll with a newer version of libmysql.dllIn the next step of the installation i used 127.0.0.1 in place of localhost
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 wasapp/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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)