Skip to content

Instantly share code, notes, and snippets.

@deseven
Created February 3, 2026 20:51
Show Gist options
  • Select an option

  • Save deseven/84bd4d7a3678918a81ad03c259f7b30a to your computer and use it in GitHub Desktop.

Select an option

Save deseven/84bd4d7a3678918a81ad03c259f7b30a to your computer and use it in GitHub Desktop.
Patching ClearOS 7 to fix slow web interface

Since people that made ClearOS simply dropped the mic and left, existing instances suffer from very slow web interface with pages opening after a full minute or so, mostly because it tries to access the no longer existing marketplace on every page load. This is a great example of a severely bad architecture along with zero responsibility on the developer's side, but whatever.

Obviously, using severely outdated software is a bad practice and a huge security concern, but if you have no other options right now, this small guide will help you to make things work again.

In general, there are 3 things you need to do.

  1. Disable all repos in /etc/yum/repos.d.

  2. Find _display_page() function in /usr/clearos/framework/application/libraries/Page.php and comment the whole block starting with if (clearos_load_library('registration/Registration') && $this->framework->session->userdata('username')).

  3. Find get_app_details() function in /usr/clearos/apps/marketplace/libraries/Marketplace.php and right after clearos_profile(__METHOD__, __LINE__); add the following:

    $minimal_response = json_encode(array(
      'code' => 0,
      'details' => (object)array(
        'pricing' => (object)array(),
        'eula' => '',
        'notes' => (object)array()
      )
    ));
    return $minimal_response;

After that the web interface should begin working normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment