Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Quản trị Webserver Apache, Php, SSL (http://quantrinet.com/forum/forumdisplay.php?f=104)
-   -   Nâng cấp Php 5.1.x to 5.2.x, 5.3.x on PLesk 9, Plesk 11..CentOS/RHEL/Fedora (http://quantrinet.com/forum/showthread.php?t=9491)

adminphuong 22-09-2009 04:27 PM

Nâng cấp Php 5.1.x to 5.2.x, 5.3.x on PLesk 9, Plesk 11..CentOS/RHEL/Fedora
 
Upgrade Php 5.x.x to 5.2.9 on CentOS/RHEL/Fedora


Nếu phiên bản PHP hiện tại đã củ 5.x.x và cần nâng cấp lên phiên bản PHP mới hơn 5.2.x or 5.3 , các bạn có thể sử dụng một số lệnh sau để nâng cấp phiên bản PHP của mình

To upgrade to PHP 5.2.x on CentOS/RHEL/Fedora:


Step 1) Set up the atomic channel:


wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh


Step 2) Upgrade to PHP 5.2.x:

yum update php

Step 3) Replace the PHP 4 php.ini with PHP 5.2.x's (if applicable):

mv /etc/php.ini.rpmnew /etc/php.ini

Step 4) Replace the php.conf with the PHP 5.2.x php.conf (if applicable):

mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf


Step 5) Restart the webserver

service httpd restart

(or)

/etc/init.d/httpd restart



To upgrade to PHP 5.3.x on CentOS/RHEL/Fedora:

Mã:

rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm

Mã:

  yum --enablerepo=webtatic install php


Mã:

  yum --enablerepo=webtatic update php


chuc cac ban thanh cong!



Have a fun :cuoi4:

:battay:


Bây giờ là 07:00 AM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.