Code Monkey home page Code Monkey logo

dashbrew's Introduction

Hi there ๐Ÿ‘‹

This is the place where I opensource stuff and break things ๐Ÿคฃ

  • ๐Ÿ”ญ Iโ€™m currently working on something cool ๐Ÿ˜‰
  • ๐ŸŒฑ Iโ€™m currently learning Go
  • ๐Ÿ’ฌ Ask me about anything related to PHP/Node.js/Typescript or Angular/React/Symfony
  • ๐Ÿ“ซ How to reach me: mohatt.web.app or [email protected]
  • โšก Fun fact: I like card games

Stats

dashbrew's People

Contributors

domagojgojak avatar jtreminio avatar mohatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dashbrew's Issues

Auth failure using MySQL SSH tunnelling - bad key?

Tried using the ~/vagrant.d/insecure_private_key (with user vagrant) as per the documentation, but getting auth failure. Do I need to regenerate this key somehow, or change something on the guest perhaps?

Failing on Windows?

With the sample environment.yaml file, vagrant up fails with this log:

==> default: 5.6: 7 releases
==> default: 5.5: 22 releases
==> default: 5.4: 38 releases
==> default: 5.3: 29 releases
==> default: ===> Done
==> default: ===> phpbrew will now build 5.6.0 plus custom variants: ++dev as 5.6.0
==> default: ===> Loading and resolving variants...
==> default: Checking distribution checksum...
==> default: Checksum matched: 1f889357528809a6675e2f23995832d7
==> default: ===> Extracting /opt/phpbrew/distfiles/php-5.6.0.tar.bz2 to /opt/phpbrew/tmp/php-5.6.0
==> default: ===> Removing /opt/phpbrew/build/5.6.0
==> default: ===> Moving /opt/phpbrew/tmp/php-5.6.0 to /opt/phpbrew/build/5.6.0
==> default: Variant '0' is not defined.
==> default: [Debug] -------------------------------------------------------
==> default: [Error] Unable to build php
==> default: [Info] Finished in 8.69s

I first assumed that Variant '0' is not defined. is because the php version was 5.6.0, so I bumped to latest (5.6.6), but no dice (same error)

This may be a cause of running

find . -name "*" -type f -exec dos2unix {} \;

because all text files were converted to CRLF, so bash commands failed, but I don't know how else I could test...

Unable to find the file '/provision/main/etc/hosts.json'

I get this error after a clean recurisive clone and a vagrant up, no records are added to my hosts file, adding 192.168.10.10 dashbrew.dev manually still doesn't work.

I'm on Win64 / Virtualbox 4.3.24 / Vagrant 1.7.2 w/ hosts provisioner plugin and vagrant-vbguest plugin installed.

Any help is much appriciated.

Error during 'Vagrant up' command

After cloning the repository, I ran vagrant up. This is the output i got

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'mdkholy/dashbrew'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'mdkholy/dashbrew' is up to date...
==> default: Setting the name of the VM: dashbrew_default_1425478812212_3545
==> default: Fixed port collision for 22 => 2222. Now on port 2201.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2201 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2201
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /var/www => /Users/somu/dashbrew/public
    default: /vagrant => /Users/somu/dashbrew
==> default: Running provisioner: shell...
    default: Running: /var/folders/by/8r45z959363gydsb7tncnxy40000gn/T/vagrant-shell20150304-78857-11mzrv9.sh
==> default: stdin: is not a tty
==> default: /tmp/vagrant-shell: line 23: /vagrant/provision/main/dashbrew: Permission denied
==> default: Running provisioner: hostsupdate...
==> default: Updating hosts file on the guest machine...
==> default: Unable to find the file '/provision/main/etc/hosts.json'
==> default: '/etc/hosts' file updated successfully
==> default: Updating hosts file on the host machine (password may be required)...
==> default: Unable to find the file '/provision/main/etc/hosts.json'

I checked the provision/main/etc folder, there is no hosts.json file.

Failure to copy build.log file

Failure to copy build.log file after successful build.

[Error] Failed to copy "/opt/phpbrew/build/php-5.3.29/build.log" because file does not exist.

How to add nginx?

How to add nginx replacing them apache, whether there is such an opportunity?

Enable remote debugging with xdebug by default if enabled

If xdebug is set to enabled in the environment.yaml, then xdebug.ini should probably have remote debugging turned on so it can be used right off the bat.

I did it on my end by adding the following lines to /config/php/fpm/conf.d/20-xdebug.ini and then running vagrant provision:

xdebug.remote_enable=On
xdebug.remote_autostart=On
xdebug.remote_connect_back=On

CD Command Response Time

After vagrant ssh, during setting the directory by using cd command, if the project has a git vcs, cd command response time is nearly 4-5 s. If anyone has faced with the same issue?

Unable to find the file '/provision/main/etc/hosts.json'

I saw this project on Reddit, so I thought I'd check it out. However, I'm missing the file '/provision/main/etc/hosts.json', so I have to edit the host files on both machines myself. There's nothing in the wiki, so I can't look up any documentation on the matter. Can you include the file in the repo?

Symlinking project folders in public/

I've tried symlinking a project folder from ~/Dev/myblog to public/myblog/ but it's not getting added during provisioning. I have .dashbrew and index.php files at the symlink's target. Are symlinked project folders supported by dashbrew?

OSX Yosemite 10.10.2

Installing on windows ?

Can I install this dashbrew on windows ? and I can't install vagrant-hosts-provisioner plugin,
Thank you,

Some proposals

I'm just trying this tool and there's a few thought coming to my mind right now

To include:
phpdoc, phpcs, phpmd, phpcpd, codeception, xhprof

Maybe:
phpci, gitlist

just saying ๐Ÿ˜‰

Failed to open stream: Permission denied

It seems there are still some issues (on Windows).

==> default: Initializing pear config...
==> default: PEAR_Config::writeConfigFile fopen('/root/.pearrc','w') failed (fopen(/root/.pearrc): failed to open stream: Permission denied)

==> default: PEAR_Config::writeConfigFile fopen('/root/.pearrc','w') failed (fopen(/root/.pearrc): failed to open stream: Permission denied)

==> default: PEAR_Config::writeConfigFile fopen('/root/.pearrc','w') failed (fopen(/root/.pearrc): failed to open stream: Permission denied)

==> default: Enabling pear auto-discover...
==> default: PEAR_Config::writeConfigFile fopen('/root/.pearrc','w') failed (fopen(/root/.pearrc): failed to open stream: Permission denied)

==> default: Congratulations! Now you have PHP with 5.6.0 as 5.6.0
==> default: To use the newly built PHP, try the line(s) below:
==> default:
==> default:     $ phpbrew use 5.6.0
==> default:
==> default: Or you can use switch command to switch your default php to 5.6.0:
==> default:
==> default:     $ phpbrew switch 5.6.0
==> default:
==> default: Enjoy!
==> default: [Debug] -------------------------------------------------------
==> default: [Info] Successfully built php
==> default: [Error] Failed to copy "/opt/phpbrew/build/php-5.6.0/build.log" because file does not exist.
==> default: [Info] Finished in 7.59m

SSH Command failed

Win7 Ultimate x64
gitbash

$ vagrant reload

This is ended with:

==> default: Attempting graceful shutdown of VM...
==> default: Checking if box 'mdkholy/dashbrew' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.18
    default: VirtualBox Version: 5.0
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /var/www => F:/work/vagrant/dashbrew/public
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chown `id -u vagrant`:`id -g vagrant` /var/www

Stdout from the command:



Stderr from the command:

stdin: is not a tty
chown: changing ownership of โ€˜/var/wwwโ€™: Not a directory

[Error] Unable to use php build '5.4.38' for project 'project.dev', php fpm port isn't configured

My php builds from the enviroment.yaml file:

php::builds:
  5.6.0:
    installed: true
    default: true
    variants: dev
    extensions:
      xdebug:
        enabled: true
        version: stable
      xhprof:
        enabled: true
        version: latest
    fpm:
      port: 9002
      autostart: true
  5.4.38:
    installed: true
    variants: dev
    extensions:
      xdebug:
        enabled: true
        version: stable
    fpm: 9004
    autostart: true
  5.3.29:
    variants: dev
    extensions:
    fpm:
      port: 9003
      autostart: true

5.3.29 works fine wihtout any config needed. Am I doing something wrong?

SSL certificate

How to enable self-signed certs?

I have ssl: true in my .dashbrew file

Default ip conflict

Is there some reason that 192.168.10.10 is used as the default box IP? I had trouble getting started and it turns out it is the same ip as Laravel Homestead uses.

Cannot open Dashbrew Dashboard

Hi,
I installed dashbrew and started VM on a Win10 computer. All look like work well but when i open http://dashbrew.dev in browse, it cannot connect. I don't know why, i'm new to Vagrant too.

I've set "git config --global core.autocrlf" to "false", installed required plugins but no luck.

This is boot log

D:\Work\Dashbrew\dashbrew>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'mdkholy/dashbrew'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'mdkholy/dashbrew' is up to date...
==> default: Setting the name of the VM: dashbrew_default_1426650039779_76475
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if its present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /var/www => D:/Work/Dashbrew/dashbrew/public
    default: /vagrant => D:/Work/Dashbrew/dashbrew
==> default: Running provisioner: shell...
    default: Running: C:/Users/ABC/AppData/Local/Temp/vagrant-shell20150318-1768-1nwpwj2.sh
==> default: stdin: is not a tty
==> default: /tmp/vagrant-shell: /vagrant/provision/main/dashbrew: /usr/bin/php^M: bad interpreter: No such file or directory
==> default: Running provisioner: hostsupdate...
==> default: Updating hosts file on the guest machine...
==> default: Unable to find the file '/provision/main/etc/hosts.json'
==> default: '/etc/hosts' file updated successfully
==> default: Updating hosts file on the host machine (password may be required)...
==> default: Unable to find the file '/provision/main/etc/hosts.json'
==> default: 'C:\WINDOWS\System32\drivers\etc\hosts' file updated successfully

View-Button on Dashboard not working on Firefox Dev

The view button next to my recent projects that is supposed to trigger a js popup does not work in current firefox versions (ubuntu 14.10, current firefox-dev). It redirects to a blank page with the URL 'javascript:$.openProjectInfo('/projects/info/dashbrew.dev');' and the content [object Object]. Popup works fine in chrome though.

Surely not the highest priority, but wanted to let you know anyway ;)

Great work, love this vagrant box! :)

Cannot access dashboard.

MacOSX El Capitan 10.11.3

Tomaszs-MacBook-Pro:dashbrew tomaszskorupka$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'mdkholy/dashbrew'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'mdkholy/dashbrew' is up to date...
==> default: Setting the name of the VM: dashbrew_default_1455662612565_76584
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.18
    default: VirtualBox Version: 5.0
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /var/www => /Users/tomaszskorupka/Work/vagrant/dashbrew/public
    default: /vagrant => /Users/tomaszskorupka/Work/vagrant/dashbrew
==> default: Running provisioner: shell...
    default: Running: /var/folders/xp/4jt5wwms0zg_0zrqhqj3nx080000gn/T/vagrant-shell20160216-2836-gyegpq.sh
==> default: stdin: is not a tty
==> default: [Info] An update patch is available for your box. Updating...
==> default: [Info] Update patch has been applied successfully
==> default: [Info] Provisioning without environment.yaml config file
==> default: [Info] Removing config file '/vagrant/config/home/.zcompdump'
==> default: [Info] Removing config file '/vagrant/config/home/.zcompdump-dashbrew-5.0.2'
==> default: [Info] Removing config file '/vagrant/config/home/.zsh-update'
==> default: [Info] Removing config file '/vagrant/config/home/.zsh_history'
==> default: [Info] Finding projects
==> default: [Info] Writing apache vhost file for 'local.dev'
==> default: [Info] Writing apache ssl vhost file for 'local.dev'
==> default: [Info] Writing apache vhost file for 'monit.dev'
==> default: [Info] Writing apache vhost file for 'phpmyadmin.dev'
==> default: [Info] Writing apache vhost file for 'mailcatcher.dev'
==> default: [Info] Writing apache vhost file for 'dashbrew.dev'
==> default: [Info] Writing apache ssl vhost file for 'dashbrew.dev'
==> default: [Info] Restarting services
==> default: [Info] Finished in 4.99s

PHP Settings not taking effect

How can I configure my php environment on the dashbrew base box? I've been trying to set my logging level to warnings only and set the variable accordingly in

  • /etc/php5/cli/php.ini
  • /etc/php5/fpm/php.ini
  • the vhost configuration file under /etc/apache2/sites-enabled
  • opt/phpbrew/php/5.4.38/etc/php.ini for a separately loaded php version

and properly restarted and reloaded apache2 but the changes don't seem to take effect.
These are the files that either php --ini or phpinfo() give back as their configuration files. Do I need to set it during provisioning?

Solution for projects that are built dynamically which deletes the .dashbrew file

For example, I have a projects that needs to be rebuilt on a regular basis, meaning that placing a .dashbrew in the site root will only work temporarily until it gets removed by the next rebuild.

Is there an alternative for this? Perhaps a global .dashbrew file that allows me to specify where the root directory lives for each project, instead of having to put the file in the root directory?

Changing session_save_path does not work

When changing the session save path to a directory within my project with the PHP function session_save_path() it does not work.
It does change the directory and creates the session file within the given directory, but the session file remains empty.
When I use the default session save path there is no problem.

How do i enable GD

My environment.yaml:

php::builds:
  5.6.0:
    installed: true
    default: true
    variants:
      - dev
      - gd
    extensions:
      xdebug:
        enabled: true
        version: stable
      xhprof:
        enabled: true
        version: latest
    fpm:
      port: 9002
      autostart: true

My .dashbrew:

Zandmotor:
  title: Zandmotor
  php:
    build: default
  vhost:
    servername: zandmotor.dev
    serveraliases:
      - www.zandmotor.dev
    ssl: true
    extensions:
      gd:
        enabled: true
        version: default

Still, the Drupal install complaints about missing GD

Missing Wiki

There are a number of references in the README to a wiki page. But the wiki doesn't seem to exist.

Project status

Hi Mohamed,

I would like to know if we can expect updates in the future or if you've stopped working on it.

Thanks,
Jonas

Cannot access dashboard.

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'mdkholy/dashbrew'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'mdkholy/dashbrew' is up to date...
==> default: Setting the name of the VM: dashbrew_default_1455826326109_86637
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version o       f
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you        see
    default: shared folder errors, please make sure the guest additions within t       he
    default: virtual machine match the version of VirtualBox you have installed        on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.18
    default: VirtualBox Version: 5.0
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /var/www => F:/work/vagrant/dashbrew/public
    default: /vagrant => F:/work/vagrant/dashbrew
==> default: Running provisioner: shell...
    default: Running: C:/Users/ANPNYM~1/AppData/Local/Temp/vagrant-shell20160218-3276-1f4s7uy.sh
==> default: stdin: is not a tty
==> default: /tmp/vagrant-shell: /vagrant/provision/main/dashbrew: /usr/bin/php^M: bad interpreter: No such file or directory
==> default: Running provisioner: hostsupdate...
==> default: Updating hosts file on the guest machine...
==> default: Unable to find the file '/provision/main/etc/hosts.json'
==> default: '/etc/hosts' file updated successfully
==> default: Updating hosts file on the host machine (password may be required)...
==> default: Unable to find the file '/provision/main/etc/hosts.json'
==> default: 'C:\Windows\System32\drivers\etc\hosts' file updated successfully

Provides also

http://i.imgur.com/gUEtbtc.png

Disable Output Buffering

I'm having an issue disabling output buffering in dashbrew. I think it may be buffering at the apache proxy level but I can't be too sure since I don't have that much experience with mod_proxy_fcgi.

Example code: http://stackoverflow.com/a/12740522

Would be appreciated if anyone has any information in it.

777 folder permissions

I'm not sure if this is related to dashbrew or something's wrong with vagrant / the CMS I'm using for me (I'm not massively experienced with Vagrant outside of using pre-made puphpet setups really) so my apologies if it's not an dashbrew issue but something I'm misunderstanding.

I'm running bolt cms on a site, and it requires a few files / folders to have 777 permissions.

chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/

I set the permissions on my host machine, they display as 777 on the host machine, and within vagrant.

The site then complains that it can't write to the cache folder - I check the app/cache folder and the site has created some initial folders in there, but they've got 755 permissions and now the webserver can't write to them as they're owned by vagrant and the webserver is running as www-data.

I could go into the VM and change apache to run as vagrant instead of www-data but I'd prefer not to, is there a way of maintaining 777 permissions on the folders? (recursively inside them as well)

VMWare Provider Support

Currently, this project does not work with VMWare Fusion.

I have already created the vmware-iso builder for the base box (mohatt/dashbrew-basebox#1) however when using this box there are issues actually running the provisioner.

This is the current error I'm getting;

โžœ  dashbrew git:(master) vagrant up --provider=vmware_fusion
Bringing machine 'default' up with 'vmware_fusion' provider...
==> default: Cloning VMware VM: 'mdkholy/dashbrew'. This can take some time...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
==> default: Starting the VMware VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 192.168.187.163:22
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for host entries
==> default: adding to (/etc/hosts) : 192.168.10.10  dashbrew.vm  # VAGRANT: 001312e6348306ac7f79eceb4cba1751 (default) / /Users/mathewpeterson/Sites/dashbrew/.vagrant/machines/default/vmware_fusion/ea70e051-c7d9-454e-92f2-05efc2414a22/dashbrew-ubuntu-14.04-amd64.vmx
==> default: Forwarding ports...
    default: -- 22 => 2222
==> default: Setting hostname...
==> default: Configuring network adapters within the VM...
==> default: Waiting for HGFS kernel module to load...
==> default: Enabling and configuring shared folders...
    default: -- /Users/mathewpeterson/Sites/dashbrew/public: /var/www
    default: -- /Users/mathewpeterson/Sites/dashbrew: /vagrant
==> default: Running provisioner: shell...
    default: Running: /var/folders/wl/sqy3rpzx2g15llf4gw6smfx40000gn/T/vagrant-shell20150315-3646-1j3r66.sh
==> default: stdin: is not a tty
==> default: [Info] An update patch is available for your box. Updating...
==> default: [Info] Update patch has been applied successfully
==> default: [Info] Initializing environment.yaml
==> default: [Debug] Initializing config files
==> default: [Debug] Finished running Dashbrew\Cli\Tasks\InitTask
==> default: [Debug] Running Dashbrew\Cli\Tasks\ConfigDefaultsTask
==> default: [Error] Failed to chown file "/vagrant/config/monit".
==> default: [Info] Finished in 0.23s

php5-cli is not yet configured

Hello,

I am encountering the following errors:

==> default: [Info] Installing OS package 'php5-mcrypt'
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: php5_invoke opcache: no action - module was disabled by maintainer for cli SAPI
==> default: Failed to open terminal.debconf: whiptail output the above errors, giving up!
==> default: dpkg: error processing package php5-cli (--configure):
==> default:  subprocess installed post-installation script returned error exit status 255
==> default: dpkg: dependency problems prevent configuration of php5-readline:
==> default:  php5-readline depends on php5-cli (= 5.5.23+dfsg-1+deb.sury.org~trusty+2); however:
==> default:   Package php5-cli is not configured yet.
==> default:
==> default: dpkg: error processing package php5-readline (--configure):
==> default:  dependency problems - leaving unconfigured
==> default: dpkg: dependency problems prevent configuration of php5-fpm:
==> default:  php5-fpm depends on php5-cli; however:
==> default:   Package php5-cli is not configured yet.
==> default:
==> default: dpkg: error processing package php5-fpm (--configure):
==> default:  dependency problems - leaving unconfigured
==> default:
==> default: Creating config file /etc/php5/mods-available/mcrypt.ini with new version
==> default: php5_invoke: Enable module mcrypt for cli SAPI
==> default: php5_invoke: Enable module mcrypt for fpm SAPI
==> default: Errors were encountered while processing:
==> default:  php5-cli
==> default:  php5-readline
==> default:  php5-fpm
==> default: E
==> default: :
==> default: Sub-process /usr/bin/dpkg returned an error code (1)
==> default: [Error] Error occured while installing OS package 'php5-mcrypt'
==> default: [Info] Installing OS package 'php5-gd'
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Failed to open terminal.debconf: whiptail output the above errors, giving up!
==> default: dpkg: error processing package php5-cli (--configure):
==> default:  subprocess installed post-installation script returned error exit status 255
==> default: dpkg: dependency problems prevent configuration of php5-fpm:
==> default:  php5-fpm depends on php5-cli; however:
==> default:   Package php5-cli is not configured yet.
==> default:
==> default: dpkg: error processing package php5-fpm (--configure):
==> default:  dependency problems - leaving unconfigured
==> default: dpkg: dependency problems prevent configuration of php5-readline:
==> default:  php5-readline depends on php5-cli (= 5.5.23+dfsg-1+deb.sury.org~trusty+2); however:
==> default:   Package php5-cli is not configured yet.
==> default:
==> default: dpkg: error processing package php5-readline (--configure):
==> default:  dependency problems - leaving unconfigured
==> default:
==> default: Creating config file /etc/php5/mods-available/gd.ini with new version
==> default: php5_invoke: Enable module gd for cli SAPI
==> default: php5_invoke: Enable module gd for fpm SAPI
==> default: Errors were encountered while processing:
==> default:  php5-cli
==> default:  php5-fpm
==> default:  php5-readline
==> default: E
==> default: :
==> default: Sub-process /usr/bin/dpkg returned an error code (1)
==> default: [Error] Error occured while installing OS package 'php5-gd'

My dashbrew environment.yaml is:


---
#
# OS Packages
#
# Packages to install via the OS package manager (apt-get).
#
os::packages:
  vim: true
  php5-mcrypt: true
  php5-gd: true

#
# PHP Builds
#
# A hash containing a list of PHP versions and their configurations
#  to be managed by phpbrew.
#
php::builds:
  5.6.0:
    installed: true
    default: true
    variants:
      - dev
      - mcrypt
      - gd
    extensions:
      xdebug:
        enabled: true
        version: stable
      xhprof:
        enabled: true
        version: latest
      gd:
        enabled: true
        version: stable
    fpm:
      port: 9002
      autostart: true
#
# Apache Modules
#
# Apache modules to install and enable.
#
apache::modules:
  rewrite: true

#
# Nodejs Modules
#
# Nodejs Modules to install via npm.
#
npm::packages:
  grunt-cli: true

#
# Debug mode
#
# Enables extra information during provisioning
#
debug: false

I'm using dashbrew also at home, and there it works (on windows) at my work computer (iMac) it doesn't.

Can someone help me out ?

How do I enable a PHP extension (like mcrypt)?

This is what I have in environment.yaml:

os::packages:
  php5-mcrypt: true

I tried that alone and

php::builds:
  5.6.0:
    installed: true
    default: true
    variants: dev
    extensions:
      xdebug:
        enabled: true
        version: stable
      mcrypt:
        enabled: true
        version: stable
      xhprof:
        enabled: true
        version: latest
    fpm:
      port: 9002
      autostart: true

It says:

==> default: PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'mcrypt.so' in Unknown on line 0
==> default: /opt/phpbrew/bashrc: eval: line 126: syntax error near unexpected token `('
==> default: /opt/phpbrew/bashrc: eval: line 126: `Warning: PHP Startup: Invalid library (maybe not a PHP library) 'mcrypt.so' in Unknown on line 0 export PHPBREW_ROOT=/opt/phpbrew export PHPBREW_HOME=/opt/phpbrew export PHPBREW_LOOKUP_PREFIX= export PHPBREW_PHP=5.6.0 export PHPBREW_PATH=/opt/phpbrew/php/5.6.0/bin'
==> default: Starting php-fpm...
==> default: [05-Mar-2015 11:39:12] NOTICE: PHP message: PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'mcrypt.so' in Unknown on line 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.