Xepher.Net Forums

Xepher.net => Hosting Q&A => Topic started by: Munerift on June 05, 2006, 12:27:00 AM

Title: Automated "Fix File Permissions"..?
Post by: Munerift on June 05, 2006, 12:27:00 AM
Since I'm phase 2, I use a .php document for my index page. Now every time I update, my main page turns into a class 500 mess, and then I have to trek back to the main site to fix my file permissions. I was wondering Xeph if there's anyway you can have an option to automate this at each .php page upload? (as long as the user specifies they want it, because others can set it to their own values I'm taking it?)
Title: Automated "Fix File Permissions"..?
Post by: griever on June 05, 2006, 03:25:11 AM
I set up WinSCP to automatically upload all files with the right permissions for PHP, but it also uses the same permissions for images and css files.  However, the majority of files I upload are PHP files, so it's okay.  I checked the "Use same settings next time" option, down in the lower left, after setting up the permissions for PHP files.
Title: Automated "Fix File Permissions"..?
Post by: Xepher on June 05, 2006, 12:48:27 PM
Yeah, as griever hinted, file permissions are completely optional, and able to be set by whatever upload program you use. If you use one smart enough, it'll set the right permissions during the actual upload. I'd highly recommend SCP compared to FTP, as most clients are designed with unix-style file permissions designed. Though, in fairness, there are several FTP clients that can deal with permissions quite well too.
Title: Automated "Fix File Permissions"..?
Post by: Databits on June 05, 2006, 04:48:44 PM
Gimme a litte time and I'll set up a guide for this too. May as well convert the old SSH guide into something usefull too.
Title: Automated "Fix File Permissions"..?
Post by: Xepher on June 06, 2006, 12:03:00 AM
Cool, thanks.