salut,
je suis en train d'essayer d'installer apache et php5 en tant que cgi (d'apres un tutoriel).
je suis sous debian.
* apache2 a ete installe lors de l'installation du systeme avec php4
* j'ai desintalle php4 en utilisant synaptic
* j'ai installe php5 a partir des sources
1 2 3
| # ./configure --enable-fastcgi --with-config-file=/var/www/php.ini --with-gd=/usr
--with-pdflib=/usr/local --with-png-dir=/usr --with-freetype-dir=/usr --with-zlib=/usr --with-pgsql
--with-regex=system --enable-dbase --enable-dbx --with-jpeg-dir=/usr --enable-versioning |
* ensuite j'ai configure pour que php tourne en tant que cgi :
#cp /usr/local/bin/php /usr/lib/cgi-bin/
1 2 3
| echo ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ >> /etc/apache/httpd.conf
echo AddType application/x-httpd-php .php .php3 .php4 >> /etc/apache/httpd.conf
echo Action application/x-httpd-php \"/cgi-bin/php\" >> /etc/apache/httpd.conf |
mais quand je redemarre le serveur :
1 2 3
| # /etc/init.d/apache2 start
Starting web server: Apache2Syntax error on line 341 of /etc/apache2/apache2.conf:
Invalid command 'Action', perhaps mis-spelled or defined by a module not included in the server configuration |
Visiblement apache ne trouve pas php. Comment faire pour reparer cette erreur?
merci de votre aide.
Julien
Partager