<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум PHP-MyAdmin.RU &mdash; Решение проблемы некорректного конфигурирования session.save_path]]></title>
		<link>https://forum.php-myadmin.ru/viewtopic.php?id=172</link>
		<atom:link href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=172&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Решение проблемы некорректного конфигурирования session.save_path».]]></description>
		<lastBuildDate>Tue, 25 Jul 2006 17:49:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Решение проблемы некорректного конфигурирования session.save_path]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=1051#p1051</link>
			<description><![CDATA[<p>Распаковал PMA в поддиректорию своего учебного сайта &quot;phpmyadmin&quot;.<br />Создал директорию &quot;config&quot;.<br />Отправился на http://localhost/phpmyadmin, чтобы открыть setup.php.<br />На открытом индексе PMA внизу вижу 2 ошибки:</p><p>1. Warning:&nbsp; Unknown: open(/tmp\sess_8954767500a61dc446f6f3ec0f768654, O_RDWR) failed: No such file or directory (2) in Unknown on line 0.<br />2. Warning:&nbsp; Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0.</p><p>Отправляюсь в php.ini в блок [SESSION]<br />Вижу:<br /></p><div class="codebox"><pre><code>session.save_handler = files</code></pre></div><p>и<br /></p><div class="codebox"><pre><code>session.save_path = &quot;/tmp&quot;</code></pre></div><p>Читаю тут же комментарий: <br />; Argument passed to save_handler.&nbsp; In the case of files, this is the path<br />; where data files are stored. <strong>Note: Windows users have to change this<br />; variable in order to use PHP&#039;s session functions.</strong><br />;<br />; As of PHP 4.0.1, you can define the path as:<br />;<br />;&nbsp; &nbsp; &nbsp;session.save_path = &quot;N;/path&quot;<br />;<br />; where N is an integer.&nbsp; Instead of storing all the session files in<br />; /path, what this will do is use subdirectories N-levels deep, and<br />; store the session data in those directories.&nbsp; This is useful if you<br />; or your OS have problems with lots of files in one directory, and is<br />; a more efficient layout for servers that handle lots of sessions.<br />;<br />; NOTE 1: PHP will not create this directory structure automatically.<br />;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;You can use the script in the ext/session dir for that purpose.<br />; <strong>NOTE 2: See the section on garbage collection below if you choose to<br />;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;use subdirectories for session storage</strong><br />;<br />; The file storage module creates files using mode 600 by default.<br />; You can change that by using<br />;<br />;&nbsp; &nbsp; &nbsp;session.save_path = &quot;N;MODE;/path&quot;<br />;<br />; where MODE is the octal representation of the mode. Note that this<br />; does not overwrite the process&#039;s umask.</p><p>Соответственно меняю путь до ближайшей мусорки...<br /></p><div class="codebox"><pre><code>session.save_path = &quot;C:\temp&quot;</code></pre></div><p>И ошибки, естессна, исчезли. Но в инете что-то об этом не нашёл.</p>]]></description>
			<author><![CDATA[null@example.com (A-men)]]></author>
			<pubDate>Tue, 25 Jul 2006 17:49:48 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=1051#p1051</guid>
		</item>
	</channel>
</rss>
