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
cgi скрипты не работают
Re: cgi скрипты не работают
при обработке скрипта сейчас выдается обычный текст из файла. скрипт не работает.
Re: cgi скрипты не работают
php скрипты работают, cgi нет.
Re: cgi скрипты не работают
вот пример скрипта
Code: Select all
#!/bin/sh
echo "Content-type: text/plain"
echo
echo "OS:"
uname -a
cat /etc/issue
echo
echo "path:"
pwd
echo
echo "user id:"
id
echo
echo "Environment:"
env
Re: cgi скрипты не работают
пробовал сделать по этому гайду. апач не запускается вообще при установке cgi шаблона.
SpoilerShow
How to enable PHP-FCGI support on a Debian or Ubuntu
* This tutorial is created for servers with less than 1Gb of ram avaialbe. On "medium" servers installation is fully automatic.
1. Install fcgid apache module
apt-get install libapache2-mod-fcgid
a2enmod fcgid
2. Download fcgid template
cd /usr/local/vesta/data/templates/web
wget http://c.vestacp.com/0.9.8/ubuntu/fcgid/apache2.tar.gz
tar -xzvf apache2.tar.gz
rm -f apache2.tar.gz
3. Create new package or set phpfcgid as apache template in the existing package
4. Add new user and assing him package with phpfcgid template
5. Add new domain and check the result
* This tutorial is created for servers with less than 1Gb of ram avaialbe. On "medium" servers installation is fully automatic.
1. Install fcgid apache module
apt-get install libapache2-mod-fcgid
a2enmod fcgid
2. Download fcgid template
cd /usr/local/vesta/data/templates/web
wget http://c.vestacp.com/0.9.8/ubuntu/fcgid/apache2.tar.gz
tar -xzvf apache2.tar.gz
rm -f apache2.tar.gz
3. Create new package or set phpfcgid as apache template in the existing package
4. Add new user and assing him package with phpfcgid template
5. Add new domain and check the result
Re: cgi скрипты не работают
В какой папке скрипт?
У меня шаблон hosting, скрипты в папке home/user/web/domen/cgi-bin, всё нормально работает.
У меня шаблон hosting, скрипты в папке home/user/web/domen/cgi-bin, всё нормально работает.
Re: cgi скрипты не работают
тоесть в папке public_html cgi скрипты не будут работать ?
Re: cgi скрипты не работают
Скорее всего нет. Смотрите, у вас директория со cgi скриптами определяется в ScriptAlias -
Пример по умолчанию:
Но никто не мешает вам указать и другие директории, откуда вы хотите запускать скрипты.
PS: Подробнее в документации, как обычно:
https://httpd.apache.org/docs/2.2/mod/m ... criptalias
Пример по умолчанию:
Code: Select all
ScriptAlias /cgi-bin/ /home/admin/web/domain.ru/cgi-bin/
PS: Подробнее в документации, как обычно:
https://httpd.apache.org/docs/2.2/mod/m ... criptalias