Laravel 4 and NodeJs/Redis pub/sub realtime notifications

Currently I am building an application where we can fill in live scores and I needed something to update all my visitors whenever a score has been updated by one of the admins.

Whenever an admin updates the score via the Laravel 4 backend I fire an event and publish it to Redis. I’ve setup a simple NodeJS server which listens to Redis for incoming changes. NodeJS will redirect the message to all Socket.IO clients.

Continue reading Laravel 4 and NodeJs/Redis pub/sub realtime notifications

VSFTPD for CentOS 6.4 (Selinux)

A couple of days ago I was setting up VSFTP on my CentOS 6.4 installation. I followed a tutorial and was able to connect to my server via FTP but however I did not see any contents. No error, nothing. My FTP users are bound to their home dir.

Did some searching on the internet and a lot of people turned off Selinux which causes the issue! Not a ‘real’ solution IMHO. To fix this first run the following command:

getsebool -a|grep ftp

Now check the values: ‘ftp_home_dir’ and ‘allow_ftpd_full_access’. Those should be set to ‘on’.

setsebool -P ftp_home_dir ON
setsebool -P allow_ftpd_full_access ON