File Permissions

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
Stephan
Posts: 17
Joined: Sat 17. Apr 2004, 01:38
Contact:

File Permissions

Post by Stephan »

Is it not possible to have the installation either set the proper file permissions for all files as part of the install process, or a small batch file we can run ???

Or can the install tar ball contain the files with the right permissions ?

Perhaps they already do and my host is just masking them in my shell when I extract ?
Pappnase

Post by Pappnase »

hello stephan

i know that oliver was worked on this feature! but don't know what happens with this. also if you have no server only webspace you can have problems with the rights! i had this as i run a mysql backup script, wich creates also the backup folder. after the script creates the folder i was not able to delete or edit the folder and the included files!

i had one day an scr file to set the chmods for the phpwcms installation but it only works right if wcms was installed in the root!
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

I am fortunate to have shell access and can run the following bash script -after- unzipping the .tar.gz and ~before~ running setup to install or update on my linux host:

chmodphpwcms.sh

Code: Select all

#!/bin/bash
cd /
find /path/to/phpwcms/ -type f -exec chmod 644 {} \;
find /path/to/phpwcms/ -type d -exec chmod 755 {} \;
find /path/to/phpwcms/phpwcms_tmp/thumb_list/ -type d -exec chmod 777 {} \;
find /path/to/phpwcms/phpwcms_tmp/thumb_preview/ -type d -exec chmod 777 {} \;
find /path/to/phpwcms/phpwcms_ftp/ -type d -exec chmod 766 {} \;
find /path/to/phpwcms/phpwcms_filestorage/1 -type d -exec chmod 777 {} \;
find /path/to/phpwcms/phpwcms_filestorage/2 -type d -exec chmod 777 {} \;
find /path/to/phpwcms/phpwcms_filestorage/3 -type d -exec chmod 777 {} \;
find /path/to/phpwcms/phpwcms_filestorage/4 -type d -exec chmod 777 {} \;
find /path/to/phpwcms/phpwcms_filestorage/5 -type d -exec chmod 777 {} \;
find /path/to/phpwcms/phpwcms_filestorage/6 -type d -exec chmod 777 {} \;
find /path/to/phpwcms/phpwcms_filestorage/7 -type d -exec chmod 777 {} \;
find /path/to/phpwcms/phpwcms_filestorage/8 -type d -exec chmod 777 {} \;
find /path/to/phpwcms/phpwcms_filestorage/9 -type d -exec chmod 777 {} \;
find /path/to/phpwcms/phpwcms_filestorage/10 -type d -exec chmod 777 {} \;
find /path/to/phpwcms/content/images/ -type d -exec chmod 777 {} \;
chmod 666 /path/to/phpwcms/phpwcms_template/inc_css/frontend.css
chmod 666 /path/to/phpwcms/phpwcms_template/inc_default/startup.html
chmod 666 /path/to/phpwcms/setup/setup.conf.inc.php
Pappnase

Post by Pappnase »

DeXXus wrote:I am fortunate to have shell access and can run the following bash script -after- unzipping the .tar.gz and ~before~ running setup to install or update on my linux host:
you must be a lucky guy! :wink:
Stephan
Posts: 17
Joined: Sat 17. Apr 2004, 01:38
Contact:

Post by Stephan »

Thanks alot, I own my own hosting company so I have access to the shell :o) That script will come in handy

If anyone needs hosting for phpwcms with the fantastico autoinstaller and an ssh shell let me know

Its a Dell PE2650 2x2.4 Xeon HT 5x73GB Raid 5 box... at Washington, D.C.'s Equinix Datacenter...

Stephan
http://www.rackco.com

My phpwcms projects:
http://www.yaletownview.ca
http://www.f440.com
http://www.kitsilanoview.ca
http://www.full-spectrum-lighting.org/cms/
Post Reply