frame

Sveiki apsilankę!

Jei forume lankaisi pirmą kartą, kviečiame registruotis ir prisijungti prie diskusijų.

Prisijungti Registruotis

PHP 5.2.x atnaujinimas į PHP 5.3.x CentOS 5/6 operacinės sistemos aplinkoje

IV_RomanLIV_RomanL Interneto vizija
edited 2013 gruodžio 18 Į Archyvas
Pateikiamas trumpas ir gana paprastas būdas atnaujini PHP 5.2.x versiją į PHP 5.3.x . Pamoka parengta naudojant CentOS 5/6 64-bit operacines sistemas.

Pastaba:

Naudojant serveryje DirectAdmin valdymo pultą atnaujinti PHP versiją iš 5.2.x į 5.3.x reikėtų sekant DirectAdmin valdymo pulto pagalbos svetainėje pateiktomis instrukcijomis.

0. Išgauname informaciją apie tai, kokia PHP versija naudojama:
php -v
Turėtumėte pamatyti štai tokį rezultatą:
PHP 5.2.17 (cli) (built: Feb 3 2012 08:14:18)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
1. Parsiunčiame ir įdiegiame IUS repozitoriją:

jei naudojate CentOS 6 64-bit:

Įdiegiame EPEL repozitoriją:
rpm -Uvh http://mirror.i3d.net/pub/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
Įdiegiame IUS repozitoriją:
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/ius-release-1.0-10.ius.el6.noarch.rpm
Jei naudojate CentOS 5 64-bit:

Įdiegiame EPEL repozitoriją:
rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Įdiegiame IUS repozitoriją:
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
2. Įdiegiame yum papildinį:
yum install yum-plugin-replace -y
3. Atliekame PHP versijos atnaujinimą:
yum replace php --replace-with php53
---
Viskas. Išgauname informaciją apie tai, kokia PHP versija naudojama:
php -v
Turėtumėte pamatyti štai tokį rezultatą:
PHP 5.3.3 (cli) (built: Feb 3 2012 08:17:28)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

Komentarai

  • merkysmerkys Naujokas (-ė)
    edited 2013 gruodžio 18
    Man nesigavo. Sistema (OS): centos-6-x86_64-directadmin
    blogas adresas tai per servo failus atradau kita direktorija kur toks pats failas pas juos yra.
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    ########################################### [100%]

    vienu zodziu vistiek nieko nesigavo su jusu standartiniu VPS. Kazkas negerai arba aprasyme arba konfiguracijoje.
  • IV_VygandasSIV_VygandasS Serverių ekspertas (-ė)
    edited 2013 gruodžio 18
    Atsižvelgiant jog Jūsų serveryje yra naudojamas DirectAdmin valdymo pultas, PHP versiją atnaujinti į 5.3 Jūs galite sekant šiomis instrukcijomis.
Ši diskusija uždaryta