Ghi chú VPS Centos and Plesk
Từ ChipFC Wiki
Mục lục
Upgrade OS vendor PHP on CentOS 7
https://support.plesk.com/hc/en-us/articles/115000438614-How-to-upgrade-OS-vendor-PHP-on-CentOS-7-
- Connect to the server using SSH.
- Enable EPEL repository:
# yum install epel-release
- Download Remi repository package:
# wget https://rpms.remirepo.net/enterprise/remi-release-7.rpm
- Enable Remi PHP repo:
# rpm -ivh remi-release-7.rpm
- 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
- Update php package:
# yum update php
Upgrade git on CentOS 7
- https://gist.github.com/mualucky/bf4c1826094a082273c096988a28bc45
- http://stackoverflow.com/questions/21820715/how-to-install-latest-version-of-git-on-centos-6-x-7-x
-
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
-
yum update git
Upgrade git on CentOS 7
CentOS 7 is shipped with MariaDB. MariaDB 10.x version is a drop-in replacement for MySQL 5.5-5.7.
- 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
- Stop the MariaDB service:
- service mariadb stop
- Remove additional packages like mariadb-bench:
- rpm -e mariadb-bench
- Copy a databases directory in a separate folder like this (for backup purposes also):
- cp -a /var/lib/mysql/ /var/lib/mysql_backup
- 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: [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck = 1
- Perform an upgrade with:
- yum install mariadb
- Start the MariaDB service:
- service mariadb start
- Execute this command to update the package version inside Plesk:
- plesk sbin packagemng -sdf
- 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
https://www.rosehosting.com/blog/install-ioncube-loader-on-centos-7/
Install pngquant
https://centos.pkgs.org/7/epel-x86_64/pngquant-2.7.2-1.el7.x86_64.rpm.html