Compilation de PHP sort en erreur

ViPHP
ViPHP | 5462 Messages

07 juin 2010, 14:29

bizarre puisque si tu le modif après ca change rien a ton configure, mais ca a l'air de marcher la puisque on vois -lsybintl, essaye de compiler pour voir

Eléphant du PHP | 80 Messages

07 juin 2010, 14:46

La compilation se passe sans erreur mais il est impossible de lancer APACHE :

Code : Tout sélectionner

httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: libsybunic.so: cannot open shared object file: No such file or directory

Eléphant du PHP | 80 Messages

07 juin 2010, 14:48

Voici le détail de la compilation :

Code : Tout sélectionner

Installing PHP SAPI module: apache2handler /usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules /usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/ cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la libtool: install: warning: remember to run `libtool --finish /tmp/sources/php-5.3.2/libs' chmod 755 /usr/local/apache2/modules/libphp5.so [activating module `php5' in /usr/local/apache2/conf/httpd.conf] Installing PHP CLI binary: /usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing build environment: /usr/local/lib/php/build/ Installing header files: /usr/local/include/php/ Installing helper programs: /usr/local/bin/ program: phpize program: php-config Installing man pages: /usr/local/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/local/lib/php/ The context allocation routine failed when it tried to load localization files!! One or more following problems may caused the failure Your sybase home directory is /opt/app/sybase. Check the environment variable SYBASE if it is not the one you want! Using locale name "POSIX" defined in environment variable LANG Locale name "POSIX" doesn't exist in your /opt/app/sybase/locales/locales.dat file [PEAR] Archive_Tar - installed: 1.3.3 [PEAR] Console_Getopt - installed: 1.2.3 [PEAR] Structures_Graph- installed: 1.0.2 [PEAR] XML_Util - installed: 1.2.1 [PEAR] PEAR - installed: 1.9.0 Wrote PEAR system config file at: /usr/local/etc/pear.conf You may want to add: /usr/local/lib/php to your php.ini include_path /tmp/sources/php-5.3.2/build/shtool install -c ext/phar/phar.phar /usr/local/bin ln -s -f /usr/local/bin/phar.phar /usr/local/bin/phar Installing PDO headers: /usr/local/include/php/ext/pdo/

ViPHP
ViPHP | 5462 Messages

07 juin 2010, 14:50

Your sybase home directory is /opt/app/sybase. Check the environment variable SYBASE if it is not the one you want!
t'as bien ton dossier lib (de sysbase) dans ton path global ?
essaye en cli : php -m

Eléphant du PHP | 80 Messages

07 juin 2010, 14:55

php -m donne :

Code : Tout sélectionner

The context allocation routine failed when it tried to load localization files!! One or more following problems may caused the failure Your sybase home directory is /opt/app/sybase. Check the environment variable SYBASE if it is not the one you want! Using locale name "POSIX" defined in environment variable LANG Locale name "POSIX" doesn't exist in your /opt/app/sybase/locales/locales.dat file [PHP Modules] Core ctype date dom ereg fileinfo filter hash iconv json libxml pcre PDO pdo_sqlite Phar posix Reflection session SimpleXML SPL SQLite sqlite3 standard sybase_ct tokenizer xml xmlreader xmlwriter [Zend Modules]
Effectivement, mon PATH SYBASE n'était pas initialisé dans la fenêtre où j'ai lancé APACHE.
=D>

Je vais maintenant m'assurer que le CT-Lib fonctionne correctement.

Eléphant du PHP | 80 Messages

07 juin 2010, 15:10

Lorsque je tente de me connecter via Firefox à mon appli, plutôt que d'interpreter le PHP, il m'affiche le contenu du fichier index.php :

Code : Tout sélectionner

<?php include ("Asemon_report.php"); ?>
???

Eléphant du PHP | 314 Messages

07 juin 2010, 15:11

Hello,

tu as fais un apache ( ou httpd ) reload ?
Cordialement,
Julien - http://laravel.fr/

ViPHP
ViPHP | 5462 Messages

07 juin 2010, 15:13

Lorsque je tente de me connecter via Firefox à mon appli, plutôt que d'interpreter le PHP, il m'affiche le contenu du fichier index.php :

Code : Tout sélectionner

<?php include ("Asemon_report.php"); ?>
???
ton module php a pas du se lancer regarde dans tes log

Eléphant du PHP | 80 Messages

07 juin 2010, 15:28

tu as fais un apache ( ou httpd ) reload ?
Ca ne change rien.
ton module php a pas du se lancer regarde dans tes log
Le problème c'est que le fichier /etc/php.ini n'existe pas, donc je ne sais pas où trouver les log. Par ailleurs, lorsque je le lance php -n, voici la sortie :

Code : Tout sélectionner

php -n The context allocation routine failed when it tried to load localization files!! One or more following problems may caused the failure Your sybase home directory is /opt/app/sybase. Check the environment variable SYBASE if it is not the one you want! Using locale name "POSIX" defined in environment variable LANG Locale name "POSIX" doesn't exist in your /opt/app/sybase/locales/locales.dat file

ViPHP
ViPHP | 5462 Messages

07 juin 2010, 15:33

c'est pas pareil ta un probleme de PATH, en plus il va chercher ton locales dans sysbase, ca marche un php -i ?

Eléphant du PHP | 80 Messages

07 juin 2010, 15:39

Oui, le php -i est très verbeux. Tu veux tout ?

ViPHP
ViPHP | 5462 Messages

07 juin 2010, 15:41

Oui, le php -i est très verbeux. Tu veux tout ?
ouai :D, met ca dans un fichier texte que tu attaches limite

Eléphant du PHP | 80 Messages

07 juin 2010, 15:49

Lorsque je tente d'ajouter le fichier, l'erreur "L’extension txt n’est pas autorisée." s'affiche.
:?

Eléphant du PHP | 314 Messages

07 juin 2010, 15:51

Alors passe par ici : http://pastebin.com/ !
Cordialement,
Julien - http://laravel.fr/

Eléphant du PHP | 80 Messages

07 juin 2010, 16:33

C'est fait, sous Output php -i.
Merci AoSIX