Friday, April 30, 2010

UDP Protocol Used For Digital Signage.!

I have tested both protocol, both are UDP based and faster download.
Available in interactive mode.

http://tsunami-udp.sourceforge.net/

http://fsp.sourceforge.net/

Thursday, April 15, 2010

Configure staging environment for Phusion Passenger.!

Please follow step-by-step success is your's : LOL

Copy production.rb to staging.rb in config/environments
cd /app/config/environments/
cp production.rb staging.rb

Add a staging entry to your config/database.yml
Your database.yml is should like this :

staging:
adapter: mysql
reconnect: false
database: databae_staging
username: root
password: password
host: localhost
socket: /var/lib/mysql/mysql.sock

Add log file for staging env.
cd log/
touch staging.log
chmod 0666 log/staging.log

For just check. if the env is working for staging.
ruby script/server -e staging

For The Phusion Passenger (mod_rails) You have to put "RailsEnv staging" in your Apache Virtual Host.

Like this:

< virtualhost XX.XX.XX.XX:80 >

RailsEnv staging
< /VirtualHost >

restart apache
and check website.

Sunday, April 11, 2010

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Hey Guys,

If you facing issue " shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory " for restarting service whaterver mysql,httpd,etc,

just do "cd or cd / " on console

it will resolved.

[root@domU-taging]# /etc/init.d/mysqld restart
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]

[root@domU-taging]# cd

[root@domU- ~]# /etc/init.d/mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]

cool.;)