[Archlinux][apache2][userdir][cgi] script qui ne s'exécute pas
Bonjour,
je me retrouve comme un couillon à ne pas pouvoir faire fonctionner mes scripts CGI sur Archlinux dans les répertoires utilisateurs désignés :koi:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| # cat /etc/httpd/conf/extra/httpd-userdir.conf
UserDir public_html
UserDir disabled root
<Directory "/home/*/public_html">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
<Directory "/home/*/public_html/cgi-bin/">
Options ExecCGI
SetHandler cgi-script
</Directory> |
par exemple, ce petit script tout bête fonctionne très bien sur Debian, mais sur Archlinux, c'est le code qui est affiché :weird:
:
Code:
1 2 3 4 5
| #!/bin/bash
printf "Content-type: text/plain\n\n"
printf "Hello\n" |
si je fais charger modules/mod_cgi.so, alors le serveur retourne une erreur :End of script output before headers; donc, ça avance un peu...
alors que, depuis /src/http/cgi-bin/, le script fonctionne, et m'affiche Hello :(
Edit: j'ai essayé avec ± le même script en perl, avec le même résultat.