Upgrade PHP 5.1.x naar PHP 5.3 aan CentOS 5.6

meest CMSplanten, waaronder Hebben als een minimumeis voor het installeren van een nieuwere versie van 5.1.x pe . De tutorial hieronder zal u tonen een aantal eenvoudige stappen die kunnen worden een upgrade van de PHP versie naar PHP 5.1 5.3.x pe   5.6.

1. Eerst moet je stoppen web Server. (Httpd voorziening)

service httpd stop

2. Verwijder 5.1.x PHP pakketten geïnstalleerd op de server.

yum remove php php-*

3. Nadat u een bevestiging ontvangen dat PHP pakketten worden verwijderd van de server, ga naar pakketten te installeren PHP 5.3.

yum install php53.i386       
yum install php53-bcmath.i386 
yum install php53-cli.i386   
yum install php53-common.i386  
yum install php53-dba.i386   
yum install php53-devel.i386 
yum install php53-gd.i386    
yum install php53-imap.i386 
yum install php53-intl.i386  
yum install php53-ldap.i386  
yum install php53-mbstring.i386 
yum install php53-mysql.i386 
yum install php53-odbc.i386  
yum install php53-pdo.i386   
yum install php53-pgsql.i386 
yum install php53-process.i386 
yum install php53-pspell.i386 
yum install php53-snmp.i386  
yum install php53-soap.i386 
yum install php53-xml.i386 
yum install php53-xmlrpc.i386

Of nog eenvoudiger, installeert u alle pakketten php53 *.

yum install php53*

4. Start Apache Web Server

service httpd start

Colli php53-peer, php53-mcrypt, php53-mhash, php53-PDO, php53-PECL-apc si php53-PECL-memcache zijn niet beschikbaar voor CentOS 5.6.

Controleer tenslotte PHP5.3 versie werd geïnstalleerd. Maak een Php (bijv. info.php.) Dat hebben.:

<?php 

phpinfo(); 

phpinfo(INFO_MODULES); 

?>

Klim file servers en de toegang naar het adres van Firefox, , of een andere webbrowser. Het resultaat moet zijn:

php info

U kunt zien welke versie van PHP is geïnstalleerd op een server met de command line: php-v of met "yum lijst installed grep php”(Toont alle geïnstalleerde PHP-pakketten).

yum lijst installed php

- Upgrade / Install PHP 5.3 aan CentOS 5.6.

Oprichter en redacteur Stealth Settings, van 2006 tot heden. Ervaring met besturingssystemen Linux (Vooral CentOS), Mac OS X, Windows XP> Windows 10 si WordPress (CMS).

Hoe werkt het? » Linux » Upgrade PHP 5.1.x naar PHP 5.3 aan CentOS 5.6
Laat een bericht achter