Sunday 11 March 2018

WAMP(Webserver) installation on Windows to use Python for Web Programming

WAMP(Webserver) installation on Windows
  • 1.       Install Python 3.x version.
  • 2.       Download and install Microsoft visual studio-2008&2010&2012&2013&2015(Both 32bit and 64 bit)
  • 3.       Please check for msvcr120.dll exist or not in “C:\Windows\System32\” directory of the system where going to install WAMP. If not please download it and place in that path.
  • 4.       Download and install WAMP webserver software from “sourceforge.net” site. Better to install 64 bit.
  • 5.       Now go to the right corner toolbar and left click on WAMP icon
  • 6.       Select “Apache>httpd.conf” file
  • 7.       Inside httpd.conf, look for the line that says “<Directory “c:/wamp/www/”>“, just a few lines below this you’ll find the line that says “Options Indexes FollowSymLinks“. Add “Includes ExecCGI” in the line just next to FollowSymLinks, thus it look like this
  • 8.       Replace that line with below text
         
  • 9.       Above “AddHandler” is to support “.cgi ” files and “.py” files. If you want perl also you can mention as “.pl”. And also comment a line “Deny from all” to overcome “Error: Forbidden Error” when you access from remote system
           
  • 10.   Run “ Services.msc” in windows and select wamp application>properties>start>manual – change it to automatic
  • 11.   Go to WAMP Tray and restart services and also restart windows.
  • 12.   Now run your url. It will work.



No comments:

Post a Comment