<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; centos7 nginx yii-framework]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=37333</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=37333&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «centos7 nginx yii-framework».]]></description>
		<lastBuildDate>Sun, 11 Jan 2015 10:58:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: centos7 nginx yii-framework]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=439986#p439986</link>
			<description><![CDATA[<div class="codebox"><pre><code>getenforce
Disabled</code></pre></div><p>вот конфиг /etc/php-fpm.d/www.conf:<br /></p><div class="codebox"><pre><code>[www]
listen = 127.0.0.1:9000
listen.allowed_clients = 127.0.0.1
user = nginx 
group = nginx
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
slowlog = /var/log/php-fpm/www-slow.log
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
php_admin_flag[log_errors] = on
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/session</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (vinner)]]></author>
			<pubDate>Sun, 11 Jan 2015 10:58:48 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=439986#p439986</guid>
		</item>
		<item>
			<title><![CDATA[Re: centos7 nginx yii-framework]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=439962#p439962</link>
			<description><![CDATA[<div class="quotebox"><cite>vinner пишет:</cite><blockquote><p>Так у меня selinux вообще отключен</p></blockquote></div><p>а вообще об этом надо в первом посте сообщать</p>]]></description>
			<author><![CDATA[null@example.com (alexfinn)]]></author>
			<pubDate>Sat, 10 Jan 2015 19:24:26 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=439962#p439962</guid>
		</item>
		<item>
			<title><![CDATA[Re: centos7 nginx yii-framework]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=439961#p439961</link>
			<description><![CDATA[<p>проверьте еще настройки в конфигах php-fpm, в частности, кому разрешено коннектиться к нему</p>]]></description>
			<author><![CDATA[null@example.com (alexfinn)]]></author>
			<pubDate>Sat, 10 Jan 2015 19:23:51 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=439961#p439961</guid>
		</item>
		<item>
			<title><![CDATA[Re: centos7 nginx yii-framework]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=439960#p439960</link>
			<description><![CDATA[<p>выключен или включен прям в конкретный момент проверять лучше так:</p><div class="codebox"><pre><code># getenforce</code></pre></div><p>отключение в конфиге начнет действовать после перезагрузки</p>]]></description>
			<author><![CDATA[null@example.com (alexfinn)]]></author>
			<pubDate>Sat, 10 Jan 2015 19:23:02 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=439960#p439960</guid>
		</item>
		<item>
			<title><![CDATA[Re: centos7 nginx yii-framework]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=439923#p439923</link>
			<description><![CDATA[<div class="quotebox"><cite>alexfinn пишет:</cite><blockquote><p>selinux настройте<br />пример:</p><div class="codebox"><pre><code># setsebool httpd_can_network_connect on
# chcon -R -t httpd_sys_content_t /usr/share/nginx/html/domain.ua/
# chcon -R -t httpd_sys_rw_content_t /usr/share/nginx/html/domain.ua/</code></pre></div></blockquote></div><p>Так у меня selinux вообще отключен:<br />/etc/selinux/config<br /></p><div class="codebox"><pre><code>SELINUX=disabled</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (vinner)]]></author>
			<pubDate>Sat, 10 Jan 2015 14:47:24 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=439923#p439923</guid>
		</item>
		<item>
			<title><![CDATA[Re: centos7 nginx yii-framework]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=439921#p439921</link>
			<description><![CDATA[<p>selinux настройте<br />пример:</p><div class="codebox"><pre><code># setsebool httpd_can_network_connect on
# chcon -R -t httpd_sys_content_t /usr/share/nginx/html/domain.ua/
# chcon -R -t httpd_sys_rw_content_t /usr/share/nginx/html/domain.ua/</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (alexfinn)]]></author>
			<pubDate>Sat, 10 Jan 2015 14:22:38 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=439921#p439921</guid>
		</item>
		<item>
			<title><![CDATA[centos7 nginx yii-framework]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=439910#p439910</link>
			<description><![CDATA[<p>Добрый день. Подскажите, если кто настраивал yii на nginx+php-fpm </p><div class="codebox"><pre><code>server {
    set $host_path &quot;/usr/share/nginx/html/domain.ua&quot;;
    access_log  /usr/share/nginx/html/domain.ua/log/access.log  main;
    error_log /usr/share/nginx/html/domain.ua/log/error.log;

    server_name  devtest.vsedoma.ua;
    root   $host_path/estate;
    set $yii_bootstrap &quot;index.php&quot;;

    charset utf-8;

    location / {
        index  index.html $yii_bootstrap;
        try_files $uri $uri/ /$yii_bootstrap?$args;
    }

    location ~ ^/(protected|framework|themes/\w+/views) {
        deny  all;
    }

    # отключаем обработку запросов фреймворком к несуществующим статичным файлам
    location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
        try_files $uri =404;
    }

    # передаем PHP-скрипт серверу FastCGI, прослушивающему адрес 127.0.0.1:9000
    location ~ \.php {
        fastcgi_split_path_info  ^(.+\.php)(.*)$;

        # позволяем yii перехватывать запросы к несуществующим PHP-файлам
        set $fsn /$yii_bootstrap;
        if (-f $document_root$fastcgi_script_name){
            set $fsn $fastcgi_script_name;
        }

        fastcgi_pass   127.0.0.1:9000;
        include fastcgi_params;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fsn;

        # PATH_INFO и PATH_TRANSLATED могут быть опущены, но стандарт RFC 3875 определяет для CGI
        fastcgi_param  PATH_INFO        $fastcgi_path_info;
        fastcgi_param  PATH_TRANSLATED  $document_root$fsn;
    }

    # не позволять nginx отдавать файлы, начинающиеся с точки (.htaccess, .svn, .git и прочие)
    location ~ /\. {
        deny all;
        access_log off;
        log_not_found off;
    }
} </code></pre></div><p>Получаю вот такую ошибку<br /></p><div class="codebox"><pre><code>Unable to open primary script: /usr/share/nginx/html/domain.ua/estate/index.php (Permission denied)&quot; while reading response header from upstream
В браузере Access denied. </code></pre></div><p>пробовал изменять права. Уже от отчаяния сделал 777 на /usr/share/nginx/html/domain.ua</p><p>у меня на localhost есть 2 папки(на localhost все работает). Nginx и php-fpm запущены под пользователем nginx. Владельцем папки и <br />/usr/share/nginx/html/domain.ua<br />estate - с проектом<br />framework - yii</p>]]></description>
			<author><![CDATA[null@example.com (vinner)]]></author>
			<pubDate>Sat, 10 Jan 2015 12:03:42 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=439910#p439910</guid>
		</item>
	</channel>
</rss>
