Помогите пожалуйста установить
/etc/passwd
adminххх:ххх: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
Помогите пожалуйста установить
-
- Posts: 22
- Joined: Tue Jan 31, 2023 7:03 pm
Помогите пожалуйста установить
Last edited by goodproposal on Tue Jan 31, 2023 9:48 pm, edited 2 times in total.
Re: Помогите пожалуйста установить
судя по логу каталог создан от /user/web
а вы пытаетесь ставить от admin
а вы пытаетесь ставить от admin
Don't forget to run script update
-
- Posts: 22
- Joined: Tue Jan 31, 2023 7:03 pm
Re: Помогите пожалуйста установить
спасибо за подсказку
а как сделать? под root не ставится
надо заменить
/etc/passwd
adminххх:ххх:mailtoxx:/home/admin:/bin/bash
на
/etc/passwd
adminххх:ххх:mailtoxx:/user/web:/bin/bash
? или как дать разрешение?
а как сделать? под root не ставится
надо заменить
/etc/passwd
adminххх:ххх:mailtoxx:/home/admin:/bin/bash
на
/etc/passwd
adminххх:ххх:mailtoxx:/user/web:/bin/bash
? или как дать разрешение?
Re: Помогите пожалуйста установить
надо
1. НИКОГДА не трогать руками /etc/passwd
2. su web
3. прочесть минимальную книгу про юниксы, а лучше просто дать админу настроить сервак
1. НИКОГДА не трогать руками /etc/passwd
2. su web
3. прочесть минимальную книгу про юниксы, а лучше просто дать админу настроить сервак
Don't forget to run script update
-
- Posts: 22
- Joined: Tue Jan 31, 2023 7:03 pm
Re: Помогите пожалуйста установить
>>> 3. прочесть минимальную книгу про юниксы, а лучше просто дать админу настроить сервак
у меня к сожалению не администрируемый сервер. надо научиться хотя бы азам. не укого спросить
# su web
su: user web does not exist or the user entry does not contain all the required fields
у меня к сожалению не администрируемый сервер. надо научиться хотя бы азам. не укого спросить
# su web
su: user web does not exist or the user entry does not contain all the required fields
-
- Posts: 22
- Joined: Tue Jan 31, 2023 7:03 pm
Re: Помогите пожалуйста установить
такого юзера нет в /etc/passwd
-
- Posts: 22
- Joined: Tue Jan 31, 2023 7:03 pm
Re: Помогите пожалуйста установить
спасибо
разобрался
разобрался
Re: Помогите пожалуйста установить
чем хорош интернет , так это тем что он построен на юниксе на 90%, так что на любой ваш вопрос по юниксам в гугле есть ответ на 100%
Don't forget to run script update
-
- Posts: 22
- Joined: Tue Jan 31, 2023 7:03 pm
Re: Помогите пожалуйста установить
Здравствуйте
скопировал index.php из scj/cgi на корень сайта
но сайт не показывает ничего кроме (белая пустая страница).
nginx
реврайты вставил
nginx -t ok
почему может быть?
скопировал index.php из scj/cgi на корень сайта
но сайт не показывает ничего кроме (белая пустая страница).
nginx
реврайты вставил
nginx -t ok
почему может быть?
Last edited by goodproposal on Wed Feb 01, 2023 3:45 pm, edited 1 time in total.
-
- Posts: 22
- Joined: Tue Jan 31, 2023 7:03 pm
Re: Помогите пожалуйста установить
/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_*;
}
============================
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_*;
}