How to Disable Prelinking
Last modified: July 13, 2022
Overview
This document explains how to disable prelinking. Prelinking often causes issues, and we no longer support it as of cPanel & WHM version 54. When you enable prelinking, you may experience problems with broken packages.
For more information on prelinking, read Wikipedia’s Prelinking article.
Autofixer
As of June 29, 2016, we ship an Autofixer script that automatically disables prelinking. To keep this Autofixer from running and continue using prelinking on your server, create the /var/cpanel/dont_remove_prelink
touchfile.
To do this, run the following command:
touch /var/cpanel/dont_remove_prelink
How to disable prelinking manually
To disable prelinking, perform the following steps:
-
Log in to your server via SSH.
-
In the
/etc/sysconfig/prelink
file, set thePRELINKING
setting tono
. -
To implement your changes, run the following command:
/etc/cron.daily/prelink
-
To verify that your packages remain functional, run the following command:
If it succeeds, this script does not return output./usr/local/cpanel/scripts/check_cpanel_pkgs –fix