我为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”文件中,以便为我的文件设置正确的文件权限?
答案 0 :(得分:0)
由于没有人有答案我自己找到了。 默认的Magento文件权限是:777用于目录,666用于文件,在&#34; Magento Connect Manager&#34;您可以将它们更改为755,最后是644,然后将正确安装包。