Aktualisieren Sie PHP 5.1.x auf PHP 5.3 auf CentOS 5.6

Am meisten CMS-s, einschließlich , muss als Mindestinstallationsanforderung eine neuere Version von haben 5.1.x pe . Im folgenden Tutorial zeigen wir Ihnen einige einfache Schritte, die Sie ausführen können das Upgrade von PHP Version 5.1.x auf PHP 5.3 pe   5.6.

1. Zunächst einmal müssen wir aufhören Webserver. (httpd-Dienst)

service httpd stop

2. Wir löschen die auf dem Server installierten PHP 5.1.x-Pakete.

yum remove php php-*

3. Nachdem wir die Bestätigung erhalten haben, dass die PHP-Pakete vom Server gelöscht wurden, fahren wir mit der Installation der Pakete fort 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

Oder noch einfacher: Installieren Sie alle PHP53*-Pakete.

yum install php53*

4. Starten Sie den Apache-Webserver

service httpd start

Pakete php53-birne, php53-mcrypt, php53-mhash, php53-pdo, php53-pecl-apc Und php53-pecl-memcache Sie sind für CentOS 5.6 nicht verfügbar.

Überprüfen Sie abschließend, ob die PHP5.3-Version erfolgreich installiert wurde. Erstellen Sie eine .php-Datei (z. B. info.php), in der Sie Folgendes haben:

<?php 

phpinfo(); 

phpinfo(INFO_MODULES); 

?>

Urcati fisierul pe serveri si accesati adresa lui cu Firefox, , oder ein anderer Webbrowser. Das Ergebnis sollte sein:

php info

Mit der Befehlszeile können Sie sehen, welche PHP-Version auf dem Server installiert ist: php -v oder mit “leckere Liste installiert | grep php” (Es werden alle installierten PHP-Pakete angezeigt).

yum list installed php

Aktualisieren / installieren Sie PHP 5.3 auf CentOS 5.6.

Gründer und Herausgeber Stealth Settings, din 2006 pana in prezent. Experienta pe sistemele de operare Linux (in special CentOS), Mac OS X , Windows XP > Windows 10 Si WordPress (CMS).

Heim Ihre Quelle für IT -Tutorials, nützliche Tipps und Nachrichten. Aktualisieren Sie PHP 5.1.x auf PHP 5.3 auf CentOS 5.6
Hinterlasse einen Kommentar