Le 6 Juillet 2002 � 13:26, Mikael Lambert a �crit:
 > Comment puis-je utiliser php avec apache ?  J'ai essay� mais �a ne 
 > marche pas.  Voici ce que j'ai install� :
 > 
 > debian:/tmp/html/agenda# dpkg -l|grep php4
 > ii  php4           4.1.2-4        A server-side, HTML-embedded scripting 
 > langu
 > ii  php4-cgi       4.1.2-4        A server-side, HTML-embedded scripting 
 > langu
 > ii  php4-mysql     4.1.2-4        MySQL module for php4
 > debian:/tmp/html/agenda# dpkg -l|grep apache
 > ii  apache-common  1.3.26-0woody1 Support files for all Apache webservers
 > ii  apache-ssl     1.3.26.1+1.48- Versatile, high-performance HTTP 
 > server with
 > ii  webmin-apache  0.94-6         apache control module for webmin
 > 

V�rifie que tu as la ligne LoadModule php4_module
/usr/lib/apache/1.3/libphp4.so dans /etc/apache/http.conf
et /etc/init.d/apache restart pour que �a soit pris en compte.
 > 
 > J'ai aussi un script php, mais il ne s'ex�cute pas :
 > 
 > debian:/tmp/html/agenda# php4 rappel.php
 > X-Powered-By: PHP/4.1.2
 > Content-type: text/html
 > 
 >   <br />
 > <b>Fatal error</b>:  Call to undefined function:  mysql_connect() in 
 > <b>/tmp/htm
 > l/agenda/rappel.php</b> on line <b>14</b><br />
 > 
 > 

Il faut la ligne extension=mysql.so dans /etc/php4/apache/php.ini pour
pouvoir utiliser mysql avec php4. En plus je ne suis pas sur que cette
ligne soit prise en compte en lan�ant php en ligne de commande (en tout cas
chez moi �a ne fonctionne pas).

Fred


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Répondre à