Questions tagged [installation]

Use it for questions about the installation of Drupal, modules, or themes.

Filter by
Sorted by
Tagged with
34 votes
14 answers
12k views

How to move installed modules from /sites/all/modules/* to /sites/all/contrib/modules/*

I have been searching for the answers to this question with no luck at all. From what I observe in the database structure, the location to the modules are specified in the 'system' table. The only ...
Logi's user avatar
  • 719
20 votes
4 answers
11k views

How do I programmatically install and enable a module?

There is a lot resource for doing it in Drupal 6, but I didn't find a solution for Drupal 7. How can I install and enable selected modules?
Codium's user avatar
  • 4,955
20 votes
4 answers
4k views

Create a repeatable Drupal install?

When installing Drupal for different sites I find myself frequently installing the same modules over and over again. In the interest of DRY, how can I create a kind of custom site "template" which ...
User's user avatar
  • 1,723
19 votes
3 answers
15k views

Quick Uninstall/Reinstall of a Custom Module

I'm working on creating a module and I'm slowly getting familiar with the Field API and what all settings work on various fields and what don't. While I'm doing this, it seems that the only way to ...
gregghz's user avatar
  • 767
18 votes
4 answers
9k views

How to get hook_install() to run all hook_update_N()?

How can i get hook_install() to run all updates that I have for my module? I have in it mymod.install file. I have tried function mymod_install() { mymod_update_6001(); } but it does not seem to ...
Lucy's user avatar
  • 1,502
15 votes
3 answers
7k views

Use drush to download drupal core files directly into directory rather than subdirectory

When you use drush dl normally, it will download drupal into a subdirectory ie: drupal-7.16 I would like to skip creating the subdirectory and just install the drupal root directory files into the ...
bitfed's user avatar
  • 535
14 votes
4 answers
12k views

Which files should I delete after a Drupal installation?

After installing Drupal, there are files in the root directory that I should delete. I know that install.php is one of those. Which other files should I delete?
chefnelone's user avatar
  • 6,237
14 votes
2 answers
13k views

How to create a table during the module installation

I'm trying to create a module for Drupal 7 and I need to create 3 tables and populate it. But first i need to create it. In the file mymodule.install I have got function mymodule_install() { } ...
Tyler Durden's user avatar
  • 2,316
12 votes
11 answers
12k views

Drush CC all returning "No Drupal site found, only 'drush' cache was cleared"

I've tried other solutions, but none of them are specific to my setup. I just started using the new Linux subsystem featured in the recent Windows 10 update. I'm using WAMP x64 v3.0.6, and have ...
Kellen's user avatar
  • 457
12 votes
1 answer
6k views

How do I create a role programmatically?

How do I create a role programmatically? What am I doing wrong here? $role = \Drupal\user\Entity\Role::create(['id' => 'client', 'name' => 'Client']); $role->save();
Jake Lacey's user avatar
10 votes
1 answer
5k views

Managing module library dependencies with composer

I've found Dependencies in a custom module with drupal-composer, How can I include a third party library in my custom module without using Composer Manager and How to manage contrib modules composer ...
Neograph734's user avatar
  • 8,409
9 votes
2 answers
3k views

Disabling module with config sync and removing with composer

I have an issue disabling modules, I've searched but cannot find something useful: - Developer A disable module and via composer remove it - I pull his changes so i run composer install that remove ...
Francesco's user avatar
  • 123
9 votes
3 answers
38k views

Programmatically creating a content type with file field in a custom module

I'm writing a custom module, which I've done before, but this is the first time I've tried to create a content type with fields. I implemented hook_node_info and the Content Type is showing up in the ...
Kenny Wyland's user avatar
  • 3,058
9 votes
2 answers
840 views

Best way to delete all variables when uninstalling module

I'm writing a module that writes several variables (three, four variables for every content type, and other). Which method should I use to delete them on hook_uninstall? Is it safe to perform a ...
arrubiu's user avatar
  • 3,222
9 votes
2 answers
3k views

How do I add default values to a database table using hook_install()?

I am creating a custom module with its own schema of a few tables. These tables need to have some values pre-populated into them for the module to work (default locations, select options, etc). What'...
oranges13's user avatar
  • 725
8 votes
4 answers
2k views

How to maintain a local mirror on my Mac?

I have a personal Drupal 6 site being hosted commercially, and I would like to maintain a mirror of the site on my local MacBook for the purposes of developing custom modules and themes before ...
Alex Basson's user avatar
8 votes
1 answer
3k views

how do I get my module to install a view?

I have developed a module in a dev environment. I built a view for it using the UI. I've exported the view, but I don't know where to put it so that an installation of the module in a fresh ...
user1359's user avatar
  • 3,909
8 votes
9 answers
3k views

How to handle enabling new modules with Drush via makefile

At work we are moving to getting our new sites set up in git and doing local development. So far I've created a drush make file along with an installation profile, and I have this scripted via puppet ...
dragonmantank's user avatar
7 votes
3 answers
4k views

Installation error with Composer

I'm trying to install Drupal 8 with Composer. Drupal Console is already installed (in case that's relevant), so I go to my localhost folder (working locally) and type: composer create-project drupal-...
Jorge Montoya's user avatar
7 votes
3 answers
6k views

Cannot install any theme

I am new to Drupal and am facing an issue where any theme that I try to install will fail with the following message: Installing light_skeleton An error has occurred. Please continue to the error page ...
Fabrizio Mazzoni's user avatar
7 votes
4 answers
2k views

How to get list of module folders which can be deleted safely?

I've uninstalled a lot of unnecessary modules recently through admin/modules/uninstall. Now I want to understand what folders of the modules can be deleted from sites/all/modules. I've tried drush ...
Dimetry's user avatar
  • 440
7 votes
2 answers
319 views

How to cancel installation of my module if requirements are not met

My module depends on a PHP library (sites/all/libraries/xyz/xyz-library.php). I want drupal to continue with installation only if library requirements of my module are met. I want something of this ...
claws's user avatar
  • 725
7 votes
4 answers
7k views

CKEditor 4 library is not detected by Wysiwyg module

The Wysiwyg installation instructions tell me to Extract the archive and copy its contents into a new folder in the following location: sites/all/libraries/ckeditor So the actual library ...
Wyguf Seak's user avatar
7 votes
1 answer
4k views

Does hook_install() get called before or after configuration yml files are loaded?

In Drupal 8, during module install, is hook_install() called before or after loading the .yml files in config/install? I've across a module that's using both (which seems like a bad idea on its own) ...
acrosman's user avatar
  • 2,728
7 votes
4 answers
17k views

Bootstrap failing with Drush 9.1.0

I had Drush 9 working before it got upgraded to 9.1.0 and am a little bit at my wits end why Bootstrap is failing and why I get "Bootstrap failed" or "! [NOTE] Drupal root not found. Pass --root or a @...
Adrained's user avatar
  • 319
7 votes
1 answer
33k views

How to fix error 'This site can’t be reached' for a site installed on Amazon? [closed]

I have just installed Drupal 8.1.3 on an Amazon instance using the instructions provided here. I can connect via SSH (console) to my instance successfully. However, when I try to browse my public ...
Jérôme Verstrynge's user avatar
7 votes
1 answer
441 views

Safe to remove core optional modules

I'm running on a restricted machine space/memory where I have to remove all un-needed modules. Is it considered safe to uninstall core optional unused modules?. modules like: Book, Forum, etc.
saadlulu's user avatar
  • 1,760
7 votes
2 answers
4k views

How to enable modules through configuration?

I am trying to enable modules by adding them to core.extension.yml file without getting involved with Features, Configuration Installer or similar modules or profiles. The modules are enabled but ...
duru's user avatar
  • 599
7 votes
4 answers
6k views

What causes 'sites/default/files is not writable' during Drupal 7 Install on Redhat w/ Apache?

I am attempting to install Drupal on Linux Redhat using Apache, but it will not allow me to pass step 3 due to the fact that sites/default/files is not writable. I have followed the instructions on ...
TalkingHeads's user avatar
7 votes
1 answer
148 views

Is there a good reason to prefer one method of installing over another?

Starting to play around with drupal 8. My first method of installing was installing drush8 (as mentioned in https://www.drupal.org/documentation/install/download): Get drush8: composer require ...
User's user avatar
  • 1,723
7 votes
0 answers
9k views

Site redirects to install.php file over and over again after installation of Drupal [closed]

I installed Drupal-7.x-2.0-alpha5-core in my localhost and installation completed successfully but i can't go into the site after installation. it directs me to the install.php file over and over ...
rockerzrokz's user avatar
6 votes
3 answers
32k views

Problem installing in local "The translation server is offline"

I'm trying to install Drupal 8 on my laptop (localhost on a WAMP server), and I always get the following error in the first steps: Requirements problem The translation server is offline. ...
vicenteherrera's user avatar
6 votes
3 answers
8k views

How to install with composer external library that drupal module depends on

Module bootstrap_languages depends on external library of same name how do we ask composer to require the external library that needs to go to libraries/bootstrap_languages folder The project's ...
GiorgosK's user avatar
  • 8,443
6 votes
4 answers
9k views

Does drush need to be installed as root?

Per http://docs.drush.org/en/master/install/ # Download latest stable release using the code below or browse to github.com/drush-ops/drush/releases. php -r "readfile('http://files.drush.org/drush....
user1032531's user avatar
6 votes
2 answers
2k views

How to set the default theme programmatically

I've tried to set a theme as default theme in drupal 8 using the following code > $config = \Drupal::configFactory()->getEditable('system.theme'); > $config->set('default', 'test_theme')...
Fazeela Abu Zohra's user avatar
6 votes
1 answer
2k views

Create a node programmatically on installing a module

I would like to have my module to create new nodes (page) when being installed and removing these pages on uninstall. I tried the following with no success in my mymodule.install file: <?php ...
Pascal's user avatar
  • 171
6 votes
1 answer
619 views

"Declaration of <function> must be compatible with <interface>" in Drupal 8.6.10

Up until Saturday I had a functioning Drupal 8.6.x instance. The I did composer update and Drupal 8.6.10 was installed. Since then I get the following in my error logs: Declaration of Drupal\Core\...
Stephen Winnall's user avatar
6 votes
2 answers
534 views

Truncate field storage tables added by module before uninstall

I've added a field via hook_entity_base_field_info(). It has data stored in it. I then go to uninstall my module and I get the following error: -> drush8 pm-uninstall massing -y The following ...
Lester Peabody's user avatar
6 votes
7 answers
3k views

Cannot log in to drupal admin in a new installation (access denied)

I've just made a Drupal 7 installation on localhost with XAMPP. I created an SQL database and did the installation without any error. However, when I try to login on Drupal admin from localhost/...
Tasos's user avatar
  • 193
6 votes
1 answer
124 views

Module Uninstall Validators and Lazy Services

I have recently been working on creating functionality for a module that requires certain content related to the module be deleted before the module itself can be uninstalled. https://www.drupal.org/...
Stephanie Galata's user avatar
6 votes
2 answers
555 views

How to uninstall a module that has added a basefield that has data

My module adds a basefield 'myfield' to the core 'file' content entity. I now need to uninstall my module for development purposes, but I can't because drush refuses to uninstall the module, saying "...
Jonathan's user avatar
  • 1,118
6 votes
5 answers
3k views

How to install Drupal 7 on Ubuntu? [closed]

I'm in the process to move the development on Ubuntu 14.04. At the beginning everything seemed to work fine but quickly I discovered it was not. Installing new modules, by UI, Drupal stops without (...
joe.c's user avatar
  • 61
5 votes
3 answers
615 views

How do I fix these installation errors? [closed]

I'm installing D7 on Ubuntu 12.04. I've been following the procedure explained in this page. And this is the error I'm getting: I've already made MySQL database called 'drupaldb'. I've also checked ...
CobaltBabyBear's user avatar
5 votes
4 answers
4k views

How to install drush extension / addon globally?

I want to install drush-toolbox project globaly on my linux server box so all users can use it. How can I do it?
sobi3ch's user avatar
  • 349
5 votes
3 answers
782 views

Export set variables from site to include in install profile

Is there a module, separate from Features, that can export currently set variables (as you can see if you run drush vget) - in the correct format so that I can copy and paste into the install profile. ...
Andrew Welch's user avatar
  • 2,601
5 votes
3 answers
6k views

What could be causing drupal to want to reinstall itself after I clear cache?

I am trying to update Drupal from 7.17 to 7.18. I uploaded a copy of my site from a test server to my production server. Everything installs fine, I actually see the site working, and I can navigate ...
blue928's user avatar
  • 3,804
5 votes
1 answer
297 views

Why does Drupal say I need to upgrade to 8.0.0 beta 6 when I'm already checked out on that tag?

I followed the git instructions at: https://www.drupal.org/project/drupal/git-instructions to get Drupal 8 : git clone --branch 8.0.x http://git.drupal.org/project/drupal.git . I then checked out ...
therobyouknow's user avatar
5 votes
3 answers
2k views

File structure for custom modules in Drupal 7

I want to organize non-core (modules that are not bundled with core) modules in Drupal 7. This is my proposed structure: Contributed modules - downloaded modules that are untouched Custom modules - ...
Bhavik Shah's user avatar
5 votes
1 answer
320 views

Can we use a hook_update_N for a module without hook_install?

I am working on a custom module which does not have an install file but nevertheless uses a lot of tables. The one who worked on it previously, created the database tables manually. Now I want to add ...
Binny's user avatar
  • 890
5 votes
1 answer
4k views

Drupal doesn't detect my MySQL installation

Does Drupal 7 use some special libraries for MySQL? I tried to install the 7.8 version, and the only option for the database I have is "SQLite." I am running Drupal 6 on the same server, and it works ...
PartySoft's user avatar
  • 1,036

1
2 3 4 5
14