OS version: Windows 7 64-bit Service Pack 1
last revision: 2014-06-27
here are the instructions:
- Apache Run Python Script
- Download Xampp Control Panel V3.2.2
- Running Python On Xampp
- Xampp Installation Guide
# download & install XAMPP (you only can get 32-bit version for windows)
http://www.apachefriends.org/download.html
http://www.easyphp.org/download.php (another choice)
- Open XAMPP control panel, click on config and go to httpd.conf file search for addhandler and add '.py' without quotation just like in the screenshot (if it's not added) httpd.conf file Restart the apache server To run a python script: Open any text editor and put this code.
- Creating MySQL Database with XAMPP. XAMPP stack of software is an open-source localhost server providing a number of functionalities through the package of software it contains. The software, which is part of XAMPP is started/stopped using the XAMPP Control Panel. It is used for testing the projects and modifications offline before launching it.
Xampp is a forehead install, so I will not talk you through that. For our purposes, of course you want the Windows version. Next you want to install Python, which is another forehead install. I assume you have installed both xampp and python on the C Drive: c:/xampp; c:/python27. WAMP stands for Windows, Apache, MySQL, and anyone of PHP, Perl, or Python. WAMP server is a local webserver for running the scripting language (PHP, Perl) and this is open source. XAMPP stands for Cross-Platform (X), Apache (A), Maria DB (M), PHP (P), and Perl (P). It is developed by Apache Friends. Re: ESP8266 /XAMPP-Converting arduino to Python Post by samerou » Sat May 11, 2019 11:55 pm I tried another solution for posting a http request in order to fill XAMPP tables but without success and Arduino code still working but micropython until now no solution.
# install python 2.7.x (choose 32-bit, Because the Apache in XAMPP is 32-bit version)
(why not python 3.x? don't ask me, google the question by yourself.)
http://www.python.org/download/releases/2.7.7/
Apache Run Python Script
# check python bit-version (run the following script in Python)
import struct; print( 8 * struct.calcsize('P'))
(should print out ‘32′)
# check python version (run the following script in Python)
import sys; print (sys.version)
(print out ‘2.7.7′ in this moment)
# download mod_wsgi (a bride for Apache and Python)
http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi
Choose a 32-bit version zipped file (Because the Apache in XAMPP is 32-bit version)
Then unzip it to get a mod_wsgi.so file.
or you can get it directly from here(I upload my mod_wsgi.so file to google drive.)
# copy mod_wsgi.so to the XAMPP installed path
i.e. if you install XAMPP in the path 'D:XAMPP'
then copy mod_wsgi.so to the path: 'D:XAMPPapachemodules'
# add load wsgi module script in Apache configuration (httpd.conf)
LoadModule wsgi_module modules/mod_wsgi.so
that's all.
You can launch Apache & MySQL in XAMPP now.
good luck!
Central Standard Time (CST) is UTC-6:00, and Central Daylight Time (CDT) is UTC-5:00, this time zone is called Central Time Zone (CT) in the United States, Canada, Mexico, Central America, Caribbean Islands, and part of the Eastern Pacific Ocean. Converting CST to UTC. This time zone converter lets you visually and very quickly convert CST to UTC and vice-versa. Simply mouse over the colored hour-tiles and glance at the hours selected by the column. CST stands for Central Standard Time. UTC is known as Universal Time. UTC is 5 hours ahead of CST. 2 AM ( 2:00 ) Central Standard Time to Your Local Time and Worldwide Time Conversions. ( UTC ): » Central Daylight Time to Local Time Main Conversion Page. Daylight Saving Time used for Central Standard Time (CST), for details check here. Scale:. Is local time not Right? Input the time zone below to convert. Greenwich Mean Time (GMT. 2am cst to utc. CST to UTC call time Best time for a conference call or a meeting is between 8am-12pm in CST which corresponds to 2pm-6pm in UTC 5:00 am Central Daylight Time (CDT). CEST to UTC converter to convert between CEST (Central European Summer Time) and UTC (Coordinated Universal Time). Convert any CEST time to UTC quickly and accurately.
[IMPORT!!] the Apache bit-version must be matched with the Python bit-version, or you will get error while Apache trying to launch. They must be both 64-bit version or both 32-bit version.
extra
# install Pydev plugin for Eclipse
1. select 'Help' on top toolbar in Eclipse
2. select 'install new software'
3. add a new site named Pydev , Location = http://pydev.org/updates
4. select 'Windows' on top toolbar in Eclipse
5. Choose PyDev > Interpreters > Python Interpreter
6. add a new interpreter path: D:Python27python.exe
# install pip
1. visit 'http://bootstrap.pypa.io/get-pip.py' and download it
2. then enter command line, type 'python get-pip.py'
3. add the pip directory path(i.e. D:Python27Scripts) in 'PATH' variable (don't ask me what is 'PATH'…)
(if it shows up an error when you type 'pip' in command line mode. you need to exit command line mode and reopen it to make pip script activated.)
# install virtualenv (virtualenv is a tool to create isolated Python environments. see here)
pip install virtualenv
# install MySQL Python connector(a bridge for Python and MySQL)
go to MySQL official download page
choose Microsoft Windows platform
download the MSI installer for python 2.7 and install it
# install Django (a python framework, support wsgi)
pip install Django1.8.18
# install BeautifulSoup (a HTML parser for python, see here)
pip install beautifulsoup4
# install django-celery (a Distributed Task Queue solution)
pip install django-celery
# install python-gcm (a google cloud messaging for Android push notification)
pip install python-gcm
Download Xampp Control Panel V3.2.2
# install PIL(Python Imaging Library)
pip install Pillow
Running Python On Xampp
# install GeoIP2
pip install geoip2
Xampp Installation Guide
Tags: Apache, django, MySQL, Python, Web, windows, XAMPP