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.
-
Disable all repos in
/etc/yum/repos.d. -
Find
_display_page()function in/usr/clearos/framework/application/libraries/Page.phpand comment the whole block starting withif (clearos_load_library('registration/Registration') && $this->framework->session->userdata('username')). -
Find
get_app_details()function in/usr/clearos/apps/marketplace/libraries/Marketplace.phpand right afterclearos_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.