drush

Drush enable error

别来无恙 提交于 2020-01-17 12:25:10
问题 when i what to enable module using drush I'm getting this error Im using mamp pro 3 and php 5.5.10 <h1>Additional uncaught exception thrown while handling exception.</h1 <h2>Original</h2> <p>PDOException: SQLSTATE[HY000] [2002] Socket operation on non-socket in drupal_is_denied() (line 1933 of /Users/edinpuzic/desktop/projekti/studiotnt /includes/bootstrap.inc).</p> <h2>Additional</h2> <p>PDOException: SQLSTATE[HY000] [2002] Socket operation on non-socket in _registry_check_code() (line 3185

Using Drush Site-Install in C#

僤鯓⒐⒋嵵緔 提交于 2019-12-31 04:43:29
问题 I'm trying to do a Drupal site install using Drush in C# as part of a full Windows Server site installation using MSI. The Drush commmand I am using is the following one. C:\ProgramData\Drush\Drush.bat -y si application_name --db-url=sqlsrv://admin_name:password(local)\SQLEXPRESS:/database_name --account-name=admin --account-mail=name@test.com --account-pass=Password1234 --site-mail="admin@company.com" --site-name="Site Name" install_configure_form.site_default_country=GB install_configure

Why does calling drush command by system() fail?

冷暖自知 提交于 2019-12-24 20:47:25
问题 I have Drupal 7 site on IIS 7.5 server. Inside IIS Services Manager I choose user with administrator rights in anonymous authentication settings. I'm sure that drush command is in evn path. When I logged as this user (Win7) I can call this command everywhere. However when I try to launch this command inside Drupal module: $output = array(); $res = exec('drush --version', $output, $retval); $retval is always 1 (error), $output and $res are empty. Different command (sqlcmd) works ok. Both

Open a file directly from a GitLab private repository

喜欢而已 提交于 2019-12-18 11:07:55
问题 I have a private repository on a GitLab server and using the SSH I can pull a project using git clone. But I want to run a script on linux command line directly from the server (more specific, a Drupal / Drush .make file) I tried to run it using the raw file: drush make http://server.com/user/project/raw/master/file.make (for the convenience of non Drupal users let’s say) curl http://server.com/user/project/raw/master/file.make Without success. Of course, it returns me the login page. Is it

Drush install on local server error (Command pm-enable needs a higher bootstrap level)

自闭症网瘾萝莉.ら 提交于 2019-12-13 04:29:06
问题 I am getting an error message in Drush on a local mamp install PDO::__construct(): [2002] Connection refused (trying to connect via tcp://127.0.0.1:3306) [warning] environment.inc:517 Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush from a more [error] functional Drupal environment to run this command. The drush command 'en devel' could not be executed. [error] Drush was not able to start (bootstrap) the Drupal database. [error] Hint: This may occur when

Drupal create node with body programmatically

ε祈祈猫儿з 提交于 2019-12-12 04:05:13
问题 I am trying to create nodes in Drupal 7 using a php script I then execute using Drush. While I am able to create a basic node with a title, I am not able to set the body for some reason. I have tried two different approaches using different advice I found on other forums. In the first case, setting node elements directly: ... $node->title = 'Your node title'; $node->body[$node->language][0]['value'] = "<p>this is a test</p>"; $node->body[$node->language][0]['summary'] = "body summary; $node-

Drush commands not executing using Paramiko

流过昼夜 提交于 2019-12-11 01:58:29
问题 I've followed the steps here http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/ to connect to my server with ssh via Python. I can connect fine and send commands. When I run stderr.readlines(), however, it shows me the error message below every time, even if the command seems to have executed correctly. I've closed the connection and restarted Python, and still the same result. Here's a Python sample: >>> stdin, stdout, stderr = myssh.exec_command("xyz") >>>

Where Drush 9 aliases file should be located in Drupal 8?

柔情痞子 提交于 2019-12-10 13:29:24
问题 I have tried some ways to create an alias for my local Drupal project, I'm referring to : https://www.drupal.org/node/1401522 https://www.drupal.org/project/drush/issues/831272 https://www.drupal.org/project/drush/issues/786766 I can connect by running this command : drush --root=C:/wamp64/www/executive-coatings --uri=http://localhost:81/executive-coatings status Output : Drupal version : 8.6.13 Site URI : http://localhost:81/executive-coatings DB driver : mysql DB hostname : localhost DB

Drush cannot connect to MySQL on MAMP?

邮差的信 提交于 2019-12-06 04:43:22
问题 Im trying to set Drush up for the first time. Im using Mamp and Mountain Lion. When I type 'drush' into the terminal I get a list of commands so it seems to be installed up OK. Ive changed the default web directory folder in MAMP. I have many Drupal sites within folders within the web directory. So the url for one site is http://localhost:8888/omega/omegav3/ and another is http://localhost:8888/omega/omegav4/ By navigating to the site folder in the terminal I can then run a Drush command,

Drush cannot connect to MySQL on MAMP?

旧城冷巷雨未停 提交于 2019-12-04 09:27:16
Im trying to set Drush up for the first time. Im using Mamp and Mountain Lion. When I type 'drush' into the terminal I get a list of commands so it seems to be installed up OK. Ive changed the default web directory folder in MAMP. I have many Drupal sites within folders within the web directory. So the url for one site is http://localhost:8888/omega/omegav3/ and another is http://localhost:8888/omega/omegav4/ By navigating to the site folder in the terminal I can then run a Drush command, however I get errors. When I download Views it does download the module to my sites/all/modules folder