Solved

Synology permissions for web folder and site folders

Posted on 2014-03-27
4
4,260 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
[X]
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
  • 2
  • 2
4 Comments
 
LVL 110

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 110

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

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

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

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

617 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