Thursday, April 21, 2011

after you install node.js, nginx is there? Change its configuration to do proxy for Sling if sling port move to 8080

This is the default index.html page that is distributed with nginx on Fedora. It is located in /usr/share/nginx/html.

You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf.

Tuesday, April 19, 2011

install node.js on AWS CentOS

Thanks to @wavded post on

when I upgrade to v0.5.10 on CentOS in aws ec2

under your node source directory

$ git pull
$ ./configure
$ make

Waf: Leaving directory `/home/ec2-user/git/node/out'
'build' finished successfully (31m18.692s)

$ sudo make install

Waf: Leaving directory `/home/ec2-user/git/node/out'
'install' finished successfully (0.324s)

and test

$ make test.

Wednesday, April 6, 2011

if you can't run couchdb on port 80.

It's because the user to run couchdb is (couchdb) who is not allow to run on port 80. You need to rebuild couchdb and change COUCHDB_USER to root as follows;

1. cd to your couchdb source code directory

$ cd svn/couchdb

2. change COUCHBD_USER to root

$ vi etc/default/couchdb

change COUCHDB_USER=couchdb to COUCHDB_USER=root

3. make and install it again.

$ make && sudo make install

4. then you can change couchdb local.ini configuration file to use port = 80. and restart the couchdb service again.

if you can 't run couchjs because of missing.

when run /usr/local/bin/couchjs and got error as follows;

./couchjs: error while loading shared libraries: cannot open shared object file: No such file or directory

try to copy /usr/local/lib/ to /usr/lib

$ sudo cp /usr/local/lib/ /usr/lib

or make a symbolic link from /usr/lib/ to /usr/local/lib/

$ sudo ln -s /usr/local/lib/ /usr/lib/