Magento 自定义包未正确设置文件权限

Magento custom package not setting file permissions right

我为 Magento 制作了一个自定义包,我使用的是 1.9.1.0。我是从 Admin 包管理器做的。我从 "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>

是否知道我是否可以将 "switch" 添加到我的 "package.xml" 文件中来为我的文件设置正确的文件权限?

因为没有人有答案我自己找到了。 默认的 Magento 文件权限是:目录 777 和文件 666,在 "Magento Connect Manager" 中你可以将它们更改为 755,最终 644 然后包将正确安装。