Directory Permissions

Having trouble installing serendipity?
Post Reply
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Directory Permissions

Post 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
Rod
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Directory Permissions

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Post by DortoH »

For directories like Plugins and Templates, does just the root folder need 777 or do all the subfolders/files also need 777?
Rod
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply