Installing v8cgi on a Windows machine

This procedure is tested on a x64 version of Windows 7.

Installing Apache

First of all, you have to install Apache.
  1. Point your browser to the Apache download page. Click on Win32 Binary without crypto (no mod_ssl) (MSI Installer) file. Double-click on this file to start Apache installation. If you are shown a security warning, ignore it and click "Run" to continue.
  2. Click on "Next" in the introductory screen.
  3. Select the "I accept the terms in the license agreement" radio button and hit "Next".
  4. Enter your "Network Domain" and "Server Name". In case you just want to do some testing, you can put "localhost" in both textboxes. In the "Administrator's Email Address" field I generally type in webmaster@localhost. Move to the next screen.
  5. Proceed with Typical installation type, unless you want to be adventurous!
  6. Change installation directory if you want to
  7. To start installing Apache 2.2 on Windows 7, click on the "Install" button and sit back. By the way, if the installation process is interrupted by the anti-virus program on your computer, just provide permissions for it to continue.
  8. In a few minutes, the Apache web server would be installed on your Windows 7 computer. You could have some problems if you are already running another web server, i.e. Microsoft IIS. In that case, you should change the port of the Apache server or disable the IIS.
  9. To test the installation, open a web browser window, enter http://localhost/ in the address bar and hit the "Enter" key .

If you get a page with the words "It works!", celebrate, because you now have the Apache web server running on your Windows 7 computer. Didn't get this message? You may need to start Apache. Go to "All Programs" -> "Apache HTTP Server 2.2" -> "Control Apache Server" and select either "Start" or "Restart". The Apache server can also be started and stopped from "Services" under the Control Panel or from the system tray.

Installing v8cgi

NOTE: replace ~/src with path to where you checkout and build v8 and v8cgi!

Download the last version of v8cgi at this link: http://code.google.com/p/v8cgi/downloads/list

unzip the package and put the folder inside where you want.

open the file ~/src/v8cgi/v8cgi.conf and edit the following line
require.paths.push("~/src/v8cgi/lib");

Put in your system path the folder "~/src/v8cgi" and "~/src/v8cgi/lib".
After this you can run the v8cgi interpreter from command line.

open the Apache configuration file (locate it at folder ~folder/of/your/apache/conf/httpd.conf) and add this four lines:
# V8CGI 
  LoadModule v8cgi_module "~/srcr/v8cgi/mod_v8cgi.dll" 
  AddHandler v8cgi-script .sjs
  v8cgi_Config ~/src/v8cgi.conf

Restart your system and verify that all things work!!!

Last edited May 26, 2011 at 5:51 PM by marcodist, version 6

Comments

No comments yet.