We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
Настройка пакетов (шаблон "hosting")
Настройка пакетов (шаблон "hosting")
Подскажите, пожалуйста, как создать пакет с шаблоном "Хостинг".
Конфигурация: Nginx+php-fpm
Смотрю что в настройках нет пункта "хостинг". Или я не там смотрю?
Но даже у существующему шаблону, нет возможности изменить шаблон, на шаблон "hosting".
Спасибо!
Конфигурация: Nginx+php-fpm
Смотрю что в настройках нет пункта "хостинг". Или я не там смотрю?
Но даже у существующему шаблону, нет возможности изменить шаблон, на шаблон "hosting".
Спасибо!
Re: Настройка пакетов (шаблон "hosting")
Так можно и создать, если нету. Видимо другая конфигурация не предусмотрено.r2d2 wrote:Подскажите, пожалуйста, как создать пакет с шаблоном "Хостинг".
Конфигурация: Nginx+php-fpm
Смотрю что в настройках нет пункта "хостинг". Или я не там смотрю?
Но даже у существующему шаблону, нет возможности изменить шаблон, на шаблон "hosting".
Спасибо!
RHEL and CentOS
переходим в
Code: Select all
cd /usr/local/vesta/data/templates/web/httpd
Code: Select all
wget http://c.vestacp.com/0.9.8/rhel/templates/web/httpd/hosting.stpl
wget http://c.vestacp.com/0.9.8/rhel/templates/web/httpd/hosting.tpl
Code: Select all
cd /usr/local/vesta/data/templates/web/nginx
Code: Select all
wget http://c.vestacp.com/0.9.8/rhel/templates/web/nginx/hosting.sh
wget http://c.vestacp.com/0.9.8/rhel/templates/web/nginx/hosting.stpl
wget http://c.vestacp.com/0.9.8/rhel/templates/web/nginx/hosting.tpl
Debian
переходим в
Code: Select all
sudo cd /usr/local/vesta/data/templates/web/apache2/
Code: Select all
sudo wget http://c.vestacp.com/0.9.8/debian/templates/web/apache2//hosting.stpl
sudo wget http://c.vestacp.com/0.9.8/debian/templates/web/apache2//hosting.tpl
Code: Select all
sudo cd /usr/local/vesta/data/templates/web/nginx
Code: Select all
sudo wget http://c.vestacp.com/0.9.8/debian/templates/web/nginx/hosting.sh
sudo wget http://c.vestacp.com/0.9.8/debian/templates/web/nginx/hosting.stpl
sudo wget http://c.vestacp.com/0.9.8/debian/templates/web/nginx/hosting.tpl
переходим в
Code: Select all
sudo cd /usr/local/vesta/data/templates/web/apache2
Code: Select all
sudo wget http://c.vestacp.com/0.9.8/ubuntu//templates/web/apache2/hosting.stpl
Code: Select all
sudo wget http://c.vestacp.com/0.9.8/ubuntu//templates/web/apache2/hosting.tpl
Code: Select all
sudo cd /usr/local/vesta/data/templates/web/nginx
Code: Select all
sudo wget http://c.vestacp.com/0.9.8/ubuntu//templates/web/nginx/hosting.sh
sudo wget http://c.vestacp.com/0.9.8/ubuntu//templates/web/nginx/hosting.stpl
sudo wget http://c.vestacp.com/0.9.8/ubuntu//templates/web/nginx/hosting.tpl
Re: Настройка пакетов (шаблон "hosting")
Этот шаблон доступен только при стеке apache + nginx
Re: Настройка пакетов (шаблон "hosting")
Спасибо Mr.Erbutw, imperio!
Наверно нужно было начать с задачи. :)
А задача была следующая, нужно изолировать сайты, чтобы в случае заражения, вирус не мог перейти на другие сайты. Для этого планировал создать разных пользователей. Но еще нужно настроить, чтобы и сервисы работали под разными пользователями.
может кто-то подскажет, возможно ли это сделать штатными средствами панели? Или в данный момент только вручную? Но если вручную, то как? Подскажите, пожалуйста!
у меня Nginx+php-fpm, Debian 8
Наверно нужно было начать с задачи. :)
А задача была следующая, нужно изолировать сайты, чтобы в случае заражения, вирус не мог перейти на другие сайты. Для этого планировал создать разных пользователей. Но еще нужно настроить, чтобы и сервисы работали под разными пользователями.
может кто-то подскажет, возможно ли это сделать штатными средствами панели? Или в данный момент только вручную? Но если вручную, то как? Подскажите, пожалуйста!
у меня Nginx+php-fpm, Debian 8
Если я правильно понял, ваш вариант описывает создание шаблона для apache + nginx, но в моем случае (Nginx+php-fpm) это не подойдетMr.Erbutw wrote: Так можно и создать, если нету. Видимо другая конфигурация не предусмотрено
Re: Настройка пакетов (шаблон "hosting")
Думаю нужно добавить что-то такое:r2d2 wrote:Спасибо Mr.Erbutw, imperio!
может кто-то подскажет, возможно ли это сделать штатными средствами панели? Или в данный момент только вручную? Но если вручную, то как? Подскажите, пожалуйста!
у меня Nginx+php-fpm, Debian 8
Code: Select all
php_admin_value[open_basedir] = %docroot%:%home%/%user%/tmp
Re: Настройка пакетов (шаблон "hosting")
Уважаемый скурудо, уточните пожалуйста куда нужно запихать эту надпись.skurudo wrote:Думаю нужно добавить что-то такое:Code: Select all
php_admin_value[open_basedir] = %docroot%:%home%/%user%/tmp
Re: Настройка пакетов (шаблон "hosting")
Я добавил в файл /usr/local/vesta/data/templates/web/php-fpm/default.tpl строку
потому как при указании /home/%user%/web/%domain% не всё парсится в шаблоне, баг, хех.
Code: Select all
php_admin_value[open_basedir] = /home/%user%