Sur mon nouveau Ubuntu 8.04fastcgi ne fonctionne pas - wrapper déchargé ne fonctionne pas
J'ai installé virtualmin. Ensuite, j'ai mis en place fastcgi comme je l'ai fait sur mon autre serveur (Debian). Bu J'ai un petit problème. Quand j'ouvre le site Web Au lieu d'exécuter l'encapsuleur fastcgi, il le télécharge. Voici config:
<IfModule mod_fastcgi.c>
FastCgiIpcDir /usr/lib/apache2/fastcgi
AddHandler fastcgi-script .fcgi
FastCgiWrapper /usr/local/sbin/suexec
FastCgiConfig -singleThreshold 1 -autoUpdate -idle-timeout 240 -pass-header HTTP_AUTHORIZATION
</IfModule>
website.conf:
SuexecUserGroup "#1002" "#1003"
DocumentRoot /home/przepisy/public_html
ScriptAlias /php-fastcgi/ /home/przepisy/php-fastcgi/
AddHandler php-fastcgi .php
AddType application/x-httpd-php .php
Action php-fastcgi /php-fastcgi/php5-fcgi
DirectoryIndex index.html index.php
<Directory /home/przepisy/public_html>
Options -Indexes +ExecCGI FollowSymLinks
allow from all
AllowOverride All
</Directory>
/home/Przepisy/php-fastcgi/php5-fcgi
#!/bin/sh
PHPRC="/home/przepisy/conf/"
export PHPRC
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=200
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php5-cgi
Si j'accéder au site lui donne ce nom au hasard et quand je regarde le contenu téléchargé, il montre le contenu de php5-fcgi. Quand je spécifie un script php, par exemple index.php, il choisit d'enregistrer et affiche le contenu de php5-fcgi ... Je ne sais pas à ce stade. Cette config a fonctionné sur Debian sans problèmes ...
Enfin fait pour travailler avec fcgid. et ci-dessus config – Engrost