mohatt / dashbrew

Vagrant build for developing PHP projects on different PHP versions and configurations
490 stars 38 forks source link

Failed to open stream: Permission denied #3

Closed iamntz closed 9 years ago

iamntz commented 9 years ago

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
iamntz commented 9 years ago

In fact... There is some weird stuff going on.

Right now, the config have these variants:

php::builds:
  5.5.22:
    variants: dev
    extensions:
      xdebug:
        enabled: true
        version: stable
    fpm:
      port: 9003
      autostart: false
  5.6.6:
    installed: true
    default: true
    variants: dev
    extensions:
      xdebug:
        enabled: true
        version: stable
      xhprof:
        enabled: true
        version: latest
    fpm:
      port: 9004
      autostart: true

It throws those errors I mentioned above, but if i run vagrant provision, seems to be ok. I have to dig a bit more to find out what all those options exactly does :smile:

PS: would be nice to be able to set PHP versions like 5.4.latest or something similar.