Re: PHP + Apache-ssl

2002-07-08 Par sujet Davy Gigan
Frédéric Giquel writes:
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 /
bFatal error/b:  Call to undefined function:  mysql_connect() in 
b/tmp/htm
l/agenda/rappel.php/b on line b14/bbr /


  Il faut la ligne extension=mysql.so dans /etc/php4/apache/php.ini pour
  pouvoir utiliser mysql avec php4.
Ceci est valable pour php4 utilisé via apache. Pour l'utilisation de php4
en ligne de commande ou via le module de cgi d'apache, c'est 
/etc/php4/cgi/php.ini qu'il faut modifier.

-- 
Davy Gigan
System  Network Administration  [Please no HTML, I'm not a browser]
University Of Caen (France)   [Pas d'HTML, je ne suis pas un navigateur]


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



PHP + Apache-ssl

2002-07-06 Par sujet Mikael Lambert
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-4A server-side, HTML-embedded scripting 
langu
ii  php4-cgi   4.1.2-4A server-side, HTML-embedded scripting 
langu

ii  php4-mysql 4.1.2-4MySQL 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


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 /
bFatal error/b:  Call to undefined function:  mysql_connect() in 
b/tmp/htm

l/agenda/rappel.php/b on line b14/bbr /




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



Re: PHP + Apache-ssl

2002-07-06 Par sujet Frédéric Giquel
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-4A server-side, HTML-embedded scripting 
  langu
  ii  php4-cgi   4.1.2-4A server-side, HTML-embedded scripting 
  langu
  ii  php4-mysql 4.1.2-4MySQL 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 /
  bFatal error/b:  Call to undefined function:  mysql_connect() in 
  b/tmp/htm
  l/agenda/rappel.php/b on line b14/bbr /
  
  

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]