Centos

How to Install PHP on CentO

How to Install PHP on CentOS?

To install PHP on CentOS, use the “yum install php” command. Users can also install PHP modules by executing the “ yum install php-module-name” command.

Open a Port in CentOS

How to Open a Port in CentOS?

CentOS offers the “firewall-cmd –permanent –add-port=80/tcp” command to open a port in the system. For this, configure the firewall to allow traffic.

Disable IPv6 on CentOS

How to Disable IPv6 on CentOS / RHEL?

CentOS / RHEL offers the “sysctl” configuration file and “kernel” module to disable IPv6 in the system. For this, setting the disable_ipv6 parameter to 1.

How to Clean YUM Cache in CentoS RHEL

How to Clean YUM Cache in CentOS/RHEL?

CentOS / RHEL offers the “clean all” command to clean the entire YUM cache, including “metadata ”, “package headers”, and “packages” from the system.

Install MySQL on CentOS 7

How to Install MySQL on CentOS 7?

To install MySQL on CentOS 7, the “mysql-server” package is required after enabling the repository of MySQL 8.0. It installs all dependencies in the system.

How to List Open Ports in Firewalld

How to List Open Ports in Firewalld?

To list the open ports in firewalld, the “firewall-cmd” command works with the “–list-ports” option. Before it, users ensure the active services of Firewalld.

How to Check the CentOS Version

How to Check the CentOS Version?

CentOS offers the “lsb_release”, “hostnamectl”, and “uname” commands to check the CentOS version. Also, the “centos-release” file contains version information.

How to Uninstall a Yum Package

How to Uninstall a Yum Package?

To uninstall a yum package, use the remove command, autoremove option, or erase command. Read this post for a practical demonstration of these methods.