D
D
Denwebart2015-10-18 15:45:38
PHP
Denwebart, 2015-10-18 15:45:38

Fastest php web server for windows?

How to ensure that sites (which are written using php frameworks) on a local web server just fly?
Which local server to use?
Tried a lot of things: vagrant, ubuntu-server deployed itself. But these options are not convenient for me. You have to use a remote connection. But the server speed is good there!
I don't work under Linux. Windows only (currently version 10). Ever wondered why php+apache is so much slower on windows than on Ubuntu?
My computer , it seems, is not very weak:
QuadCore AMD Athlon II X4 630, 2800 MHz (14 x 200), 8 gigabytes of RAM. Maybe some Apache programs are jamming?
Port 80 in skype cut down. Antivirus - ESET NOD32 9. Could NOD32 be to blame?
Now stopped on XAMPP. But he's also far from fast. Want faster. Yes, and it seems that over time, it becomes even slower.
Tried and separately to install PHP+Apache+MySQL in Windows. Well, so-so. Maybe there is some secret? Any tricks and tricks?
It would be desirable something like XAMPP'a that was simply adjusted and worked very quickly.
Tell me please.
PS NGINX never tried at all. It is praised, but I did not find how to install and configure it in Windows.
And is the difference significant? Is Nginx locally 10 heads faster than Apache in terms of speed?

Answer the question

In order to leave comments, you need to log in

11 answer(s)
I
index0h, 2015-10-18
@index0h

How to ensure that sites (which are written using php frameworks) on a local web server just fly?

The web server performs the transport role for the most part. In order for the site to "fly" - they need to be written in such a way that they would "fly"))
nginx+php-fpm
You checkers, or go?
You don’t take win as a server OS and everything will fall into place))

A
Alexander, 2015-10-18
@OneFive

buy ssd.

M
Mishko_kun, 2015-10-18
@Mishko_kun

There is a secret) Most likely there are performance problems in those parts of the site where you make SQL queries.
Solution: change the connection to the database in the config

from localhost to 127.0.0.1
and you will be happy.

D
Dmitry Kuznetsov, 2015-10-18
@dima9595

At the expense of NGINX, yes, it is praised. There are many articles on NGINX and Apache performance on Habre. I myself use Apache'm, tk. it is easy to install and configure.
As for performance: It all depends on how your scripts and sql queries are optimized.
As WAMP I use Open Server (on a local machine), and on a virtual machine I use LAMP (on Ubuntu).

R
Roman Mirilaczvili, 2015-10-18
@2ord

I think nginx + PHP-FPM will be fast.
nginx - for serving static
PHP-FPM - for serving web application content.
allthelittlebits.com/nginx-php5-fpm-mysql-setup-windows

P
Puma Thailand, 2015-10-18
@opium

Open5 the task manager and see how you have it loaded
Install a debugger and see why your PHP scripts are running for a long time, optimize the muscle config, since by default it does not include, for example, a cache.

A
asd111, 2015-10-18
@asd111

open-server

S
Sergic, 2015-10-22
@Sergic

ssd should be installed first. this is not because of the web server of the brake, but because of the hard drive , the
second if it is a server, then you need to install server Windows, and not Windows that is sharpened for games,
third documents, check the list of running tasks, there may be a bunch of processes that eat and memory , and the percentage
of nginx is an order of magnitude better than Apache, it is sharpened for high loads, and for development it doesn’t matter, both patch and nginx are the same
And you also need to configure opcache for php

T
tetafro, 2015-10-23
@tetafro

I tried a lot of things: vagrant... I have to use a remote connection.

If it's not a secret, what's inconvenient there? That is - remote connection for what? It's only necessary to edit the configs, but restart the demons. But judging by the fact that you use XAMPP and want everything out of the box, it is unlikely that you do this very often. I have a Mac, I just run a virtual machine with a vagrant and usually I don’t even log into it, it hangs in memory and that’s it.

Y
Yaroslav, 2017-05-02
@yaror

But interestingly, in the order of delirium.
Everyone remembers that Microsoft put Ubuntu Linux in Windows 10, and you can install it with standard tools right through the control panel?
How will web applications behave in Ubuntu built into Windows?
And development, probably, can be continued in familiar and convenient IDEs for Windows.

M
Michael, 2017-10-03
@springimport

I'm on OpenServer with php 5.6. On OpenServer, because Docker has a speed problem in shared folders, on Linux (Ubunt) fonts and interface are not the same. And php 5.6 because the project now requires it. And it's all pretty slow. Approximately 3-5 times slower than in Linux.
What can help speed up the work:
- if the project has a cache, then enable it, at least partially;
- opcache is our everything, necessarily;
- transition (in my case, for example) to PHP 7 or 7.1;
- SSD (will give as a sum of all of the above).
I don't see any point in changing Apache to Ngnix. The queries themselves are spent less than 1% compared to the work of PHP and MySQL.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question