Fastest
Thursday, January 08, 2026
Update URL Repo CentOS 8
The "Failed to download metadata for repo 'AppStream'" error on CentOS 8
occurs because CentOS Linux 8 reached its End-Of-Life (EOL) on December 31, 2021. The official repositories were moved to a permanent vault, so standard commands can no longer find the correct mirrors
Sunday, May 04, 2025
automount ext4 partition
get UUID:
blkid -c /dev/null or lsblk -fto list all block devices and their UUIDs example result:
/dev/sda1: UUID="38c9a247-2321-4e73-ac31-b7e7214ebd37" TYPE="xfs" /dev/sda2: UUID="56a8f0c9-29ff-48e6-a664-f53f9a4123ca" TYPE="swap" /dev/sda3: UUID="03f43331-0fdb-4cef-8b93-e199d92b0010" TYPE="xfs" /dev/sdb1: UUID="50433e4c-a9ba-4f55-8c44-9ccb5430903d" TYPE="ext4" /dev/sdb2: UUID="a4ecb7f7-3b91-4cc3-8867-8222657b59fc" TYPE="ext4"create directory for mount:
mkdir /media/Storageedit fstab:
vi /etc/fstabadd this line:
UUID=a4ecb7f7-3b91-4cc3-8867-8222657b59fc /media/Storage ext4 defaults 0 2
Friday, February 21, 2025
Update URL Repo CentOS 7
URL Repo CentOS 7 Setelah EOL 30 Juni 2024, pada server CentOS 7 tidak bisa lagi instalasi update package dan muncul error yang memberitahukan repo sudah tidak ada ( mirror repo sudah di hapus dari server repository server CentOS 7). Bagi yang masih menggunakan CentOS 7 agar beralih ke CentOS ke versi terbaru. Untuk yang masih bertahan menggunakan CentOS 7 bisa dialihkan mirror repo dengan langkah-langkah sebagai berikut:
1. Buat folder Backup repo
1. Buat folder Backup repo
mkdir /etc/yum.repos.d/old2. Pindahkan semua repo CentOs dan Epel repo ke direktori old
mv /etc/yum.repos.d/CentOS*.repo /etc/yum.repos.d/old/ mv /etc/yum.repos.d/epel*.repo /etc/yum.repos.d/old/3. Buat file repo baru CentOS.repo
vi /etc/yum.repos.d/CentOS.repomasukan baris berikut
[base] name=CentOS-$releasever - Base baseurl=http://archive.kernel.org/centos-vault/7.9.2009/os/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #released updates [updates] name=CentOS-$releasever - Updates baseurl=http://archive.kernel.org/centos-vault/7.9.2009/updates/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras baseurl=http://archive.kernel.org/centos-vault/7.9.2009/extras/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus baseurl=http://archive.kernel.org/centos-vault/7.9.2009/centosplus/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-74. Buat baru file repo epel.repo
vi /etc/yum.repos.d/epel.repomasukan baris berikut
[epel] name=Extra Packages for Enterprise Linux 7 - $basearch baseurl=https://archives.fedoraproject.org/pub/archive/epel/7/$basearch enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 metadata_expire=never [epel-debuginfo] name=Extra Packages for Enterprise Linux 7 - $basearch - Debug baseurl=https://archives.fedoraproject.org/pub/archive/epel/7/$basearch/debug enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1 metadata_expire=never [epel-source] name=Extra Packages for Enterprise Linux 7 - $basearch - Source baseurl=https://archives.fedoraproject.org/pub/archive/epel/7/SRPMS enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1 metadata_expire=never5. Hapus metadata existing
yum clean all6. Memuat list paket yang tersedia
yum check-update
Thursday, January 09, 2025
install php 8.1 & MariaDB on CentOS 7
yum-config-manager --disable 'remi-php*'
yum-config-manager --enable remi-php81
yum install php
vim /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.6/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
yum install MariaDB-server
yum-config-manager --enable remi-php81
yum install php
vim /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.6/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
yum install MariaDB-server
Friday, January 03, 2025
Firewalld open port
firewall-cmd --zone=public --add-port=80/tcp
firewall-cmd --permanent --zone=public --add-port=80/tcp
firewall-cmd --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --add-port=8080/tcp
firewall-cmd --reload
firewall-cmd --permanent --zone=public --add-port=80/tcp
firewall-cmd --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --add-port=8080/tcp
firewall-cmd --reload
CentOS 7.0 end of life repository
Merubah repository CentOS setelah mirrorlist End of Life
What
CentOS sudah end of life pada tanggal 30 Juni 2024. Hal ini mengakibatkan masalah pada saat kita akan download atau install menggunakan yum dari repository.
When/WhyKarena mirrorlist.centos.org sudah tidak aktif, beberapa konfigurasi repo harus dirubah agar download dapat berjalan kembali.
HowUntuk merubahnya, lakukan perintah masal sesuai yang ada pada langkah berikut menggunakan user root atau sudo root di SSH server:
1. sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
2. sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
3. sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
4. yum clean all && yum -y update
Penjelasan: perintah di atas akan melakukan:
1. merubah semua mirror.centos.org menjadi vault.centos.org pada .repo files.
2. membuka comment (sed -i s/^#.*baseurl=http/baseurl=http/g) di bagian baseurl pada .repo files.
3. menambah comment (sed -i s/^mirrorlist=http/#mirrorlist=http/g) di bagian mirrorlist pada .repo files.
Friday, September 06, 2019
Install PHP 5.6 on CentOS 7
1. To install PHP 5.6, you have to install and enable EPEL and Remi repository to your CentOS 7 system using the commands below.
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
2. Next, install yum-utils which is an assortment of utilities that integrate with yum to enhance its default features, giving it more advanced package management options and also making it easier to use.
A few of its important features include manipulating repositories, enabling or disabling packages on the go and lots more, without any manual configurations.
# yum install yum-utils
3. One of the most important program provided by yum-utils is yum-config-manager, which you can use to active Remi repository as the default repository for installing various PHP versions. For example, if you want to install PHP 5.5, PHP 5.6 or PHP 7.2 on CentOS 7, just enable it and install as shown.
# yum-config-manager --enable remi-php55 [Install PHP 5.5] # yum-config-manager --enable remi-php56 [Install PHP 5.6] # yum-config-manager --enable remi-php72 [Install PHP 7.2]
4. Now that you’ve enabled selected versions of PHP, you can install PHP (here, we have chosen to install PHP 5.6) with all needed modules as follows
# yum-config-manager --enable remi-php56 [Install PHP 5.6]
# yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo
Important things to note:
- In case you want to downgrade the PHP version for one reason or the other, you will need to remove existing PHP version(s) and then reinstall the new PHP with modules you need.
- You can as well install multiple versions of PHP on Linux and manually choose which version to use by default.
Afterwards, double check the installed version of PHP on your system.
Sumber: https://www.tecmint.com/install-php-5-6-on-centos-7/
Sumber: https://www.tecmint.com/install-php-5-6-on-centos-7/
Subscribe to:
Comments (Atom)
Update URL Repo CentOS 8
The "Failed to download metadata for repo 'AppStream'" error on CentOS 8 occurs because CentOS Linux 8 reached its End-Of-...
-
Merubah repository CentOS setelah mirrorlist End of Life What CentOS sudah end of life pada tanggal 30 Juni 2024. Hal ini mengakibatkan...
-
Misalkan kita ada 10 data tanggal lahir, dan kita ingin mengetahui berapa usia nya sampai dengan hari ini dalam program Microsoft Excel, car...
-
URL Repo CentOS 7 Setelah EOL 30 Juni 2024, pada server CentOS 7 tidak bisa lagi instalasi update package dan muncul error yang memberitahuk...