By dbc001 on
Just got Drupal running on a Mac OS X Server, but I'm getting some strange errors when I go to Administer -> Themes -> Configure:
* warning: fopen(files/.htaccess) [function.fopen]: failed to open stream: Permission denied in /Library/WebServer/Documents/cms/includes/file.inc on line 117.
* Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your files directory which contains the following lines:
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks
So, I try to add write permission for all users:
$ chmod a+w files/
$ ls -l
...
drwxrw-rw- 4 username admin 136 Sep 13 13:53 files
...
Has anyone else gotten this error? Anyone know how to solve it? I'm a bit lost...
Comments
Do this from the Finder
On the Mac you should use the Get Info window.
Click on the Files folder, do a Get info and in the detail portion of file permission make both Group and Others to read and write. If there are alteady files in this folder, apply the permission to all included elements. Il will catch the hidden .htaccess file.
I find this quicker than firing the Terminal.
/*_*/
http://www.xmacinfo.com
hmmm...
Still no luck:
I still get the same error when I go to Administer -> Themes -> Configure. Any ideas?
I don't actually have direct access to the machine (I'm SSHing into it).
Modify the .htaccess file with VI
In SSH, open "vi" or any text editor and modify the "files" .htaccess file.
Make sure you have these 3 lines in the .htaccess file:
Save the file and then do a chmod 644 on it.
/*_*/
http://www.xmacinfo.com
I'm having the same issue -
I'm having the same issue - local is my Mac dev box and remote is my LAMP server.
I've also double-checked the permissions and have also double-checked that those three lines of code are in the .htaccess file. However, still no luck.
Any ideas?
Thanks,
Tofu
snow leopard server help.
is there a video or a step by step tutorial on how to install on mac osx server. i have snow leopard and i'm about to lose my mind. i am new to macs,servers, and terminal but i have come pretty far. i have a mac pro tower with snow leopard server 10.6. i almost have webmin down but the tar.gz filke i cant seem to extract but im all over it. please if you can help can you give me a step by step for dummies? assuming i dont know anything. any links will help though i think i've seen em all. plus i got the cookbooks as well.
thanks