【问题标题】:Magento custom package not setting file permissions rightMagento 自定义包未正确设置文件权限
【发布时间】:2015-12-30 22:39:44
【问题描述】:

我为 Magento 制作了一个自定义包,我使用的是 1.9.1.0。我是从管理员包管理器中完成的。我从“Magento Connect Manager”安装了软件包,它安装没有错误;唯一的问题是我在包中的 PHP 文件是用“666”权限而不是“644”安装的,所以它不会被 PHP 处理器运行,因为权限错误。知道如何解决这个问题吗?

用于制作包的文件具有正确的权限“644”。据我所知,我的 package.xml 文件的语法是正确的:

<?xml version="1.0"?>
<package>
    <name>Magento_Iframe_Finder</name>
    <version>1.4.7.3</version>
    <stability>stable</stability>
    <license uri="http://www.opensource.org/licenses/OSL-3.0">OSL-3.0</license>
    <channel>community</channel>
    <extends/>
    <summary>Magento iframe finder.</summary>
    <description>Magento iframe finder.</description>
    <notes>Easy to install and use</notes>
    <authors><author><name>John Doe</name><user>auto-converted</user><email>johndoe@gmail.com</email></author></authors>
    <date>2015-12-19</date>
    <time>08:04:22</time>
    <contents><target name="mageweb"><dir name="errors"><file name="iframefinder.php" hash="54abb08163b654dd08635b40220c02e2"/></dir></target></contents>
    <compatible/>
    <dependencies><required><php><min>4.7.1</min><max>6.8.9</max></php></required></dependencies>
</package>

知道是否有一个“开关”可以添加到我的“package.xml”文件中,以便为我的文件设置正确的文件权限?

【问题讨论】:

    标签: magento magento-1.9


    【解决方案1】:

    由于没有人知道答案,我自己找到了答案。 默认 Magento 文件权限为:777 用于目录,666 用于文件,在“Magento Connect Manager”中您可以将它们更改为 755,最终 644 将正确安装软件包。

    【讨论】:

      猜你喜欢
      • 2022-08-14
      • 1970-01-01
      • 1970-01-01
      • 2013-11-30
      • 1970-01-01
      • 2014-01-03
      • 1970-01-01
      • 2015-11-14
      • 2015-06-06
      相关资源
      最近更新 更多