Yii2: Real-time chat app

Hello everyone,

I have:

Ubuntu 14.04

nginx 1.4.6

Yii Framework/2.0.8 - Advanced app

I’m using this tutorial - _http://my-yii.com/learn/view-episode/yii-2-real-time-chat-app-with-nodejs-socketio-and-redisio to create real-time chat application. However, I have a small error while running it:




jquery.js:9203 POST http://IP/frontend/web/index.php?r=site/index 500 (Internal Server Error)



It appears while sending a message (everytime I try to POST a message into the application).

Nodejs work perfectly and I am guessing that it is about redis server. I know that 500 error means that it may be syntax error, however as I said I have copied everything from the tutorial.

Any ideas?

Hi,

Pl check if yii is installed properly. It seems you are using advanced app.

Then it should work.

check thi link

All resolved.

The issues was git not being installed on my server, because of this issue I could not run composer because it kept giving me error related to the SSH.

Install the package:


sudo apt-get install git-all 

and initialise yourself




$ git config --global user.name "John Doe"

$ git config --global user.email johndoe@example.com



That’s it. Thanks for help though.