шаблон instantcms
шаблон instantcms
Нужен шаблон для 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
но выскакивает ошибка когда пытаюсь установить систему или провести migrate
и что делать, ума не приложу
использую только 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;
}
}
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/"
Re: шаблон instantcms
На default тоже не работает?IRIPus wrote: я сделал такой instantcms.tpl и поместил его в /usr/local/vesta/data/templates/web/nginx/php-fpm
и что делать, ума не приложу
Возможно ему чего-то таки не хватает еще при инсталляции.
Падает он здесь, а вот почему?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