I don't understand restrictions in terms of directories nesting. For example, /var/www/folder/index.html directories. What permissions, owner, group should every directory and file have? Is there such a thing as inheritance here? I mean, do outer's directory permissions, owner, group affect its inner directories and files?  All answers here explain permissions only in terms of one separate directory and a file in it. Nobody pays attention to inheritance.  For example, I want to set up an Nginx server to serve /var/www/folder directory and all its sub-directories and files. How should I think about permissions, owners, groups?  /var - what permissions? what are owner and group?  /var/www - what permissions? what are owner and group?  /var/www/folder1 - what permissions? what are owner and group?  /var/www/folder/folder2/ - what permissions? what are owner and group?  /var/www/folder/folder2/index.html - what permissions? what are owner and group?
This is a  about File Permissions on a Linux web server.   I have a Linux web server running Apache2 that hosts several websites. Each website has its own folder in /var/www/.  /var/www/contoso.com/ /var/www/contoso.net/ /var/www/fabrikam.com/   The base directory /var/www/ is owned by root:root. Apache is running as www-data:www-data. The Fabrikam website is maintained by two developers, Alice and Bob. Both Contoso websites are maintained by one developer, Eve. All websites allow users to upload images. If a website is compromised, the impact should be as limited as possible.  I want to know the best way to set up permissions so that Apache can serve the content, the website is secure from attacks, and the developers can still make changes. One of the websites is structured like this:  /var/www/fabrikam.com     /cache     /modules     /styles     /uploads     /index.php   How should the permissions be set on these directories and files? I read somewhere that you should never use 777 permissions on a website, but I don't understand what problems that could cause. During busy periods, the website automatically caches some pages and stores the results in the cache folder. All of the content submitted by website visitors is saved to the uploads folder.
biblatex, biber, is it possible to \printbibliography between two years? With biblatex and Biber, is it possible to print all the bibliography (\printbibliography) from (let's say) 2003 to 2008 in one section? And then in another section print all the bibliography from 2009 to 2016? Correct tracked camera orientation I have been playing around with camera tracking and I'm happy enough with the tracking and alignment of the markers with the footage when viewed through the camera.    The problem is, when I am not looking through the camera I can see that the grid isn't aligned to the camera.    How do you correctly align the grid to this tracked camera? I have set a floor and two points for scale, also clicked setup tracking scene, but this just added cube and plane which were on the grid. Uniform continuity of $\sin(x\sin x )$ for all $x\in (0,\infty)$ 'pagesize' attribute ignored in hot network list Steps to reproduce:   Open  in Guest/Incognito mode or with cookies disabled. This will have 30 questions per page by default. Click the  link and as expected, you'll see questions 1-50 with page size of 50. Go the the  and see the bug: you're in the second page of 30 items per page, i.e. you'll see questions 31-60 instead 51-100 as expected.     It is very annoying. Please fix it.  My user-agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:70.0) Gecko/20100101 Firefox/70.0  There are no plugins installed affecting the site. It happens both when logged in or not.  The mechanism used to work before, but some weeks/months ago it stopped, enough to bother me to post here :)  Here are all modified "privacy" settings from about:support page:  privacy.clearOnShutdown.offlineApps true privacy.clearOnShutdown.openWindows true privacy.clearOnShutdown.siteSettings    true privacy.cpd.offlineApps true privacy.cpd.openWindows true privacy.cpd.passwords   true privacy.cpd.siteSettings    true privacy.donottrackheader.enabled    true privacy.history.custom  true privacy.item.cookies    true privacy.sanitize.migrateClearSavedPwdsOnExit    true privacy.sanitize.migrateFx3Prefs    true privacy.sanitize.pending    [{"id":"shutdown","itemsToClear":["cache","cookies","offlineApps","history","formdata","downloads","sessions","siteSetti privacy.sanitize.sanitizeInProgress ["cache","cookies","offlineApps","history","formdata","downloads","sessions","siteSettings","openWindows"] privacy.sanitize.sanitizeOnShutdown true privacy.sanitize.timeSpan   0 privacy.trackingprotection.enabled  true privacy.trackingprotection.introCount   20 I read somewhere that companies are not required to pay dividends to shareholders (this is correct, yes?).   If so, then if company A never pays dividends to its shareholders, then what is the point of owning company A's stock? Surely the right to one vote for company A's Board can't be that valuable.   What is it that I'm missing? Can I use the valid Schengen visa in old passport? Closed form for $\int_0^\infty\frac{1}{(1+x^2)^s}\,dx$ when $s\in (0.5,\infty)\setminus\mathbb{N}$ I know that the improper integral  $$ \int_0^\infty\frac{1}{(1+x^2)^s}\,dx $$ is convergent for $s&gt;0.5$ and divergent otherwise. Furthermore, it has a closed form for $s \in \mathbb{N}$ (this can be obtained using the Residue Theorem). My question is to know whether it has a closed form for any non-integer $s &gt;0.5$. The difference between log and ln $$\dfrac{1}{2}\ln(x+7)-(2 \ln x+3 \ln y)$$  Our professor let's us solve this but i do not understand how $\ln$ works. He says it has same properties with $\log$ but i still don't get it. What's the difference of the two? I know this, but I can't recollect at all.   What is this thing called?   They are usually centered in a book or writing and I'm certain they have a name but I can't remember for the life of me. They also come in all shapes, colors and sizes. Force alt + tab to switch only on current workspace in GNOME shell I am looking for a clean and fast method to force GNOME in Ubuntu 14.04 to switch between active apps only on the current workspace when pressing the shortcut alt + tab. Explanatory variables may bias predictions I' m asking this question out of sheer curiosity, my teacher was not able to explain it.   If I'm using logistic regression with categorical variables they are coded like {1,2,3}. I guess it wouldn't change my results if I used {4,5,6}. But what if linearity of coding wasn't kept? (say {4,10,99})? What I deal with is just the way of coding factor variables but is it possible that the statistical inference could be "distorted" this way? Or, worst case scenario, would I be able to draw nonsense conclusions from categorical data just because they are coded in some way? Chocolate and oil mixed When I melt 16 oz of chocolate I add 4 oz of oil how long can I keep this and how should it be stored. Someone said something about botulism ?? delay JQuery effects I want to fade out an element and all its child elements after a delay of a few seconds. but I haven't found a way to specify that an effect should start after a specified time delay. How does the British-Irish Visa Scheme (BIVS) work? Is this noun used as an adjective? I read this recently in :     At the end of the summit, the French and European officials had   claimed a points victory over the Germans by getting them to agree   more firmly to a target date of January 1st next year to entrust the   European Central Bank (ECB) with the ultimate authority to supervise   the euro zone’s 6,000-odd banks.   "Points" is a plural, and I suppose it doesn't function as a noun in this sentence since it's following the article "a", so is it an adjective adorning "victory"? I would like my sections to start on a new page if they do not fit on the current page. In other words:  if a section fits on the current page print it, if it does not fit start printing it on the next page.  I would like this to be done automatically.  \usepackage{titlesec} seems to be the solution, but I can not get it to do the job.   Should it be done with titlesec? how ? Is there a better approach? Proof of Equivalence Relation $R=\{(a,b)\in\Bbb N^2: 5\mid (2a+3b)\}$ Given a set of natural numbers ($\Bbb N$), and the relation $R=\{(a,b)\in\Bbb N^2: 5\mid (2a+3b)\}$. Is $R$ an equivalent relation?   My answer: Yes, because $2a + 3b$ is divisible by $5$, if and only if, $2a + 3b − 5b$ is divisible by $5$.  Is my reasoning right?   If it is not, then how do I prove that this is an equivalent relation? Mod shows up with OP background when viewing deleted comments How do I add PHP code/file to HTML(.html) files? Is there a word to describe words that can be spelled different ways? Is there a word in English to describe words that can be spelled more than one way?  For example:   colour and color favourite and favorite   However, this shouldn't be limited to words spelled differently in different dialects, though I'm not sure what other case there would be.