2016-09-28 2 views
0

Ich habe Debian strecken. Ich werde gerne die hallo.wt, die im witty-examples-Paket enthalten ist, ausführen. Ich benutze [1] als Anleitung, aber Fastcgi funktioniert nicht, und fcgi hat eine Zeit lang gearbeitet, funktioniert jetzt aber nicht mehr.Installiere wt cgi in debian mit apache2 suexec fcgi wt

Die Fehlerprotokoll-Show 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 

Die Konfigurationsdateien sind:

# suexec/www-data 
/var/www 
public_html/cgi-binhello.wt 

Oder ich hatte Sonde mit dem gleichen Ergebnis mit:

# suexec/www-data 
/var/www 
public_html/hello.wt 

Die Konfi-Platz hat :

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> 

Die fcgi.conf ist wie:

<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> 

Die hello.wt Datei gehört zu meiner uid und gid, das heißt juanfe, mein normaler Benutzer. Und ich habe Tablett mit:

/var/www/public_html/cgi-binhello.wt 

und mit

/var/www/public_html/hello.wt 

Jede Hilfe wird groß sein, Dank im Voraus.

Juanfe

Antwort

0

ich es lösen, indem die Config-Datei hinzufügen/etc/apache2/suexec/juanfe, mit:

/var/www 
public_html/cgi-binhello.wt 

Und die Berechtigungen in das Verzeichnis/var/www/public-html Einstellung, und/var/run/wt wie:

$ sudo chown juanfe: /var/www/public-html 
$ sudo chown juanfe: /var/run/wt 
$ sudo chmod 755 /var/www/public-html 
$ sudo chmod 755 /var/run/wt 
Verwandte Themen