Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Synology permissions for web folder and site folders

Posted on 2014-03-27
4
3,873 Views
Last Modified: 2014-04-28
I am having trouble with permissions.

I am using synology ds411+ with virtual hosting setup

I have a folder for websites volume1/web
The sites are in
volume1/web/site1.....
volume1/web/site2

etc

I had issues with open dir which were solved by an EE expert but thereafter have lost the plot on what the permissions of the folders should be.

I tried having looked at some synology threads

cd ..
DiskStation> chmod -R 777 volume1/web
DiskStation> chmod -R 777 volume1/web/AcousticLaptops

phpmyadmin didnt like that flagged red.

then I tried 750

but now joombla wont install at all

it gives error
Warning: session_start(): open(/var/services/tmp/sess_9iv22prv0klte5pvs092tuif45, O_RDWR) failed: Permission denied (13) in /volume1/web/AcousticLaptops/libraries/joomla/session/session.php on line 658

so I know I have now screwed up the permissions.

so rather than worry about joombla could someone help me with the permissions set up on the synology.

I am unsure of to go via the control panel or folder properties or do in putty with chmod.

I think if I can get this right my issues with web dev would disappear.
0
Comment
Question by:PeterBaileyUk
  • 2
  • 2
4 Comments
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39958878
I use a shared hosting service (Linux with FastCGI) for my PHP sites.  Don't really know much about Synology, but it's obvious that they have Linux support, and they have an online support forum with a FAQ.
http://www.synology.com/en-global/support/faq/310

My web root and sub-folders have perms set to 0755

My scripts and images have perms set to 0644
0
 

Author Comment

by:PeterBaileyUk
ID: 39960791
do these My scripts and images have perms set to 0644 reside is subfolders of the site folder?
0
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39961339
Yes.   Both scripts and images reside in my web root directory and in sub-folders below the web root.
0
 

Author Closing Comment

by:PeterBaileyUk
ID: 40026769
sorry for delay was away abroad.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question