Помогите пожалуйста установить

admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Помогите пожалуйста установить

Post by admin »

включите вывод ошибок пхп
думаю не стоит куб
Don't forget to run script update
goodproposal
Posts: 22
Joined: Tue Jan 31, 2023 7:03 pm

Re: Помогите пожалуйста установить

Post by goodproposal »

ioncube есть

это может влиять?


You do not use any modern cache engine - This is not an error. Everything will work, but default cache engine is filecache and it's a bit slow compared to Couchbase or Redis. It's a good idea to use them to improve your server's performance.

Mysql Table Engine: looks like mysql DB tables (rot_gallery_info, rot_gallery_stats1) are not of InnoDB format. it's good idea to tune mysql and use innodb table format for rot_* tables. Please, read wiki for mysql tuning hints.
goodproposal
Posts: 22
Joined: Tue Jan 31, 2023 7:03 pm

Re: Помогите пожалуйста установить

Post by goodproposal »

/
Last edited by goodproposal on Wed Feb 01, 2023 4:13 pm, edited 2 times in total.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Помогите пожалуйста установить

Post by admin »

включить вывод ошибок в php.ini
Don't forget to run script update
goodproposal
Posts: 22
Joined: Tue Jan 31, 2023 7:03 pm

Re: Помогите пожалуйста установить

Post by goodproposal »

2023/02/01 17:10:38 [error] 32842#32842: *26570 FastCGI sent in stderr: "PHP message: PHP Warning: main(common.php): failed to open stream: No such file or directory in /home/user/web/site.life/public_html/index.php on line 3PHP message: PHP Warning: main(common.php): failed to open stream: No such file or directory in /home/user/web/site.life/public_html/index.php on line 3PHP message: PHP Fatal error: main(): Failed opening required 'common.php' (include_path='.:/usr/share/php') in /home/user/web/site.life/public_html/index.php on line 3" while reading response header from upstream, client: 176.59.164.173, server: site.life, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm-site.life.sock:", host: "site.life"
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Помогите пожалуйста установить

Post by admin »

не скопирован common.php
Don't forget to run script update
goodproposal
Posts: 22
Joined: Tue Jan 31, 2023 7:03 pm

Re: Помогите пожалуйста установить

Post by goodproposal »

скопировал все ф-лы из /home/user/web/site.life/public_html/scj/cgi в корень сайта
goodproposal
Posts: 22
Joined: Tue Jan 31, 2023 7:03 pm

Re: Помогите пожалуйста установить

Post by goodproposal »

залил галереи в import

установил
You can create Custom Galleries from FHG or any custom Content.
YES

реврайты в конфиге есть

сграбилось

на сайте набор тумб
кликаю - 404

как узнать почему не открывается страница-галерея?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Помогите пожалуйста установить

Post by admin »

нет реврайтов
Don't forget to run script update
goodproposal
Posts: 22
Joined: Tue Jan 31, 2023 7:03 pm

Re: Помогите пожалуйста установить

Post by goodproposal »

admin wrote: Wed Feb 01, 2023 10:17 pm нет реврайтов
как же нет?


я вставил реврайты в шаблон для сайта




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;

include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*;

set $tcmsroot 'y';

location = /$tcmsroot/scj2.lic {
return 404;
}

location = /scj2.lic {
return 404;
}


location / {

if (!-e $request_filename) {
rewrite "^/([^/]{2})/(.*)$" /$2?force_lng=$1&$query_string ;
}

location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
expires max;
fastcgi_hide_header "Set-Cookie";
}

location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}

fastcgi_pass %backend_lsnr%;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
}
}


location /gallery {
rewrite ^/gallery/([^/]+)/index.html$ /$tcmsroot/cgi/out.php?url=content&slug=$1&$query_string ;
rewrite "^/gallery/([^/]+)/([0-9]{1,2}).html$" /$tcmsroot/cgi/out.php?url=content&slug=$1&item_id=$2&$query_string ;
}

location /category {
rewrite ^/category/([^/]+)/$ /$tcmsroot/cgi/out.php?url=content&p=100&dont_count_in_trade=true&skip_sell=true&group_name=$1&order=ctr&$query_string ;
rewrite ^/category/([^/]+)/([^/]+)/([^/]+)/$ /$tcmsroot/cgi/out.php?url=content&p=100&dont_count_in_trade=true&skip_sell=true&group_name=$1&order=$2&page=$3&$query_string ;
}

location /tag {
rewrite ^/tag/([^/]+)/([^/]+)/([^/]+)/$ /$tcmsroot/tube/index.php?tag=$1&page=$3&order=$2&$query_string ;
rewrite ^/tag/([^/]+)/([^/]+)/$ /$tcmsroot/tube/index.php?tag=$1&page=$2&$query_string ;
rewrite ^/tag/([^/]+)/$ /$tcmsroot/tube/index.php?tag=$1&$query_string ;
}


location /model_galleries {
rewrite ^/model_galleries/([^/]+)/$ /$tcmsroot/tube/?model_slug=$1&force_template=model_galleries ;
rewrite ^/model_galleries/([^/]+)/([^/]+)/$ /$tcmsroot/tube/?model_slug=$1&page=$2&force_template=model_galleries ;
}

location /model {
rewrite ^/model/([^/]+)/$ /$tcmsroot/tube/?model_slug=$1&force_template=model_galleries&$query_string ;
rewrite ^/model/([^/]+)/([^/]+)/([^/]+)/$ /$tcmsroot/tube/?model_slug=$1&force_template=model_galleries&order=$2&page=$3&$query_string ;
}

location /search {
rewrite ^/search/([^/]+)/([^/]+)/$ /$tcmsroot/tube/index.php?search=$1&page=$2&$query_string;
rewrite ^/search/([^/]+)/([^/]+)/([^/]+)/$ /$tcmsroot/tube/index.php?search=$1&order=$2&page=$3&$query_string;
}

location /error/ {
alias %home%/%user%/web/%domain%/document_errors/;
}

location ~ /\.(?!well-known\/) {
deny all;
return 404;
}

location /vstats/ {
alias %home%/%user%/web/%domain%/stats/;
include %home%/%user%/web/%domain%/stats/auth.conf*;
}

include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include %home%/%user%/conf/web/%domain%/nginx.conf_*;
}


вот конфиг
/etc/nginx/conf.d/domains/shop.life.conf



server {
listen 65.777.33.92:80;
server_name shop.life www.shop.life;
root /home/user/web/shop.life/public_html;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/shop.life.log combined;
access_log /var/log/nginx/domains/shop.life.bytes bytes;
error_log /var/log/nginx/domains/shop.life.error.log error;

include /home/user/conf/web/shop.life/nginx.forcessl.conf*;

set $tcmsroot 'y';

location = /$tcmsroot/scj2.lic {
return 404;
}

location = /scj2.lic {
return 404;
}


location / {

if (!-e $request_filename) {
rewrite "^/([^/]{2})/(.*)$" /$2?force_lng=$1&$query_string ;
}

location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
expires max;
fastcgi_hide_header "Set-Cookie";
}

location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}

fastcgi_pass unix:/run/php/php7.4-fpm-shop.life.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
include /home/user/conf/web/shop.life/nginx.fastcgi_cache.conf*;
}
}


location /gallery {
rewrite ^/gallery/([^/]+)/index.html$ /$tcmsroot/cgi/out.php?url=content&slug=$1&$query_string ;
rewrite "^/gallery/([^/]+)/([0-9]{1,2}).html$" /$tcmsroot/cgi/out.php?url=content&slug=$1&item_id=$2&$query_string ;
}

location /category {
rewrite ^/category/([^/]+)/$ /$tcmsroot/cgi/out.php?url=content&p=100&dont_count_in_trade=true&skip_sell=true&group_name=$1&order=ctr&$query_string ;
rewrite ^/category/([^/]+)/([^/]+)/([^/]+)/$ /$tcmsroot/cgi/out.php?url=content&p=100&dont_count_in_trade=true&skip_sell=true&group_name=$1&order=$2&page=$3&$query_string ;
}

location /tag {
rewrite ^/tag/([^/]+)/([^/]+)/([^/]+)/$ /$tcmsroot/tube/index.php?tag=$1&page=$3&order=$2&$query_string ;
rewrite ^/tag/([^/]+)/([^/]+)/$ /$tcmsroot/tube/index.php?tag=$1&page=$2&$query_string ;
rewrite ^/tag/([^/]+)/$ /$tcmsroot/tube/index.php?tag=$1&$query_string ;
}


location /model_galleries {
rewrite ^/model_galleries/([^/]+)/$ /$tcmsroot/tube/?model_slug=$1&force_template=model_galleries ;
rewrite ^/model_galleries/([^/]+)/([^/]+)/$ /$tcmsroot/tube/?model_slug=$1&page=$2&force_template=model_galleries ;
}

location /model {
rewrite ^/model/([^/]+)/$ /$tcmsroot/tube/?model_slug=$1&force_template=model_galleries&$query_string ;
rewrite ^/model/([^/]+)/([^/]+)/([^/]+)/$ /$tcmsroot/tube/?model_slug=$1&force_template=model_galleries&order=$2&page=$3&$query_string ;
}

location /search {
rewrite ^/search/([^/]+)/([^/]+)/$ /$tcmsroot/tube/index.php?search=$1&page=$2&$query_string;
rewrite ^/search/([^/]+)/([^/]+)/([^/]+)/$ /$tcmsroot/tube/index.php?search=$1&order=$2&page=$3&$query_string;
}

location /error/ {
alias /home/user/web/shop.life/document_errors/;
}

location ~ /\.(?!well-known\/) {
deny all;
return 404;
}

location /vstats/ {
alias /home/user/web/shop.life/stats/;
include /home/user/web/shop.life/stats/auth.conf*;
}

include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include /home/user/conf/web/shop.life/nginx.conf_*;
}







тоже самое в
/home/user/conf/web/shop.life/nginx.conf


урл на сайте на выходе вот такой
http://shop.life/gallery/lonely-housewi ... index.html
в итоге клики ведут на 404
Post Reply