Page 1 of 1
File Permissions
Posted: Thu 29. Apr 2004, 01:13
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 ?
Posted: Thu 29. Apr 2004, 01:24
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!
Posted: Thu 29. Apr 2004, 02:36
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
Posted: Thu 29. Apr 2004, 03:16
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!
Posted: Sat 1. May 2004, 10:01
by Stephan
Thanks alot, I own my own hosting company so I have access to the shell
) 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/