Pages : 1
#1 Le 24/10/2012, à 17:42
- jacque99
owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Bonjour ,
J'ai un systeme d'expoitaion Ubuntu 12.10
J'ai installer PHP Version 5.4.6-1ubuntu1
Je posséde le pachage php-5.2.12.tar.gz
Je voulais faire un owngrading de PHP 5.4.6 vers 5.2.12
J'ai essaye d'appliquer quelques commande depuis ces deux liens:
http://cuadradevelopment.com/blog/26/mu … i-on-os-x/
http://blog.breidert.net/php-5-2-and-ph … 10-04-lts/
Mais
http://php52.localhost/phpinfo.php
et
http://php5.localhost/phpinfo.php
me donne la même résultat : toujours PHP Version 5.4.6-1ubuntu1 qui installé
Je demande si vous avez des idées
Merci
Hors ligne
#2 Le 24/10/2012, à 18:03
- Maisondouf
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Quel est l'intérêt de downgrader php ?
ASUS M5A88-v EVO avec AMD FX(tm)-8120 Eight-Core Processor, OS principal Precise 12.04.1 LTS 63bits½
Bricoleur, menteur, inculte, inadapté social et mythomane, enfin d'après certains....
"the secret of my form is summed up in two words, no sport" (Winston Churchill)
Hors ligne
#3 Le 24/10/2012, à 18:17
- jacque99
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Je travail sur un projet qui utilise une librairie qui marche uniquement sur PHP 5.2.12
Je ne connais pas le contenu de cette api, mais mon intérêt est d'installer le PHP 5.2.12
Hors ligne
#4 Le 24/10/2012, à 22:58
- Maisondouf
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Ok, J'ai feuilleté les liens que t'as donné.
c'est où que ça va pas ?
Parce que les deux tutos donnent chacun une solution d'installation différente qui ne sont pas compatibles entres-elles.
Laquelle tu as choisi ?
ASUS M5A88-v EVO avec AMD FX(tm)-8120 Eight-Core Processor, OS principal Precise 12.04.1 LTS 63bits½
Bricoleur, menteur, inculte, inadapté social et mythomane, enfin d'après certains....
"the secret of my form is summed up in two words, no sport" (Winston Churchill)
Hors ligne
#5 Le 24/10/2012, à 23:06
- jacque99
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
J ai essaye chaque solution jusuq a la fin
J ai meme formate et installer Ubuntu et j ai refait l installation , mais rien qui marche
Si vous essaye d installer PHP 5.2.12 cava donner toujours une suite de problème
si non je peux vous envoye des prises ecrans par email
Hors ligne
#6 Le 24/10/2012, à 23:13
- Maisondouf
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Pour les capture d'écrans, va sur uppix.net, tu les upload chez eux et tu copies le lien donné en bbcode pour une vignette en 150px dans le forum.
Je suis en train de tester la solution 2 (en sous-domaine) sur mon serveur de secours.
J'ai pris la dernière version 5.2.17 ICI
ASUS M5A88-v EVO avec AMD FX(tm)-8120 Eight-Core Processor, OS principal Precise 12.04.1 LTS 63bits½
Bricoleur, menteur, inculte, inadapté social et mythomane, enfin d'après certains....
"the secret of my form is summed up in two words, no sport" (Winston Churchill)
Hors ligne
#7 Le 24/10/2012, à 23:22
- jacque99
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Tout simplemet , si vous essaye de faire cette configure , cava vous donner des erreurs sur MySQL
sudo ./configure --prefix=/usr/local
--with-xsl --with-tsrm-pthreads --with-tidy --enable-sockets --with-pgsql --with-pdo-pgsql --with-pdo-mysql --with-mysqli --enable-mbstring --enable-soap --enable-zip --with-mysql=/usr/bin/ --with-curl --with-kerberos --enable-zts --enable-maintainer-zts
le but le plus important est de faire
Thread Safety enabled
Hors ligne
#8 Le 25/10/2012, à 00:04
- Maisondouf
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Pour les erreurs mysql, il faut installer le paquet:
sudo apt-get install libmysqlclient10-dev
Éventuellement si 64 bits, créer un lien pour la lib
sudo ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so /usr/lib/libmysqlclient.so
et utiliser le commande de configure suivante:
./configure --prefix=`pwd` --with-config-file-path=`pwd` --with-mysqli --with-mysql=/usr/include/mysql/ --with-curl --with-gd --with-jpeg-dir --enable-cli --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect
ASUS M5A88-v EVO avec AMD FX(tm)-8120 Eight-Core Processor, OS principal Precise 12.04.1 LTS 63bits½
Bricoleur, menteur, inculte, inadapté social et mythomane, enfin d'après certains....
"the secret of my form is summed up in two words, no sport" (Winston Churchill)
Hors ligne
#9 Le 25/10/2012, à 00:50
- jacque99
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
J'ai tout essayé , mais ca ne marche pas
Le problème que j'ai pour le moment :
dev@dev-workstation:/usr/lib$ sudo service apache2 start
* Starting
web server
apache2
apache2: Syntax error on line 239 of /etc/apache2/apache2.conf: Syntax
error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load
/usr/lib/apache2/modules/libphp5.so into server:
/usr/lib/apache2/modules/libphp5.so: undefined symbol: file_globals_id
Action 'start' failed.
The Apache error log may have more information.
[fail]
dev@dev-workstation:/usr/lib$
Merci
Hors ligne
#10 Le 25/10/2012, à 01:00
- Maisondouf
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
ASUS M5A88-v EVO avec AMD FX(tm)-8120 Eight-Core Processor, OS principal Precise 12.04.1 LTS 63bits½
Bricoleur, menteur, inculte, inadapté social et mythomane, enfin d'après certains....
"the secret of my form is summed up in two words, no sport" (Winston Churchill)
Hors ligne
#11 Le 25/10/2012, à 01:21
- jacque99
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Oui mais thread safety fois être enabled dans la version 5.2
Hors ligne
#12 Le 25/10/2012, à 01:33
- Maisondouf
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
jamais contente !
ASUS M5A88-v EVO avec AMD FX(tm)-8120 Eight-Core Processor, OS principal Precise 12.04.1 LTS 63bits½
Bricoleur, menteur, inculte, inadapté social et mythomane, enfin d'après certains....
"the secret of my form is summed up in two words, no sport" (Winston Churchill)
Hors ligne
#13 Le 25/10/2012, à 01:40
- Maisondouf
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Bon je recommence avec l'option:
--enable-roxen-zts
cf : http://www.php.net/manual/en/configure.about.php
EDIT : et en plus (pour que phpmyadmin soit content)
--with-mcrypt --with-mbstring
EDIT 2: faut installer la lib suivante pour avoir mcrypt.h
sudo apt-get install libmcrypt-dev
Dernière modification par Maisondouf (Le 25/10/2012, à 01:51)
ASUS M5A88-v EVO avec AMD FX(tm)-8120 Eight-Core Processor, OS principal Precise 12.04.1 LTS 63bits½
Bricoleur, menteur, inculte, inadapté social et mythomane, enfin d'après certains....
"the secret of my form is summed up in two words, no sport" (Winston Churchill)
Hors ligne
#14 Le 25/10/2012, à 02:49
- Maisondouf
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Pas moyen d'avoir ton 'thread safety', mais il semble que les sources de 'roxen' ne soit pas dans le fichier téléchargé.
De plus, il y a pas mal de discussion au sujet de l'utilité de cette option....
cf: http://stackoverflow.com/questions/1623 … afe-in-php
http://stackoverflow.com/questions/6810 … hread-safe
ASUS M5A88-v EVO avec AMD FX(tm)-8120 Eight-Core Processor, OS principal Precise 12.04.1 LTS 63bits½
Bricoleur, menteur, inculte, inadapté social et mythomane, enfin d'après certains....
"the secret of my form is summed up in two words, no sport" (Winston Churchill)
Hors ligne
#15 Le 25/10/2012, à 18:52
- jacque99
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Installation de Php-5.2.17 sous Ubuntu 12.10
Pour etre proche de vous
J'ai desinstaller completement Ubuntu de ma machine
J'ai telecharger la meme version que vous Php-5.2.17
Ma verison Ubuntu :
cat /etc/issue
Ubuntu 12.10
Voici les démarches que j'ai fait :
cd /etc/monphp/
J'ai copie le fichier compresser php-5.2.17.tar.gz
J'ai fait une extraction de php-5.2.17.tar.gz
Je suis rentrer dans le nouveau fichier descompresser :
cd /etc/monphp/php-5.2.17$
sudo apt-get install apache2
sudo /etc/init.d/apache2 restart
Jusq'au ici : http://127.0.0.1/ It works!
J'ai lancé la commande
sudo ./configure --prefix=`pwd` --with-config-file-path=`pwd` --with-mysqli --with-mysql=/usr/include/mysql/ --with-curl --with-gd --with-jpeg-dir --enable-cli --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect
***************************
Erreurs :
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation
Solutions:
apt-get install libxml2-dev
***************************
J'ai relancé :
sudo ./configure --prefix=`pwd` --with-config-file-path=`pwd` --with-mysqli --with-mysql=/usr/include/mysql/ --with-curl --with-gd --with-jpeg-dir --enable-cli --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect
Erreur :
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation
Solutions :
***************************
Erreur :
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
Solutions :
sudo apt-get install libcurl4-openssl-dev
***************************
J'ai relancé :
sudo ./configure --prefix=`pwd` --with-config-file-path=`pwd` --with-mysqli --with-mysql=/usr/include/mysql/ --with-curl --with-gd --with-jpeg-dir --enable-cli --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect
Erreur :
configure: error: libjpeg.(a|so) not found.
Solution :
sudo apt-get install libjpeg-dev
***************************
J'ai relancé :
sudo ./configure --prefix=`pwd` --with-config-file-path=`pwd` --with-mysqli --with-mysql=/usr/include/mysql/ --with-curl --with-gd --with-jpeg-dir --enable-cli --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect
Erreurs:
configure: error: libjpeg.(a|so) not found.
Solutions
sudo apt-get install libjpeg-dev
J'ai chercher sur google
configure: error: libjpeg.(a|so) not found Ubuntu 12.10
J'ai trouve le fichier libjpeg.so.8.0.2 dans :
/usr/lib/x86_64-linux-gnu
Puis j'ai fait la command :
sudo cp /usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2 /usr/lib/libjpeg.so
**************************************************
sudo cp /usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2 /usr/lib/libjpeg.so
***************************************************************
J'ai relancé :
sudo ./configure --prefix=`pwd` --with-config-file-path=`pwd` --with-mysqli --with-mysql=/usr/include/mysql/ --with-curl --with-gd --with-jpeg-dir --enable-cli --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect
erreurs :
configure: error: libpng.(a|so) not found.
Solutions :
sudo apt-get install libpng12-dev
sudo cp /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/libpng.so
**************************************************************
J'ai relancé :
sudo ./configure --prefix=`pwd` --with-config-file-path=`pwd` --with-mysqli --with-mysql=/usr/include/mysql/ --with-curl --with-gd --with-jpeg-dir --enable-cli --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect
Probleme :
checking for MySQL UNIX socket location... no
configure: error: Cannot find MySQL header files under /usr/include/mysql/.
Note that the MySQL client library is not bundled anymor
Solution :
sudo apt-get install libmysqlclient-dev
**********************************************************
J'ai relancé :
sudo ./configure --prefix=`pwd` --with-config-file-path=`pwd` --with-mysqli --with-mysql=/usr/include/mysql/ --with-curl --with-gd --with-jpeg-dir --enable-cli --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect
Erreurs :
checking for MySQL UNIX socket location... no
configure: error: Cannot find libmysqlclient under /usr.
Solutions :
sudo cp /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0 /usr/lib/libmysqlclient.so
Thank you for using PHP.
sudo make
sudo make install
Erreurs :
Wrote PEAR system config file at: /etc/monphp/php-5.2.17/etc/pear.conf
You may want to add: /etc/monphp/php-5.2.17/lib/php to your php.ini include_path
Installing PDO headers: /etc/monphp/php-5.2.17/include/php/ext/pdo/
Les testes pour résoudre le probleme :
sudo cp /etc/monphp/php-5.2.17/php.ini-recommended /etc/monphp/php-5.2.17/include/php/php.ini
sudo cp /etc/monphp/php-5.2.17/php.ini-recommended /etc/monphp/php-5.2.17/lib/php/php.ini
sudo cp /etc/monphp/php-5.2.17/php.ini-recommended /etc/monphp/php-5.2.17/php.ini
Le problème :
Wrote PEAR system config file at: /etc/monphp/php-5.2.17/etc/pear.conf
You may want to add: /etc/monphp/php-5.2.17/lib/php to your php.ini include_path
Installing PDO headers: /etc/monphp/php-5.2.17/include/php/ext/pdo/
Hors ligne
#16 Le 25/10/2012, à 19:14
- jacque99
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Résultat :
php -version
Le programme 'php' n'est pas encore installé. Vous pouvez l'installer en tapant :
sudo apt-get install php5-cli
Hors ligne
#17 Le 25/10/2012, à 22:38
- Maisondouf
Re : owngrading PHP de 5.4.6 vers 5.2.12 on Ubuntu 12.10
Parce que la compilation et l'installation de php-cgi ont par magie crée le lien symbolique vers php.
Faut essayer:
/etc/monphp/php-5.2.17/bin/php -version
Et ça marche:
papounet@amd8papou:~$ /opt/php52/php-5.2.17/bin/php -version
PHP 5.2.17 (cli) (built: Oct 25 2012 02:54:08)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
papounet@amd8papou:~$
Dernière modification par Maisondouf (Le 25/10/2012, à 22:40)
ASUS M5A88-v EVO avec AMD FX(tm)-8120 Eight-Core Processor, OS principal Precise 12.04.1 LTS 63bits½
Bricoleur, menteur, inculte, inadapté social et mythomane, enfin d'après certains....
"the secret of my form is summed up in two words, no sport" (Winston Churchill)
Hors ligne
Pages : 1