wnmp, what are the famous packages?

WBOY
Release: 2016-09-19 09:16:43
Original
1929 people have browsed it

wamp has xampp, but what about wnmp?

If you have configuration knowledge. Is it better to manually configure wnmp yourself, or is it better to use a suite to automate deployment?

Reply content:

wamp has xampp, but what about wnmp?

If you have configuration knowledge. Is it better to manually configure wnmp yourself, or is it better to use a suite to automate deployment?

There is the famous phpStudy, which can easily switch between php versions and apache and nginx, and has many functions. I used it for several years. . .

But I still recommend you to configure it yourself, it is actually very simple.

First, install nginx, which is a compressed package. Unzip it and the installation is complete.

The same goes for php.

mysql is simpler. There is an official installation package. Double-click the next step until it is completed, and set it to windows service. It will start automatically after booting.

Then, we need to run php-cgi to let php listen for requests from nginx.

We use winsc as a tool: https://github.com/kohsuke/winsw

Set php-cgi in the php directory as a service.

Then we also use the sc tool to set nginx as a windows service.

Then modify the nginx configuration so that it can find the 9000 port that PHP listens on.

Mainly this paragraph:

<code>        location ~ \.php(.*)$  {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  PATH_INFO  $fastcgi_path_info;
            fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
            include        fastcgi_params;
        }</code>
Copy after login

For complete configuration, see: https://github.com/shellus/my...

Remember to set up the root directory. The dynamic second-level domain name binding directory in the link above is used. You may not use it, so just specify the root directory directly.

All required files are available at: https://github.com/shellus/my...

If you have any questions, please comment directly.

Thank you for watching


Added:

By the way, to control these service switches, use sc start nginx like this. Run with administrator privileges. Please check github for details.

Of course it is best to build it manually. I haven't used the xampp integration software, so I can't say whether it is good or bad. It is true that it is convenient to a certain extent, but you cannot use xampp for online deployment. Building it yourself is conducive to mastering it.

There is indeed an integrated tool called wnmp, the website is www.getwnmp.org

phpstudy

phpstudy

In fact, the author of the program has written it and recommends learning how to build various environments for the web. I think this is also a good thing.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template