WebFaction
Community site: login faq

Hello. I try to install moinmoin wiki. Everything worked fine: http://wiki.velessoft.webfactional.com/ I created new ftp user and granded permission for wiki application folder like described: link text

And after this site stopped to work with error: Premature end of script headers: index.cgi

As i found the mask of ACL for wiki application folder after adding new user is "rwx":

$ getfacl $HOME/webapps/wiki
getfacl: Removing leading '/' from absolute path names
# file: home/velessoft/webapps/wiki
# owner: velessoft
# group: velessoft
user::rwx
user:wadim:rwx
group::--x
mask::rwx
other::--x

with "rwx" mask ftp user can write and read from folder, but site does not work.

When i changed mask to "r-x" ($ setfacl -R -m m:r-x $HOME/webapps/wiki) Site works fine, but ftp user can not write to wiki application folder

How can i make site to work and ftp user to have read and write permission?

Thanks

asked 22 Feb '11, 09:56

perses
111
accept rate: 0%


You should leave the mask to "rwx" - there is no special reason to use the mask at all (and our documentation does not suggest any changes to be made to the ACL mask).

With the mask set to "rwx", you should check why the MoinMoin applicaiton isn't working. Perhaps you granted 0777 permissions to the MoinMoin CGI executable? If you did so, please change the permissions back to 0755.

permanent link

answered 22 Feb '11, 10:44

tie
1.4k13
accept rate: 44%

I followed exactly procedure described in the webfaction documentation and finally the site did not work. After i tried to find a reason and when i changed the mask for application folder, the site started to work again, but ftp user had no permission to write in the application folder.

I did not change explicitly permission for MoinMoin CGI (index.cgi). But i tried to grand 0755 permission (as you advised) for index.cgi:

$ chmod 0755 $HOME/webapps/wiki/index.cgi
$ getfacl $HOME/webapps/wiki/index.cgi
getfacl: Removing leading '/' from absolute path names
# file: home/velessoft/webapps/wiki/index.cgi
# owner: velessoft
# group: velessoft
user::rwx
user:wadim:rwx                  #effective:r-x
group::--x

And the problem still exists.

What else can i look?

(23 Feb '11, 03:05) perses

The application started to work when i granted 0755 permission to the application folder. Thank you for your help.

P.S may be it should be included to documentation

permanent link

answered 23 Feb '11, 03:30

perses
111
accept rate: 0%

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:

×62
×12
×7
×6
×1

question asked: 22 Feb '11, 09:56

question was seen: 5,724 times

last updated: 23 Feb '11, 03:30

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