Page 1 of 1

directory permissions for site root folder

Posted: Wed Jan 15, 2014 6:50 am
by d4creative
I have just experienced problems on my web server which I have not previously had.

My System Information came up with a number of "fails" for:
root_path
previews_path
uploads_path
image_uploads_path

All these directories had 750 permissions ( and I had not changed them, although my web host may have?). I have changed them to 777 and now the errors have gone.

Is it normal for the root_path (i.e. the httpdocs folder) to need 777 permissions? I don't think I have ever had to do that before with CMSMS.

----------------------------------------------

Cms Version: 1.11.4

Config Information:
php_memory_limit:
process_whole_template:
output_compression: false
max_upload_size: 8000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:
phpversion: 5.4.23
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 8M
session_save_path: No check because open basedir active
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.28
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

----------------------------------------------

Re: directory permissions for site root folder

Posted: Wed Jan 15, 2014 7:38 am
by Rolf
Looks like your webhost upgraded PHP version and changed server with other settings causing these issues. Nothing CMSMS could inflict...

Re: directory permissions for site root folder

Posted: Wed Jan 15, 2014 2:11 pm
by JohnnyB
Is it normal for the root_path (i.e. the httpdocs folder) to need 777 permissions? I don't think I have ever had to do that before with CMSMS.
Does 755 work with directories on your server? And, 644 for files?

I think if they are server PHP via the apache handler than you might need to give full write permissions, although it might not hurt to try with 0755 and 0644