ssh

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:

  1. Log in to your server via SSH.

  2. In the /etc/sysconfig/prelink file, set the PRELINKING setting to no.

  3. To implement your changes, run the following command:

    /etc/cron.daily/prelink

  4. To verify that your packages remain functional, run the following command:

    /usr/local/cpanel/scripts/check_cpanel_pkgs fix
    If it succeeds, this script does not return output.

Additional Documentation