Page 1 of 4

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

Posted: Tue Jan 31, 2023 7:17 pm
by goodproposal
Помогите пожалуйста установить
/etc/passwd
admin:x:ххх:ххх:mailtoxx:/home/admin:/bin/bash

==============


root@65-xx-xx-92 ~ # cd - admin
-bash: cd: too many arguments
root@65-xx-xx-92 ~ # su - admin
admin@65-xx-xx-92:~$ cd /home/user/web/site.life/public_html
admin@65-xx-xx-92:/home/user/web/site.life/public_html$ curl -sS http://smartcj.com/updates2/install | php --
Folder name for script (default is scj):

Can not create scj folder, contact support

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

Posted: Tue Jan 31, 2023 7:21 pm
by admin
судя по логу каталог создан от /user/web

а вы пытаетесь ставить от admin

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

Posted: Tue Jan 31, 2023 8:02 pm
by goodproposal
спасибо за подсказку
а как сделать? под root не ставится

надо заменить
/etc/passwd
admin:x:ххх:ххх:mailtoxx:/home/admin:/bin/bash

на

/etc/passwd
admin:x:ххх:ххх:mailtoxx:/user/web:/bin/bash

? или как дать разрешение?

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

Posted: Tue Jan 31, 2023 8:05 pm
by admin
надо

1. НИКОГДА не трогать руками /etc/passwd
2. su web
3. прочесть минимальную книгу про юниксы, а лучше просто дать админу настроить сервак

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

Posted: Tue Jan 31, 2023 8:20 pm
by goodproposal
>>> 3. прочесть минимальную книгу про юниксы, а лучше просто дать админу настроить сервак

у меня к сожалению не администрируемый сервер. надо научиться хотя бы азам. не укого спросить

# su web
su: user web does not exist or the user entry does not contain all the required fields

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

Posted: Tue Jan 31, 2023 8:22 pm
by goodproposal
такого юзера нет в /etc/passwd

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

Posted: Tue Jan 31, 2023 9:12 pm
by goodproposal
спасибо
разобрался

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

Posted: Wed Feb 01, 2023 4:29 am
by admin
чем хорош интернет , так это тем что он построен на юниксе на 90%, так что на любой ваш вопрос по юниксам в гугле есть ответ на 100%

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

Posted: Wed Feb 01, 2023 12:35 pm
by goodproposal
Здравствуйте

скопировал index.php из scj/cgi на корень сайта

но сайт не показывает ничего кроме (белая пустая страница).

nginx

реврайты вставил

nginx -t ok

почему может быть?

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

Posted: Wed Feb 01, 2023 3:45 pm
by goodproposal
/etc/nginx/conf.d/domains/site.com.conf

============================

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

include /home/user/conf/web/site.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-site.life.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
include /home/user/conf/web/site.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/site.life/document_errors/;
}

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

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

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