Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Web server returns 403 after I enabled FTP server

Hi --


My web server has started returning a 403, coincidentally after I activated Server's FTP service.


This is what shows up in the error log:

Permission denied: /Library/Server/Web/Data/Sites/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable


There is no .htaccess file in the Sites directory, however.

I added an empty one readable by owner, group, everyone (-rw-r--r-- 1 <me> wheel 0 Oct 15 16:42 .htaccess).

And I turned off the FTP service.

But I still get the same error.


Mods look ok to my eye, which is unreliable:

$ pwd

/Library/Server/Web/Data/Sites/Default

$ ls -alG

total 296

drwxr-xr-x+ 21 root wheel 714 Oct 9 15:57 .

drwxr-x--- 3 <me> wheel 102 Oct 15 16:44 ..

drwxr-xr-x+ 2 root wheel 68 Mar 10 2013 NetBoot

-rw-r--r--+ 1 root wheel 102749 Feb 1 2013 Server.png

...




Whoops.

MacBook Pro, OS X Server, 10.8

Posted on Oct 15, 2013 1:50 PM

Reply
Question marked as Best reply

Posted on Oct 15, 2013 1:52 PM

Oh, no: Sites' mods are totally wrong, of course. It needs to be world-executable.

I did this to fix:

sudo chmod o+x /Library/Server/Web/Data/Sites

1 reply

Web server returns 403 after I enabled FTP server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.