Using WAMP server to run cgi python , cgi-bin , PHP , apache , scripts



How to set up wamp to use Python CGI programming and php on your own computer. SQL works also. Only tested on windows.All programs can be run through localhost in browser and files stored in www directory in wamp.
Wamp Version 2.4
Python.3.5.0

Link to Python https://www.python.org/downloads/release/python-350/

Link to Wamp
http://sourceforge.net/projects/wampserver/files/WampServer%202/Wampserver%202.4/

Has to be Python 3.5.0 and wamp 2.4 to work !!!

add these lines to httpd.conf after directory “c like the video.
——————————————————————-
AddHandler cgi-script .cgi .py
Options Indexes FollowSymLinks ExecCGI
——————————————————————–

Make sure to save Python as C:Python35 using custom installation.First line of your program must direct to where python.exe is installed.You must use parenthesis with print.

Link to My httpd.conf file and test programs
https://www.dropbox.com/s/5nyqzdnyjznqo3k/hello.php?dl=0
https://www.dropbox.com/s/anfjevfbxd4v6xq/httpd.conf?dl=0
https://www.dropbox.com/s/8kns13x4326kmxl/new.py?dl=0

source

Reply


Build A Site Info