nginx + v8cgi
Kiswono Prayogo
kiswono at gmail.com
Wed Oct 7 11:27:01 MSD 2009
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
More information about the nginx
mailing list