Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Language specific forums Russian (Русский) Веб сервер
  • Search

шаблон instantcms

Вопросы по работе Веб сервера
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
IRIPus
Posts: 9
Joined: Thu Dec 24, 2015 4:02 pm

шаблон instantcms
  • Quote

Post by IRIPus » Thu Dec 24, 2015 4:09 pm

Нужен шаблон для instantcms 1.10.3
использую только nginx без httpd +php-fpm + php 5.3 на centos 6.7 86_64

я сделал такой instantcms.tpl и поместил его в /usr/local/vesta/data/templates/web/nginx/php-fpm

Code: Select all

server {
    listen      %ip%:%web_port%;
    server_name %domain_idn% %alias_idn%;
    root        %docroot%;
    index       index.php index.html index.htm;
    access_log  /var/log/nginx/domains/%domain%.log combined;
    access_log  /var/log/nginx/domains/%domain%.bytes bytes;
    error_log   /var/log/nginx/domains/%domain%.error.log error;
	server_name_in_redirect off;

	charset  Windows-1251; ##Это поправит глюки с Ajax

		##Этот блок отвечает за вывод главной страницы
		location = / {
			root   %home%/%user%/web/%domain%/public_html;
			index  index.php index.html;
		}
        location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
            expires     max;
        }
	##А вот здесь обрабатываются остальные запросы
	location / {
		root   %home%/%user%/web/%domain%/public_html;
		index  index.php index.html;

		if (!-e $request_filename) {
			rewrite ^/load/url=(.+)$ /index.php?uri=files&do=download&fileurl=$1 last;
			rewrite ^/go/url=(.+)$ /index.php?uri=files&do=redirect&url=$1 last;
			rewrite ^/(.*)$ /index.php?uri=$1 last;
			##Хоть и написано в инструкции так не делать, но работает именно так. Ошибок вроде нет...
		}
	}

	location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
		access_log        off;
		expires           30d;
		root %home%/%user%/web/%domain%/public_html;
	}

	location ~ \.php$ {
		fastcgi_pass   127.0.0.1:9000;
		fastcgi_index  index.php;
		fastcgi_param  SCRIPT_FILENAME  /usr/local/vesta/data/templates/web/php-fpm$fastcgi_script_name;
		include fastcgi_params;
	}

	location ~ /\.ht {
		deny  all;
	}
}
но выскакивает ошибка когда пытаюсь установить систему или провести migrate

Code: Select all

2015/12/24 17:34:03 [error] 19735#0: *559 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function install() on a non-object in /home/userweb/web/sait.com/public_html/migrate/index.php on line 176" while reading response header from upstream, client: 192.168.121.110, server: sait.com, request: "GET /migrate/index.php?go=1 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9002", host: "sait.com", referrer: "http://sait.com/migrate/"
 
2015/12/24 17:34:05 [error] 19735#0: *559 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function install() on a non-object in /home/userweb/web/sait.com/public_html/migrate/index.php on line 176" while reading response header from upstream, client: 192.168.121.110, server: sait.com, request: "GET /migrate/index.php?go=1 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9002", host: "sait.com", referrer: "http://sait.com/migrate/"
    
и что делать, ума не приложу
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: шаблон instantcms
  • Quote

Post by skurudo » Mon Dec 28, 2015 11:09 am

IRIPus wrote: я сделал такой instantcms.tpl и поместил его в /usr/local/vesta/data/templates/web/nginx/php-fpm
и что делать, ума не приложу
На default тоже не работает?
Возможно ему чего-то таки не хватает еще при инсталляции.
PHP message: PHP Fatal error: Call to a member function install() on a non-object in /home/userweb/web/sait.com/public_html/migrate/index.php on line 176
Падает он здесь, а вот почему?
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Веб сервер”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password