Re: php3 mysql
Le Mercredi 06 Mars 2002 17:18, mayer.debianfr@free.fr a écrit :
> Bonsoir,
>
> En suivant un peu le linux mag hs 9,
> apt-get install php3 php3-mysql
> mysql fonctionne, php fonctionne.
euh pkoi php3??
installe plutot php4:
apt-get install php4 php4-mysql mysql mysql-server mysql-client
ensuite, vérifie tes fichiers de conf pour
-ton server web
-php
si apache: /etc/apache/httpd.conf
tu dois avoir:
# pour que le serveur web interprete le code php
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
# pour gérer les indexes
<IfModule mod_dir.c>
DirectoryIndex index.phtml index.php index.html index.php4 indepx.php3
index.htm index.shtml index.cgi
</IfModule>
# pour gérer les fichiers aux extensions php
AddType application/x-httpd-php .php .phtml .php4 .php3 .inc
AddType application/x-httpd-php-source .phps
pour php gérer le mysql, par exemple tout à lza fin de /etc/php4/php.ini :
extension=mysql.so
ensuite vérifie que php fonctionne avec un fichier contenant:
<?
phpinfo();
?>
@+
--
shoegoo
Reply to:
- References:
- php3 mysql
- From: mayer.debianfr@free.fr <mayer.debianfr@free.fr>