Page 1 of 1

Directory Permissions

Posted: Fri Sep 16, 2005 5:17 pm
by DortoH
Seems I was encountering Internal Error 500 on my serendipity install. After doing some Googling, it became apparent that the it was a permissions problem.

I reset the permissions to the Serendipity folder to 755 and applied it to all files, folders and sub-folders.

Well it worked sort of, but there seems to be other problems with the server that the host is working out.

My question is, should I leave the permissions like that, revert them (if so how) or reset them (again what are the defaults)?

Thanks

Re: Directory Permissions

Posted: Fri Sep 16, 2005 5:45 pm
by garvinhicking
Permissions set to 755 for everything is pretty bad.

You need to have those items set to 777 so that the webserver can write files:

/archives
/plugins
/tempates
/templates_c
.htaccess
serendipity_config_local.inc.php

All other files only need to be READABLE for the webserver, so you can set files to 644 and directories to 755.

Regards,
Garvin

Posted: Fri Sep 16, 2005 5:57 pm
by DortoH
For directories like Plugins and Templates, does just the root folder need 777 or do all the subfolders/files also need 777?

Posted: Fri Sep 16, 2005 6:09 pm
by garvinhicking
For templates, all contained files need to be 777.

The the plugins, only the plugins downloaded via spartacus need to be writable, as spartacus needs write privilege to update those files. The core plugin folder also only needs to be 777 in case you plan to use spartacus.

Regards,
Garvin