Closed wesleymusgrove closed 7 years ago
I switched my config.yml back the the default of drupal_build_composer_project: true
and drupal_build_composer: false
. Those are the only changes I made to the default config.yml. I ran vagrant destroy
to start from scratch. Then I ran vagrant up
and got nginx errors. Then I ran vagrant provision
. It got further, but still more nginx errors. Then I ran vagrant reload --provision
. Finally it completed successfully, but now when I try to view any of the dashboard, log pages, or Drupal at http://www.drupalvm.dev I can only see the Apache2 Ubuntu Default Page.
Here's the full command line output for the commands I mentioned above: https://gist.github.com/wesleymusgrove/abf3c2bba4e9340b52b5fc5764b7d33a#file-drupalvm-output
I believe I'm running into a similar issue as #486 with the blank nginx vhosts. Any advice would be much appreciated! I'm trying to get this up and running before DrupalCon Baltimore!
Oh just realized apache is the default drupalvm_webserver: apache
. That would explain why the nginx vhosts was empty. Nevertheless I'm still only able to see the Apache2 Ubuntu Default Page.
Here are the contents of my /etc/apache2/sites-enabled/vhosts.conf
:
DirectoryIndex index.php index.html
<VirtualHost *:80>
ServerName drupalvm.dev
ServerAlias www.drupalvm.dev
DocumentRoot /var/www/drupalvm/drupal/web
<Directory "/var/www/drupalvm/drupal/web">
AllowOverride All
Options -Indexes +FollowSymLinks
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</VirtualHost>
<VirtualHost *:80>
ServerName adminer.drupalvm.dev
DocumentRoot /opt/adminer
<Directory "/opt/adminer">
AllowOverride All
Options -Indexes +FollowSymLinks
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</VirtualHost>
<VirtualHost *:80>
ServerName xhprof.drupalvm.dev
DocumentRoot /usr/share/php/xhprof_html
<Directory "/usr/share/php/xhprof_html">
AllowOverride All
Options -Indexes +FollowSymLinks
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</VirtualHost>
<VirtualHost *:80>
ServerName pimpmylog.drupalvm.dev
DocumentRoot /usr/share/php/pimpmylog
<Directory "/usr/share/php/pimpmylog">
AllowOverride All
Options -Indexes +FollowSymLinks
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</VirtualHost>
<VirtualHost *:80>
ServerName 0.0.0.0
ServerAlias dashboard.drupalvm.dev
DocumentRoot /var/www/dashboard
<Directory "/var/www/dashboard">
AllowOverride All
Options -Indexes +FollowSymLinks
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</VirtualHost>
Everything seems to be correct, I just don't know why it's not routing to the proper docroots.
Here's my /etc/hosts
inside the guest drupalvm:
127.0.0.1 drupalvm.dev drupalvm
127.0.0.1 localhost
127.0.1.1 vagrant.vm vagrant
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Here's my /etc/hosts
outside on the host:
127.0.0.1 localhost
10.20.1.2 drupalvm.dev # VAGRANT: bfe97c1e35d6f35441af8a8ec614447c (drupalvm) / 87ab2ac5-6e91-4707-9017-c9ac808d4c5b
10.20.1.2 www.drupalvm.dev # VAGRANT: bfe97c1e35d6f35441af8a8ec614447c (drupalvm) / 87ab2ac5-6e91-4707-9017-c9ac808d4c5b
10.20.1.2 adminer.drupalvm.dev # VAGRANT: bfe97c1e35d6f35441af8a8ec614447c (drupalvm) / 87ab2ac5-6e91-4707-9017-c9ac808d4c5b
10.20.1.2 xhprof.drupalvm.dev # VAGRANT: bfe97c1e35d6f35441af8a8ec614447c (drupalvm) / 87ab2ac5-6e91-4707-9017-c9ac808d4c5b
10.20.1.2 pimpmylog.drupalvm.dev # VAGRANT: bfe97c1e35d6f35441af8a8ec614447c (drupalvm) / 87ab2ac5-6e91-4707-9017-c9ac808d4c5b
10.20.1.2 dashboard.drupalvm.dev # VAGRANT: bfe97c1e35d6f35441af8a8ec614447c (drupalvm) / 87ab2ac5-6e91-4707-9017-c9ac808d4c5b
Thanks @oxyc! In the interest of time with no real preference over apache or nginx, should I theoretically be able to change the config.yml to use nginx instead of apache and be up and running? If so, what needs to change?
Yes you can set
drupalvm_webserver: nginx
And it will work. You could also grab the latest master version of Drupal VM (should be released later today), and apache will work again.
The new version is out—so sorry about breaking all the things with my 4.4.3 release; we had such a great track record!
Thanks! Confirmed the new release works swimmingly.
Thanks for confirming, @wesleymusgrove, and reporting the issue!
A colleague is seeing this error on version 4.7. They are on the latest Ansible, and PHP 5.6.
Issue Type
Your Environment
Your OS
Full console output
https://gist.github.com/wesleymusgrove/d2a8ecb34e419fdcde6792a7e6e3399d#file-console-output-sh
Summary
I've been wading through various errors trying to get drupalvm working with the default config. Every time I run into an error, I
vagrant ssh
andrm -rf /var/www/drupalvm/drupal
. Then I start the process over by runningvagrant reload --provision
. I'm getting really super close, but I can't get past this error:Command site-install needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command. The drush command 'site-install standard' could not be executed.
The only change I made to my config.yml was to set
drupal_build_composer_project
tofalse
anddrupal_build_composer
totrue
. And to set thevagrant_ip: 0.0.0.0
.Here's my config.yml: