SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75! 
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

please help :)

5 years 7 months ago - 5 years 7 months ago #122511 by steffmomo
please help :) was created by steffmomo
Hi there,

I am having an issue with enabling modules with Drush. I've attached the screenshot of my terminal ( secure.helpscout.net/conversation/167955409/16411/ ).
I'm on your Drupal Drush course, enabling projects.

I believe my problem is it is not connecting to my database, because no settings.php file exists in my sites folder, with my default.settings.php

I've read connecting the mysql.sock file, but I cannot find it in my acquia devdesktop for the life of me.










Kind regards,

Steph

This message has attachments images.
Please log in or register to see it.

Please Log in to join the conversation.

5 years 7 months ago #122527 by steve
Replied by steve on topic please help :)
Hi and welcome, Steff

Acquia Dev Desktop is definitely different from a normal Drupal set up. The old version was a large multi-site set up and the new version 2 is even more abstracted.

It will depend what platform you're using (Mac or Windows) but there are some suggestions here for where the settings.php file is:
drupal.stackexchange.com/questions/22917...op-database-settings

Have you discovered this option inside Acquia Dev Desktop?

This message has an attachment image.
Please log in or register to see it.

Please Log in to join the conversation.

5 years 7 months ago #122533 by steffmomo
Replied by steffmomo on topic please help :)
Hi Steve, thank you for the reply.

I've had zero hiccups with all the tutorials, until now, so everything has been great.

I've read that link, when searching for an answer, but my issue is it isn't connecting to the database at all to create the settings.php file. I'm on a Mac, using Acquia Dev Desktop 2.

Thank you,

Steph

Please Log in to join the conversation.

5 years 7 months ago #122534 by steve
Replied by steve on topic please help :)
Ah, OK. So this is a brand-new site that you're aiming to set up via Drush?

This may be possible by a Acquia Dev Desktop 2 bug. Are you able to spin up new sites via the Acquia Dev Desktop admin?

Please Log in to join the conversation.

5 years 7 months ago #122538 by steffmomo
Replied by steffmomo on topic please help :)
Actually, no I can not.
I have found I cannot download directly from Acquia Dev. Before I tried drush I have had to download drupal core directly from drupal.
Maybe I should attempt it from MAMP?

Please Log in to join the conversation.

5 years 7 months ago #122542 by steve
Replied by steve on topic please help :)
Ah, that's good to know. That points towards this being an Acquia Dev Desktop problem, not a Drush problem.

Did you get any kind of error message when trying to install Drupal via the ADD2 admin?

Please Log in to join the conversation.

5 years 7 months ago #122544 by steffmomo
Replied by steffmomo on topic please help :)
Oddly enough I just went to install 7.x & 8.x to show you the error message. I uninstalled and reinstalled ADD2 last night and that seemed to have fixed whatever problem I had had before.

But I am still getting the drush error message when I am trying to enable modules.

Please Log in to join the conversation.

5 years 7 months ago #122545 by steffmomo
Replied by steffmomo on topic please help :)
Even if I start with a pre-existing Drupal site with a DB connection, I cannot enable anything via Drush.

I'm not sure if that will give a little more insight.

Please Log in to join the conversation.

5 years 7 months ago #122556 by steve
Replied by steve on topic please help :)
They key message here is that it can't find settings.php

Are both of the options in your first image definitely correct?

Drupal root
Site Path

Please Log in to join the conversation.

5 years 7 months ago #122557 by steffmomo
Replied by steffmomo on topic please help :)
I just checked, yes they are.

Please Log in to join the conversation.

5 years 7 months ago #122571 by steve
Replied by steve on topic please help :)
Hmmm, I wonder if this is an ADD2 bug or if we've missed something in the set up.

What do you get if you run drush status?

Please Log in to join the conversation.

5 years 7 months ago #122573 by steffmomo
Replied by steffmomo on topic please help :)
Last login: Fri Feb 5 12:04:11 on ttys000
Stephanies-MacBook-Pro:~ steffmomo$ drush status
PHP executable : /usr/bin/php
PHP configuration :
PHP OS : Darwin
Drush script : /Users/steffmomo/.composer/vendor/drush/drush/drush.
php
Drush version : 7.1.0
Drush temp directory : /tmp
Drush configuration :
Drush alias files :

Please Log in to join the conversation.

5 years 7 months ago #122577 by steve
Replied by steve on topic please help :)
This thread contains several possible solutions: drupal.stackexchange.com/questions/98802...s-not-work-on-my-mac

One that came up frequently in researching this is changing to 127.0.0.1 in settings.php.

Can you try that, then the other suggestions on that thread?

Please Log in to join the conversation.

5 years 7 months ago #122580 by steffmomo
Replied by steffmomo on topic please help :)
I checked out the page yesterday but it doesn't offer much help as the MAMP is setup differently.

I cannot write 127.0.0.1 in settings.php because the folding isn't being created.

Please Log in to join the conversation.

5 years 7 months ago - 5 years 7 months ago #122583 by steffmomo
Replied by steffmomo on topic please help :)
It's not working in MAMP either. I thought it was by writing:
export PATH=/Applications/MAMP/Library/bin/:$PATH
source ~/.bash_profile

But that just threw a deprecated ctools error on the site.


So I am at a loss as what it is I should try?

Please Log in to join the conversation.

5 years 7 months ago #122586 by steve
Replied by steve on topic please help :)
Good question. I think a bug report to Acquia might be the next step here.

Stepping back a bit, are you setting up Drush here in order to learn it, or use it? If the latter, when it comes to using Drush, I think it may be more painful than useful for local development.

Please Log in to join the conversation.

5 years 7 months ago #122599 by steffmomo
Replied by steffmomo on topic please help :)
I did want it to use it. I was under the impression that it was a must-have tool to speed up development?

If it really is nothing but a headache, when would you use it, if not locally?

Please Log in to join the conversation.

5 years 7 months ago - 5 years 7 months ago #122662 by Daniel Pickering
Replied by Daniel Pickering on topic please help :)
Hi steffmomo I am not staff but I know what is wrong. It is basically saying you don't have sufficient user permissions to run the drush command.

can you tell me that the command was that you where trying to run ? Exactly as you entered it

Try this:

cd into your drupal main folder
sudo en -y views (this will prompt it to ask if you want to download views because you put -y it will auto answer yes, Then it will enable the module automatically and any additional sub dependencies)
The following user(s) said Thank You: steve, steffmomo

Please Log in to join the conversation.

5 years 7 months ago #122702 by steve
Replied by steve on topic please help :)
@dclpuk Many thanks for the suggestion

a must-have tool to speed up development


Yes, if you're working with Acquia hosting.

However, our main use of ADD is to allow people to spin up test sites quickly. You can install many different flavors of Drupal using just a click. If you're doing serious development and aren't on Acquia, you may be best of using your favorite localhost (MAMP, WAMP, AMPPS etc)
The following user(s) said Thank You: Daniel Pickering, steffmomo

Please Log in to join the conversation.

5 years 7 months ago #122703 by steffmomo
Replied by steffmomo on topic please help :)
I want to thank you both for your help!

Please Log in to join the conversation.

5 years 7 months ago #122711 by steve
Replied by steve on topic please help :)
Thanks steffmomo

Let us know if this stops you from moving forward. We'll be happy to keep helping.

Please Log in to join the conversation.

5 years 7 months ago #122734 by Daniel Pickering
Replied by Daniel Pickering on topic please help :)
I totally agree with Steve if you plan to use Acquia hosting stick with it.
Otherwise it isn't really going to do you any favours.
If my suggestion works then you need to change the folder permissions and create an alias for it to work without sudo or keep sudoing.

Please Log in to join the conversation.

5 years 7 months ago #122763 by Valentin
Replied by Valentin on topic please help :)
Hi guys,
I'm glad Steve suggestions were helpful for you.

Feel free to open a new topic or reply to this one if you have more questions.

Kind regards,
Valentín

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!