Ghi chú VPS Centos and Plesk

Từ ChipFC Wiki
Phiên bản vào lúc 06:15, ngày 6 tháng 5 năm 2018 của BS135 (Thảo luận | đóng góp) (yum remove package)
(khác) ← Phiên bản cũ | xem phiên bản hiện hành (khác) | Phiên bản mới → (khác)
Bước tới: chuyển hướng, tìm kiếm

Upgrade OS vendor PHP on CentOS 7

  1. Connect to the server using SSH.
  2. Enable EPEL repository:
    # yum install epel-release
  3. Download Remi repository package:
    # wget
  4. Enable Remi PHP repo:
    # rpm -ivh remi-release-7.rpm
  5. Make sure yum-utils package is installed and enable appropriate Remi repository. As an example to upgrade OS vendor PHP to version 7 enable the following repository:
    # yum-config-manager --enable remi-php70
  6. Update php package:
    # yum update php

Upgrade git on CentOS 7

  1. yum install
  2. yum update git

Upgrade MariaDB on CentOS 7

CentOS 7 is shipped with MariaDB. MariaDB 10.x version is a drop-in replacement for MySQL 5.5-5.7.

  1. Create a backup of all databases with the following command:
    MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin --all-databases --routines --triggers > /tmp/all-databases.sql
  2. Stop the MariaDB service:
    service mariadb stop
  3. Remove additional packages like mariadb-bench:
    rpm -e mariadb-bench
  4. Copy a databases directory in a separate folder like this (for backup purposes also):
    cp -a /var/lib/mysql/ /var/lib/mysql_backup
  5. Configure MariaDB repository: open the Setting MariaDB repositories page, select OS distro, release and MariaDB version to see the configuration that should be added to /etc/yum.repos.d/MariaDB.repo file. Example for MariaDB10.1:
    name = MariaDB
    baseurl =
    gpgkey =
    gpgcheck = 1
  6. Perform an upgrade with:
    yum install mariadb
  7. Start the MariaDB service:
    service mariadb start
  8. Execute this command to update the package version inside Plesk:
    plesk sbin packagemng -sdf
  9. Note: After an upgrade to 10.1 version, there may appear 'mysql' init script. It can be removed:
    rm /etc/init.d/mysql
    systemctl daemon-reload

Install ionCube Loader on a CentOS 7

Install pngquant

Install ffmpeg

yum change version

  • Remove Old version
yum remove packagename
  • Remove yum repos
rm etc/yum.repos.d/nodesource-el7.repo
  • Install new version