У меня есть Debian stretch. Я хотел бы запустить hello.wt, которые входят в пакет остроумных примеров. Я использую [1] в качестве руководства, но fastcgi не работает, и fcgi работал какое-то время, но теперь он больше не работает.Установите wt cgi в debian с apache2 suexec fcgi wt
журнал ошибок шоу запускающего apache2 в:
[2016-Sep-28 11:48:59.548562] 5219 - [info] "WServer/wthttp: fatal: Document root was not set, or was set to the empty path. Use --docroot to set the HTML root directory."
[Wed Sep 28 11:48:59.549866 2016] [fcgid:warn] [pid 5163:tid 139718772893440] (104)Connection reset by peer: [client ::1:54290] mod_fcgid: error reading data from FastCGI server
[Wed Sep 28 11:48:59.549926 2016] [core:error] [pid 5163:tid 139718772893440] [client ::1:54290] End of script output before headers: cgi-binhello.wt
Файлы конфигурации являются:
# suexec/www-data
/var/www
public_html/cgi-binhello.wt
Или у меня был пробник с тем же результатом с:
# suexec/www-data
/var/www
public_html/hello.wt
Сайт конфи имеет :
DocumentRoot /var/www/wt
SuexecUserGroup juanfe juanfe
ScriptAlias "/cgi-bin/" "/var/www/public_html/cgi-bin"
<Directory /var/www/wt/>
Allow from all
Options +ExecCGI
AddHandler cgi-script .wt
</Directory>
fcgi.conf, как:
<IfModule mod_fcgid.c>
AddHandler fcgid-script .wt
SocketPath /var/lib/apache2/fcgid/sock
IdleTimeout -1
ProcessLifeTime -1
MaxProcessCount 10
DefaultMaxClassProcessCount 10
DefaultMinClassProcessCount 1
</IfModule>
Файл hello.wt принадлежат моему UID и GID, то есть juanfe, мой обычный пользователь. И у меня есть поднос с:
/var/www/public_html/cgi-binhello.wt
И
/var/www/public_html/hello.wt
Любая помощь будет здорово, спасибо заранее.
Juanfe