6

I have built a druapl 8 site with 'Standard' installation profile.

How can I switch 'standard' installation profile to 'minimal' in existing site?

closed as too broad by Neograph734, Adrian Cid Almaguer, Shawn Conn, Scott Joudry, Krishna Mohan Jun 23 '16 at 11:49

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    There is no "switching" installation profiles. There is a variable that describes what installation profile was used during install. What are you actually trying to accomplish? Do you need to uninstall modules or remove content that was installed by the standard installation profile? Please clarify your question. – mradcliffe Jun 22 '16 at 13:10
  • The installation profile defines a set of modules, permissions and variables to create/enable. If you created it with standard, you can strip down to minimal by disabling some modules and removing permissions and variables. Otherwise start over. – Neograph734 Jun 22 '16 at 13:32
  • @mradcliffe I'm trying to uninstall module of current activated installation profile. But no modules can be uninstalled directly until and unless their internal content doesn't get deleted. My target is to activate 'minimal' profile which have only node, block, dblog, page_cache, dynamic_page_cache modules. – Sugandh Khanna Jun 22 '16 at 13:44
  • From my experience minimal installation is just a big headache. It's a lot easier to use normal installation and then just uninstall modules that you don't need. – No Sssweat Jun 23 '16 at 7:02
  • There is a possibility of switching profiles, FYI—I had to do this one one particular site to get a few of the Lightning distribution's features to work correctly. Here are the instructions for how I did it: drupal.org/node/2677722#comment-11843563 – geerlingguy Mar 3 '17 at 19:37
5

Installation profiles contain code to set up a site during installation, that's all they do. They aren't useful to an installed site.

Trying to change the profile after installation could never conceptually do anything. The installation code has already run, and the purpose of the profile has been served at that point.

  • 3
    For the most part, yes—however, Drupal still tracks the installed profile, and will run update hooks defined in that profile's .install file. Sometimes people install a site with one profile and need/want to switch to another, or to standard/minimal to get out of the cycle of updating that profile... – geerlingguy Mar 3 '17 at 19:38
  • @geerlingguy I didn't know about the update hooks, thanks! – Clive Mar 3 '17 at 19:40
  • Switching profiles is not supported use case and you better know what you do. Having said that, we now have drupal.org/project/profile_switcher – aexl May 25 at 12:36
3

There is no way to switch you have two solution,

  • install again

  • remove standard modules.

lists the modules enabled by the Standard profile, as compared to the Minimal profile

Not the answer you're looking for? Browse other questions tagged or ask your own question.