Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Installation Tasks
-
- Rank: Softmore
- Registered: Feb 07, 2003
- Last visit: May 31, 2010
- Posts: 404
Is it possible to have the installation procedure set the proper permissions and remove the installation files? -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
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 -
- Rank: Softmore
- Registered: Feb 07, 2003
- Last visit: May 31, 2010
- Posts: 404
That's kinda what I thought. I guess if you can't figure that out......... heh -
- Rank: Software Foundation
- Registered: Sep 03, 2002
- Last visit: May 09, 2010
- Posts: 909
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.
(I also already thought about that...)
--
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!" -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
If you have access, you could write a shell script for the whole thing.
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 75
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. -
- Rank: Software Foundation
- Registered: Sep 03, 2002
- Last visit: May 09, 2010
- Posts: 909
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!" -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
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
- Moderated by:
- Support
