Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problems - not sure if fatal or not #2

Open
samfullman opened this issue Jun 25, 2016 · 0 comments
Open

Installation problems - not sure if fatal or not #2

samfullman opened this issue Jun 25, 2016 · 0 comments

Comments

@samfullman
Copy link

I am running a Mac OSX Yosemite with Virtual Box, Vagrant version 1.8.1

I followed instructions on the readme.MD file and got the following error when I ran /var/www/bootstrap-advanced.sh (sorry for size but I wanted to be detailed):

Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
Installing yiisoft/yii2-app-advanced (dev-master a34ba1e1bced7acd4edd7cc20eb9dab0aa725c4e)

  • Installing yiisoft/yii2-app-advanced (dev-master master)
    Downloading: 100%

Created project in /var/www/yii2app.dev
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- yiisoft/yii2 2.0.x-dev requires bower-asset/jquery.inputmask ~3.2.2 -> no matching package found.
- yiisoft/yii2 dev-master requires bower-asset/jquery.inputmask ~3.2.2 -> no matching package found.
- yiisoft/yii2 2.0.8 requires bower-asset/jquery 2.2.@stable | 2.1.@stable | 1.11.@stable -> no matching package found.
- yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.
@stable | 2.1.@stable | 1.11.@stable -> no matching package found.
- yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.@stable | 1.11.@stable -> no matching package found.
- Installation request for yiisoft/yii2 >=2.0.6 -> satisfiable by yiisoft/yii2[2.0.6, 2.0.7, 2.0.8, dev-master, 2.0.x-dev].

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
Yii Application Initialization Tool v1.0

Start initialization ...

generate backend/config/main-local.php
generate backend/config/params-local.php
generate backend/web/index-test.php
generate backend/web/index.php
generate common/config/main-local.php
generate common/config/params-local.php
generate console/config/main-local.php
generate console/config/params-local.php
generate frontend/config/main-local.php
generate frontend/config/params-local.php
generate frontend/web/index-test.php
generate frontend/web/index.php
generate tests/codeception/config/config-local.php
generate yii
generate cookie validation key in backend/config/main-local.php
generate cookie validation key in frontend/config/main-local.php
chmod 0777 backend/runtime
chmod 0777 backend/web/assets
chmod 0777 frontend/runtime
chmod 0777 frontend/web/assets
chmod 0755 yii
chmod 0755 tests/codeception/bin/yii

... initialization completed.

ERROR: Site yii2app.dev does not exist!

  • Reloading web server config apache2 [ OK ]
    PHP Warning: require(/var/www/yii2app.dev/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/yii2app.dev/yii on line 14
    PHP Fatal error: require(): Failed opening required '/var/www/yii2app.dev/vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/yii2app.dev/yii on line 14

All Done!

Now add the ip/domain to your hosts file if you didn't already. A little help:
echo '33.33.33.34 yii2app.dev www.yii2app.dev admin.yii2app.dev' | sudo tee -a /etc/hosts

Access your new sites http://yii2app.dev http://admin.yii2app.dev

Rock'n roll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant