PHP 5.1.2

Eléphant du PHP | 54 Messages

04 mai 2008, 18:38

Bonjour,

J'ai décidé (enfin) de migré vers PHP 5
J'ai donc installé php 5 et j'ai vérifier avec php -v si tout était ok. J'ai donc eu les erreur suivant:

Code : Tout sélectionner

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/iconv.so' - Cannot open "/usr/local/lib/php/20050922/iconv.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/mbstring.so' - Cannot open "/usr/local/lib/php/20050922/mbstring.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/pcre.so' - Cannot open "/usr/local/lib/php/20050922/pcre.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/xml.so' - Cannot open "/usr/local/lib/php/20050922/xml.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/zlib.so' - Cannot open "/usr/local/lib/php/20050922/zlib.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/imagick.so' - Cannot open "/usr/local/lib/php/20050922/imagick.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/readline.so' - Cannot open "/usr/local/lib/php/20050922/readline.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/ctype.so' - Cannot open "/usr/local/lib/php/20050922/ctype.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/overload.so' - Cannot open "/usr/local/lib/php/20050922/overload.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/posix.so' - Cannot open "/usr/local/lib/php/20050922/posix.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/tokenizer.so' - Cannot open "/usr/local/lib/php/20050922/tokenizer.so" in Unknown on line 0
Je vais donc dans mon php.ini et modifie la ligne suivant:

Code : Tout sélectionner

; Directory in which the loadable extensions (modules) reside. ;extension_dir = ""
POUR

Code : Tout sélectionner

; Directory in which the loadable extensions (modules) reside. extension_dir = "/usr/local/lib/php/20020429"
20020429 étant lancien nom du repertoire.

Maintenant si je refait php -v jobtient d'autre sorte d'erreur:

Code : Tout sélectionner

PHP Warning: PHP Startup: UåWVSìè: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20050922, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20020429/mbstring.so' - /usr/local/lib/php/20020429/mbstring.so: Undefined symbol "OnUpdateInt" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20020429/pcre.so' - /usr/local/lib/php/20020429/pcre.so: Undefined symbol "empty_string" in Unknown on line 0 PHP Warning: PHP Startup: UåVSu è: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20050922, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: UåVSè: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20050922, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: UåVSè: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20050922, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: UåSè: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20050922, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: (null): Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20050922, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: UåSìè: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20050922, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: è: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20050922, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20020429/tokenizer.so' - /usr/local/lib/php/20020429/tokenizer.so: Undefined symbol "empty_string" in Unknown on line 0 PHP 5.1.2 (cli) (built: May 4 2008 10:58:44) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
La je n'y comprend plus rien. J'ai beau chercher sur Internet, J'ai rien trouvé qui pouvais m'aider (ce sont tous des serveur Windows tandis que moi je suis sous Unix)

`Merci d'avance à ceux et celles qui m'aiderons!!! :wink:
S'il faut vivre longtemps, vaux mieu le faire avec le sourire.

ViPHP
ViPHP | 5924 Messages

04 mai 2008, 19:18

Les modules ne sont pas compatibles avec ta version de php, il faut les recompiler.

Eléphant du PHP | 54 Messages

04 mai 2008, 21:34

Et comment puije faire cela??
comment je recompille (via Commande, Temrinal)

Je ne trouve pas le repertoire ou se trouve php

Je suis allé dans
/usr/local/etc

Je vois PHP et tout mais rien qui me permet de recompiller...
Où doije allé (sahant que je suis sous FreeBSD qui est quasi identique que Unix

Dite moi comment le faire sur Unix si vous ne savez le faire sous freeBSD je trouverai par la suite! :wink:
S'il faut vivre longtemps, vaux mieu le faire avec le sourire.

ViPHP
ViPHP | 5924 Messages

04 mai 2008, 23:10

FreeBSD est un UNIX…
Tu l'as installé par le système de ports ?

Eléphant du PHP | 54 Messages

04 mai 2008, 23:27

Ouai par le systeme port.

Via

cd /usr/ports/lang/php5 && make install clean
S'il faut vivre longtemps, vaux mieu le faire avec le sourire.

ViPHP
ViPHP | 5924 Messages

05 mai 2008, 00:23

Fais un make config dans le dossier de port lang/php5-extensions et un make install, tu pourras choisir toutes les extensions à installer, et ensuite modifier ton php.ini en conséquence (en l'occurence normalement les extensions sont définies à part et il faudra que tu les retire du php.ini, et de même, l'installateur modifie le php.ini)

Eléphant du PHP | 54 Messages

05 mai 2008, 00:29

Merci.

Je suis en train de tout recompiler et j'obtient l'erreur suivante arrivé a une librairie... (dautre avant on été installé sans probleme jusqua celle la)

Code : Tout sélectionner

===> Installing for pecl-imagick-0.9.11_4 ===> pecl-imagick-0.9.11_4 depends on file: /usr/local/include/php/main/php.h - found ===> Generating temporary packing list ===> Checking if graphics/pecl-imagick already installed ===> pecl-imagick-0.9.11_4 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of graphics/pecl-imagick without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Stop in /usr/ports/graphics/pecl-imagick. *** Error code 1 Stop in /usr/ports/lang/php5-extensions.
Bizare qu'il soit déjà installé quand dans le repertoire php5-extensions j'ai fait un Make deinstall apres un make config et un make install....

Où le deinstaller car jaimerais TOUT installé via php5-extensions

EDIT: Apres terminaison de recompilation complete il n'y a que cette extension qui semble etre deja installé. Cela veux dire quelle serait deja de la bonne version?
EDIT2: A non voila j'ai trouver.! Sinon apres c'est nikel j'ai refait php -v et puis parfait!

Merci beaucoup! a toi
S'il faut vivre longtemps, vaux mieu le faire avec le sourire.

ViPHP
ViPHP | 3300 Messages

05 mai 2008, 07:52

han, un sujet freebsd et fallait que ça se passe quand jsuis pas la! abusif!
Fait du php depuis que ca existe ou presque :)

ViPHP
ViPHP | 5924 Messages

05 mai 2008, 08:13

Mouarf, je l'ai eu, je l'ai eu :P

ViPHP
ViPHP | 3300 Messages

05 mai 2008, 09:53

Mouarf, je l'ai eu, je l'ai eu :P
le prochain pour moi oki? allez fait pas ton égoiste :)
Fait du php depuis que ca existe ou presque :)

Eléphant du PHP | 54 Messages

05 mai 2008, 12:56

Nagol Je vais faire un effort de me trouver un autre problème :lol: Tu pourras alors m'aider! :wink:
S'il faut vivre longtemps, vaux mieu le faire avec le sourire.