Answer the question
In order to leave comments, you need to log in
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
How to ensure that sites (which are written using php frameworks) on a local web server just fly?
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.1and you will be happy.
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).
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
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.
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
I tried a lot of things: vagrant... I have to use a remote connection.
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.
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 questionAsk a Question
731 491 924 answers to any question