<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
			<channel>
			<title>Права записи файлов и папок / Вопросы, проблемы и их решения / Alto CMS</title>
			<link>http://79.174.14.219/comments/893/</link>
			<description><![CDATA[Нигде не нашел, какие должны быть права на файлы и папки для записи... Может кто подскажет?]]></description>
			<language>ru</language>
			<managingEditor>noreply@altocms.ru</managingEditor>
			<webMaster>noreply@altocms.ru</webMaster>
			<generator>Alto CMS v.1.5.0b1</generator>
							<item>
					<title>Права записи файлов и папок (comment #16851)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/893/#comment16851</guid>
					<link>http://79.174.14.219/893.html#comment16851</link>
					<author>deal@bmail.ru</author>
					<description><![CDATA[Для быстрых тестов перед установкой использую это в корневой папке движка =)<br/>
<pre class="prettyprint"><code>chmod 777 _tmp && chmod 777 _run && chmod 777 uploads && chmod 777 app/plugins && cd app/config && cp config.local.php.txt config.local.php && chmod 777 config.local.php</code></pre>]]></description>
					<pubDate>Thu, 11 Dec 2014 15:21:44 +0300</pubDate>
									</item>
							<item>
					<title>Права записи файлов и папок (comment #16852)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/893/#comment16852</guid>
					<link>http://79.174.14.219/893.html#comment16852</link>
					<author>reexistent@gmail.com</author>
					<description><![CDATA[Ставлю всегда минимальные права. <br/>
<br/>
Мой скрипт:<br/>
<br/>
<pre class="prettyprint"><code>#!/bin/bash



DIR=/var/www/mysite
USERGROUP=&quot;root.www-data&quot;
WWWDATA=&quot;www-data.www-data&quot;


die()
{
echo -e &quot;$1&quot;

exit 2
}



if [ ! -d $DIR ]; then

die &quot;### Target directory $DIR does not exist&quot;

fi

chown $USERGROUP $DIR -R && \
find $DIR -type f -exec chmod 640 \{\} \; && \
find $DIR -type d -exec chmod 750 \{\} \; || die &quot;### Something went wrong&quot;


chown $WWWDATA $DIR/uploads -R &&\
chown $WWWDATA $DIR/_run -R &&\
chown $WWWDATA $DIR/_tmp -R &&\
chown $WWWDATA $DIR/logs -R || die &quot;### Something went wrong during \&quot;chown $WWWDATA\&quot; on writable directories&quot;




chmod 660 $DIR/app/config/config.local.php &&\
chmod 660 $DIR/app/plugins/plugins.dat || die &quot;### Something is wrong with config.local.php and/or plugins.dat&quot;


exit 0
</code></pre><br/>
<br/>
Права «переустанавливаются» с нуля. Так что можно запускать в любой момент, чтобы все пофиксить.<br/>
<br/>
Имейте в виду что некоторые плагины умудряются нарезать картинки в своих директориях (например смайлики), поэтому может потребоваться их добавить.]]></description>
					<pubDate>Thu, 11 Dec 2014 18:12:47 +0300</pubDate>
									</item>
							<item>
					<title>Права записи файлов и папок (comment #16853)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/893/#comment16853</guid>
					<link>http://79.174.14.219/893.html#comment16853</link>
					<author>reexistent@gmail.com</author>
					<description><![CDATA[упс директорию logs забыл убрать, это я для себя делал. уберите строчку: chown $WWWDATA $DIR/logs]]></description>
					<pubDate>Thu, 11 Dec 2014 18:26:14 +0300</pubDate>
									</item>
							<item>
					<title>Права записи файлов и папок (comment #16854)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/893/#comment16854</guid>
					<link>http://79.174.14.219/893.html#comment16854</link>
					<author>markus1024@yandex.ru</author>
					<description><![CDATA[Для каталогов выставляю 777, для файлов — 666.<br/>
Делаю это <a href="http://altocms.ru/780.html#comment14653" rel="nofollow" >так</a>.]]></description>
					<pubDate>Thu, 11 Dec 2014 20:10:03 +0300</pubDate>
									</item>
					</channel>
	</rss>
