We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5340
    • 1,624 Posts
    Hi,

    I am currently working on a installer that also copies files from the install/assets/snippets for example to assets/snippets. The installer is based on the modx installer; basically you just put your files in the install directory edit some files and run the installer.

    I have everything working with the php copy functionality but there are some permission issues on some hosts.
    For example, for the install to work the snippets folder needs to have 0777 permissions and some of the files are copied with 0755 permissions even if I specify 0777. Seems that the user is not part of the Apache group.

    Does anyone know a better way of copying files? I might have to implement functionality that asks ask the user to set the snippets/modules/plugins folders etc to 0777 before installing.

    Thanks