First of all, you have to have windows2003 and IIS 6.0(6.0(6.0 (it will be over after 6.0). Then the things to be installed are: php5.2, mysql5.0, phpmyadmin2. 1 1.
It is too much trouble to find these things one by one. Luckily, we have wamp.
Once you learn how to install wamp, it's just "configuration".
All the file paths mentioned below are based on wamp. The directory of php in wamp is wampphpWindows directory. Copy php5isapi.dll to C: Windows Whip ",and then open a browser to test it.
First, you need to modify php.ini and find the parameter extension_dir. Assuming wamp is installed on drive D, change it to
Extension _ Directory
=
"d: wamppextphpwindows \ system 32 order.
Write it down, otherwise it is useless to open extension=php_mysql.dll in php.ini, and you will get an error when browsing the page that needs to connect mysql.
"mysql" type does not exist.
We have encountered such a practical problem: the websites of asp and asp.net have been running on 54, and iis has seized port 80, so apache can't be used. Is there anyone else who must be present?
Single, found in wamp) international domain.
Domain name resolution: after the domain name is purchased successfully, it needs to be resolved. In the management console, click the domain name, click the domain name resolution, and fill in the content of the resolution item according to the prompt.
Website filing: After the domain name resolution is successful, click on the URL and find that you still can't access the website. You will be prompted for the file. Register the account of Alibaba Cloud filing system, and prompt to upload materials as required. First of all, Alibaba Cloud will file a case for review, and I will call you within one working day. Submit it to the Administration after success, and I will call you within 5-20 days. I am lucky here, and I have completed the filing work twice in four days. The bureau will send you a short message with record number, account number, password and so on. Save this information and put the record number at the bottom of the website.
Completion: After successful filing, click the URL to enter your own website. Remember to take a snapshot of the instance at ordinary times.
How to deploy pythonweb programs?
Deployment scheme of PythonWeb program
Generally speaking, nginx+uwsgi is the first way to deploy Pythonweb sites with high performance.
Apache+mod_wsgi is a simple and stable way with average performance.
The API server can directly use tornado or gevent.
mod_python
There is nothing to introduce about deploying python in a very primitive cgi mode. For management systems and websites that do not pursue performance, using Apache deployment is a good choice. Using mode_python to deploy Python web applications was very popular earlier, and official documents even recommended this method in Django0.96.
It embeds Python interpreter into Apacheserver and provides an interface to access Apacheserver. Mod_python is not performing well now, and every et works well.
Tornado also has some wonderful uses, such as making wsgi containers.
gevent
Gevent is an artifact that can do many things. On the web side, process the poser.json file.
2. Add an entry file
After initialization, let's configure the portal file. Create a new public folder under the hellovod directory, and create an entry file index.php under this folder.
3. Add routing function
Next, create an app folder under the hellovod directory, and create a new routes.php under the app folder.
4. Add a controller module
In the hellovod/app directory, create the Controllers folder to place the controller files. Create a controller file in this folder: IndexController.php.
5. Add a model
Of course, the framework should be able to deal with the database, otherwise there will be no soul. We set up a database named hellovod, and then created a user table: hw_user.