Mediawiki PHP Fatal error: Cannot redeclare wfProfileIn() Error and Solution

The PHP Fatal error: Cannot redeclare wfProfileIn() error in MediaWiki typically occurs when there is a conflict between multiple copies of the same function or class in your MediaWiki installation. This error can be caused by a number of different issues, such as: Multiple copies of the same extension installed in different directories A corrupted … Read more

RHEL / CentOS Yum Command: Blacklist Packages [ Disable Certain Packages ]

To blacklist packages using the yum package manager on Red Hat Enterprise Linux (RHEL) or CentOS, you can create a file in the /etc/yum.repos.d/ directory that excludes the packages you want to blacklist. The file should have the extension .repo, and the content should specify the packages you want to exclude, using the exclude option. … Read more

CentOS / RHEL: yum Command Reinstall Package

To reinstall a package using the yum package manager on CentOS or Red Hat Enterprise Linux (RHEL), you can use the yum reinstall command, followed by the name of the package you want to reinstall: sudo yum reinstall <package_name> For example, if you want to reinstall the httpd package: sudo yum reinstall httpd This command … Read more

Linux / Unix: SysVinit Services Restart vs Reload vs Condrestart

In the SysVinit init system, which is used in many Linux and Unix distributions, there are several commands to control system services: restart: The restart command stops the service and then starts it again. This is useful when you want to apply changes to the service’s configuration. service <service_name> restart reload: The reload command reloads … Read more