Bardzo chwalę sobie CentOSa jako system pod server/VPS. Narzekać można jedynie często na dość stare paczki. Można to prosto rozwiązać dodatkowymi repozytoriami i podmianą paczek. W tym wpisie, krótki opis.
Instalacja repozytoriów
wget http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/epel-release-6-5.noarch.rpm
wget http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm
rpm -Uvh epel-release-6-5.noarch.rpm
rpm -Uvh ius-release-1.0-13.ius.centos6.noarch.rpm
yum clean all
yum update
Sprawdzenie instalacji
yum list | grep -w \.ius\.
Podmianka paczek
yum install yum-plugin-replace #niezbędne do podmienienia paczek z innych repozytoriów
rpm -qa | grep php
yum replace php --replace-with php55u
rpm -qa | grep mysql
yum replace mysql --replace-with mysql56u
Restart serwera httpd/PHP oraz MySQL
service httpd restart
service mysqld restart
I teraz ma działać na nowej wersji PHP i MySQL :)
[root@vps ~]# php -v
PHP 5.5.16 (cli) (built: Sep 2 2014 08:49:01)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
[root@vps ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 106
Server version: 5.6.20 Distributed by The IUS Community Project
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> SHOW VARIABLES LIKE "%version%";
+-------------------------+------------------------------------------+
| Variable_name | Value |
+-------------------------+------------------------------------------+
| innodb_version | 5.6.20 |
| protocol_version | 10 |
| slave_type_conversions | |
| version | 5.6.20 |
| version_comment | Distributed by The IUS Community Project |
| version_compile_machine | x86_64 |
| version_compile_os | Linux |
+-------------------------+------------------------------------------+
7 rows in set (0.00 sec)
Dodaj komentarz