WebFaction
Community site: login faq

I've just uploaded some content to a static-only application, and it's showing as 403 Forbidden.

A little Googling suggests that the correct permissions for this content will be 755 for folders, and 644 for files, for the web server user.

Please could you let us know the right command to set all files to 644 recursively, and folders to 755 recursively, for the relevant user on Webfaction servers (is this www-data or something else?).

Thanks.

asked 05 Jun '13, 06:19

AnnaPS
10711020
accept rate: 100%


You need to traverse inside your app's directory and run 2 find commands to do what you want.

cd ~/webapps/<static_app>
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

This will change your files and directories to the mode you want.

All files should be owned by your own user, not www-data.

permanent link

answered 05 Jun '13, 09:33

iliasr ♦♦
2.0k14
accept rate: 35%

Thank you very much.

(05 Jun '13, 10:35) AnnaPS

This didn't weork for me.

(06 Sep '15, 01:09) tutuca

I just responded to your support ticket in regards to this. We'll take it from there.

(06 Sep '15, 01:23) NickR ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×124
×64
×22

question asked: 05 Jun '13, 06:19

question was seen: 5,854 times

last updated: 06 Sep '15, 01:23

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM