0

I was trying to add Chiliec/yii2-vote widget to my project. However when I tried to run the migration nothing happens so I tried other commands and they also do nothing Commands in console literally do nothing

Any help/suggestions would be appreciated.

[kyle@kyle-pc blog]$ ./yii help
./yii: line 3: ?php: No such file or directory
./yii: line 4: /bin: Is a directory
./yii: line 5: assets: command not found
./yii: line 6: assets: command not found
./yii: line 7: assets: command not found
./yii: line 8: syntax error near unexpected token `('
./yii: line 8: ` * @copyright Copyright (c) 2008 Yii Software LLC'

1 Answer 1

1

I think that's something wrong with your php cli config because even the yii help doesn't have any output.

If you run this command, does return something?

php -r "echo 'Hello, world.';"

You can try enabling the error messages in your CLI config.ini you can try other tips from here

Sign up to request clarification or add additional context in comments.

7 Comments

Yes that returns "Hello, world."
Try running php -d display_errors=1 -f yii to see if there are any errors
Warning: require(/srv/http/blog/common/config/bootstrap.php): failed to open stream: No such file or directory in /srv/http/blog/yii on line 16 Fatal error: require(): Failed opening required '/srv/http/blog/common/config/bootstrap.php' (include_path='.:/usr/share/php56/pear') in /srv/http/blog/yii on line 16
I have just checked out 'yii' file and its contents are for the advanced application but I have the basic application installed
In this case I would copy the contents of the yii file from the basic app template: github.com/yiisoft/yii2-app-basic/blob/master/yii
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.