Configure Nginx + PHP5 + Memcache in Windows

Source: Internet
Author: User
Tags netbeans
Xampp has been used for a long time, and almost no configuration is required. It is quite convenient to use it. However, if customers are abroad, they certainly won't be masters. Therefore, the most troublesome thing to deploy environments for customers is the slow network, it is really unbearable to upload dozens of MB of files at a time, so I put the idea on nginx (EngineX). This is a little bit of a plug-in. After compression, it takes more than 1 M to add the most streamlined

Xampp has been used for a long time, and almost no configuration is required. It is quite convenient to use it. However, if customers are abroad, they certainly won't be masters. Therefore, the most troublesome thing to deploy environments for customers is the slow network, it is really unbearable to upload dozens of MB of files at a time, so I put my mind on nginx (Engine X). This is a little bit of a plug-in. After compression, I got more than 1 M points and added the most streamlined one.

Xampp has been used for a long time, and almost no configuration is required. It is quite convenient to use it. However, if customers are abroad, they certainly won't be masters. Therefore, the most troublesome thing to deploy environments for customers is the slow network, it is really unbearable to upload dozens of MB of files at a time, so I put the idea on nginx (Engine X). This is a little bit, and only 1 MB after compression, add the most streamlined PHP5, a total of more than 5 MB.

There are a lot of articles on how to configure nginx on the Internet. I browsed about it and finally got it done after several experiments. I will share it with you:

1. Download nginx with a windows Version

2. Download PHP. Generally, use the VC9 version.

3. Configure nginx, decompress nginx to drive C, and configure the nginx/conf/nginx. conf file. For detailed configuration methods, refer to other articles on the Internet. A complete configuration download connection will be provided later.

4. Too many parameters are configured for PHP. Let's take a look.

5. Put website files in the website directory. By default, they should be placed under nginx/html.

6. Start php-cgi + nginx



Execute start_nginx.bat to start. The effect should be as follows:

In this case, you can close the command line window without worrying that nginx and php-cgi will not be turned off.

Then, test whether the environment is normal: enter 10 http: // localhost/test. php In the browser


OK!


Tips for PHP time zone:
Date. timezone = Etc/GMT-8

China is UTC + 8 time zone, so here you can configure it to Etc/GMT-8, other Time Zone configuration corresponding to the number.


Tips for XDebug debugging in NetBeans:

Add in php. ini

[XDebug]
Zend_extension = c: \ php5 \ ext \ php_xdebug.dll
Xdebug. remote_enable = on
Xdebug. remote_handler = dbgp
Xdebug. remote_host = 127.0.0.1
Xdebug. remote_port = 9090

Same configuration in NetBeans,





Click to download: nginx + php5 + memcache

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.