Welcome! Log In Create A New Profile

Advanced

nginx + v8cgi

Kiswono Prayogo
October 07, 2009 03:36AM
Has anyone use nginx and v8cgi together?
maybe someone can help me how to configure it ^^
i am extremely newbie in nginx, and i think to leave php and move to
server side javascript v8cgi that is faster than php
maybe if someone kindly give their fine tutorial, it sould be put on
the nginx wiki ^^

Maybe someone need it, this is my script to compile v8 in ubuntu 9.04 x64

svn checkout http://v8.googlecode.com/svn/trunk/ .
scons mode=release library=shared snapshot=on arch=x64
# originally linked to libv8.so.0
sudo rm /usr/lib/libv8.so
sudo ln -s /home/admin/Repository/v8/libv8.so /usr/lib/libv8.so

Maybe someone need it too, this is my script to compile v8cgi in ubuntu 9.04 x64
# more dependencies to aptitude: http://code.google.com/p/v8cgi/wiki/Compiling

#wget --continue
http://launchpadlibrarian.net/26305244/libicu40_4.0.1-2_amd64.deb
#wget --continue
http://launchpadlibrarian.net/26305246/libicu-dev_4.0.1-2_amd64.deb
#wget --continue
http://launchpadlibrarian.net/30735190/libxerces-c3.0_3.0.1-2_amd64.deb
#wget --continue
http://launchpadlibrarian.net/30735191/libxerces-c-dev_3.0.1-2_amd64.deb
#sudo dpkg -i libicu40_4.0.1-2_amd64.deb
#sudo dpkg -i libicu-dev_4.0.1-2_amd64.deb
#sudo dpkg -i libxerces-c3.0_3.0.1-2_amd64.deb
#sudo dpkg -i libxerces-c-dev_3.0.1-2_amd64.deb
svn checkout http://v8cgi.googlecode.com/svn/trunk/ .
scons reuse_context=1 mysql=1 pgsql=1 sqlite=1 fcgi=1 gd=1 dom=1
module=1 arch=x64
ifile=/etc/v8cgi.conf
sudo cp v8cgi.conf.posix $ifile
param='s/\/usr\/lib\/v8cgi/\/home\/admin\/Repository\/v8cgi\/lib/g'
sudo sed -i "$param" $ifile
/usr/lib/v8cgi
ifile='/home/admin/Repository/v8cgi/v8cgi'
ofile='/usr/lib/v8cgi'
sudo rm $ofile
sudo ln -s $ifile $ofile
ofile='/usr/local/bin/v8cgi'
sudo rm $ofile
sudo ln -s $ifile $ofile
ifile='/etc/apache2/mods-available/v8cgi.load'
sudo touch $ifile
sudo chmod 777 $ifile
sudo echo 'LoadModule v8cgi_module
/home/admin/Repository/v8cgi/mod_v8cgi.so' > $ifile
sudo chmod 644 $ifile
ls -al $ifile
ifile='/etc/apache2/mods-available/v8cgi.conf'
sudo touch $ifile
sudo chmod 777 $ifile
sudo echo 'AddHandler v8cgi-script .sjs .ssjs .jst' > $ifile
sudo chmod 644 $ifile
ls -al $ifile
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 stop


Regards,
Kis
GB
Subject Author Posted

nginx + v8cgi

Kiswono Prayogo October 07, 2009 03:36AM

Re: nginx + v8cgi

Jeff Waugh October 07, 2009 04:00AM

Re: nginx + v8cgi

Igor Sysoev October 07, 2009 04:48AM

Re: nginx + v8cgi

Kiswono Prayogo October 13, 2009 09:28AM

Re: nginx + v8cgi

Peter A Leonov October 14, 2009 05:10PM

Re: nginx + v8cgi

Kiswono Prayogo October 14, 2009 08:48PM

Re: nginx + v8cgi

Kiswono Prayogo October 15, 2009 11:40PM

Re: nginx + v8cgi

Phillip Oldham October 16, 2009 06:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready