Fork me on GitHub

Installation Tasks  Bottom

  • Is it possible to have the installation procedure set the proper permissions and remove the installation files?
  • It is more complex than that... kinda.

    First to set file permissions the PN would need Shell permissions. That said, the tar.gz comes with the files in the 'best' folder permissions already. This does not include the config.php or the Themes directory... but pnTemp is set correctly. This is an arguable case, I agree. To remove the installation files, again PN would need the proper file/folder permissions. This would be a security concern. There is a security feature with does not allow access to Admin without the removal of the files. I believe this is on purpose.

    The gains would not outway the rewards because it would just further complicate things for the lay user.

    In my guess/opinion.

    --
    David Pahl
    Zikula Support Team
  • That's kinda what I thought. I guess if you can't figure that out......... heh
  • These file permission things are not too easy: As Dave said permissions should be correct if you use tar.gz and a *nix operating system. Removing the installation files would also only work when permissions are set to 666. So if you don't use *nix and tar.gz you would have to set file permissions to all installation files - which is the same procedure as deleting files via FTP. icon_wink

    (I also already thought about that...) icon_wink

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the Zikula Steering Committee
    Read The Zikulan's Blog "If you want people to RTFM, make a better FM!"
  • If you have access, you could write a shell script for the whole thing.


    --
    David Pahl
    Zikula Support Team
  • actually setting permissions and deleting files can be done in PHP rather easy but I think it depeons on the platform. from http://nl2.php.net/chmod

    My PHP script refused to delete read-only files (which is probably a good thing), but I couldnt find out how to fix this on windows.

    @chmod( $entry, 0777 );
    @unlink( $entry );

    chmod isnt supposed to work on windows, but 0777 seems to clear the read only flag, and 0444 seems to set the read only flag.


    I had to use this several times on apache already to delete some temp-files created by PN.
  • Well, there is the prototype of a C#-Installer. A windows programm that works like a ftp programm that automatically installs Postnuke. As that programm doesn't depend on webserver permissions, it's also able to delete stuff and set permissions. The only problem is, that the installer is Axel Guckelsberger's 10th or so project and he would like to find somebody else to finish it.

    So if you want to help us: Find somebody who speaks C# and pay him for the rest of the work that needs to be done. The software is basically working, so there shoudn't be too much work left.

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the Zikula Steering Committee
    Read The Zikulan's Blog "If you want people to RTFM, make a better FM!"
  • I wrote a shell script for the complete install of PN a few years ago. The problem is most users don't have full root to their servers, so they cannot create databases from their quasi-shells provided by CPanel and probably Plesk. It is sitting on one of my PCs somewhere. It isn't that complex, but few users would have a real use for it.

    --
    David Pahl
    Zikula Support Team

This list is based on users active over the last 60 minutes.