Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Synology permissions for web folder and site folders

Posted on 2014-03-27
4
Medium Priority
?
4,788 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 111

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 111

Accepted Solution

by:
Ray Paseur earned 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…
Suggested Courses

885 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