this is not quite feature request...
but i see a real need for tar.gz format which not only compress but also store all file permissions.
so, when we uncompress this file, we do not need to mess with chmod file permissions.
everything sets and ready.
why?
i tried and installed dozens of php scripts. drupal joomla thiswiki thatwiki thiscms thatcms etc...
almost all of them works that way. just extract and everything runs ok.
while modx require a lot of chmod just to make the install script works.
if we try to run anything right after unzip, it gives 500 internal server error.
just search this forum how many people pull their hairs try solving this.....
-
MODX Staff
- 10,725 Posts
Extract the distribution, set your permissions and ownership (you cannot store ownership information or extract the related permissions if you do not have the proper ownership for the target machine), and then create your own tar gz you can just extract and go, with no more messing with permissions. It will work perfectly in your environment, handle ownership properly, and if you setup or move to another environment, it will be easy to do the same thing for that machine.
Denny, even permissions in .tar.gz file won’t work for everyone. It depends on your web server environment. Assuming that it’s some variant of UNIX, are you on your personal server or hosted? Do you have access to the shell? Does the webserver do a set uid to your shell account or does it just run under the daemon’s? Are you running the PHP via mod_php or running as a CGI script?
The answers make a difference, especially if you’re crazy like me and have development set up differently than your production. I run mod_php on my development server because it’s my personal workstation. My web hosting company runs everything as a CGI script and does the suexec to set to my shell account. That means that I require different permissions on the two boxes. I even had that same problem with Drupal.
Hmmm. Actually, it looks like there are four basic environments. Shouldn’t be difficult to create a script that takes the desired group as a parameter and fixes up permissions. Would depend, of course, on the user knowing which group to use.
Mike
Michael Henderson
MODxCMS + Dreamhost P/S + BBEdit
Safari + Mac OS X 10.8
it does work ok now.
after all the permission problems and many 500 internal server error fix.
which takes hours to fix with slow internet and ugly cpanel.
when ssh available it -off course- ease things with only few command.
but with ftp and cpanel all of these take hours...
i never have this issue with other scripts.
like i said i tried dozens of them. and i use many different hosting and platform. cpanel plesk etc...
Never, not even once i have this problem with other popular scripts.
with most other popular scripts, you just extract the archive and run the install script. that’s it. simple.
with modx, we cant even start the install script before we fix all the permission stuffs.
this may be fine with me or others willing to fix the stuffs or know how to do it.
imho,
for many others... some might dont have time to even figure out what the heck wrong with it and just go back with joomla/drupal/whatever...
or this might even scare the heck of newbies and might never come back...
i can see your point. i had similar woes due to permissions when i made the decision to use svn to migrate my sites from dev -> test -> production. if i had been smart, i would have taken the time to write a script to automate the fixes that i had to make to the permissions. but, like you said, i have ssh access so it was easier for me to jump in and run chmod. i’m glad that i don’t have to work through a panel. i’ve never had to use cpanel or plesk to administer my sites. it’d be a heck of a lot harder to run the install.
mike
Michael Henderson
MODxCMS + Dreamhost P/S + BBEdit
Safari + Mac OS X 10.8