M
M
matperez2017-03-20 14:13:52
PHP
matperez, 2017-03-20 14:13:52

How to speed up XAMPP under Windows?

I moved here from Nginx + PHP-FPM under Linux to Windows and XAMPP and noticed that everything began to slow down wildly. The same pages on locally raised sites open 10 times slower. Maybe someone has already met with this? Suggest ways to speed it up.
//UPD
Set up Nginx+php-fpm in Ubuntu for Windows 10. In principle, it works (quickly), although there are problems:
1. Work with php-fpm has to be organized via tcp, not via a socket.
2. No autostart. every time you have to go to the console and write there /etc/init.d/[nginx|php5-fpm|mysql] start
3. Nginx cannot be restarted, it is somehow hard-wired on the port and after that it can no longer take it again, I have to reboot my windows machine completely.
4. I don't know yet what will happen to xdebug.
5. For some reason, it's impossible to run nginx on port 80, in windows there is already a certain "HTTP service" on this port, which the print manager and a few other services depend on. Surprisingly, Apache from XAMPP starts up fine on port 80. So far, everything is spinning on port 8080. I think you can make a proxy to Nginx from Apache from XAMPP.
// UPD2 Difference in loading the same page:
nginx + php-fpm in ubuntu for windows 150 - 200 ms
xampp 1700 - 1800 ms
// UPD3 XDebug works fine
Need to configure remote directory mapping in phpstorm. I got C:\vhosts\ => /mnt/c/vhosts/
And enable remote debugging in XDebug itself

echo "xdebug.remote_enable=1" >> /etc/php/5.6/mods-available/xdebug.ini
echo "xdebug.remote_connect_back=1" >> /etc/php/5.6/mods-available/xdebug.ini

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergej, 2017-03-20
@matperez

PHP on windows is much slower.
This is an indisputable fact.
As an option, enable Ubuntu Server in Win10 and raise nginx/php/...
This is if you want to work under Windows.
But I'd rather stay on linux

A
Adamos, 2017-03-20
@Adamos

The best way to speed up WAMP is to take it outside the window sill.
Gravity will give it the necessary acceleration.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question