Answer the question
In order to leave comments, you need to log in
How to optimize a web server to run Laravel through a virtual machine on Ubuntu 18.04?
I set up the Vagrant config to raise the guest OS Ubuntu 18.04 on the host under Windows 10. Installed LAMP ( Apache2 + PHP 7.2 + MySQL ). Configured the local domain for the host as doc.local
In php.ini configured the parameter memory_limit = 4096M . It is displayed in phpinfo();
And also allocated 8GB of RAM to the virtual machine, but the effect is 0.
Scripts of the type phpinfo();
open instantly. And if you load the Laravel page by default, then it opens for 10-15 seconds, which is not normal.
Please tell me how to optimize the web server on Apache2 in conjunction with PHP 7.2?
Answer the question
In order to leave comments, you need to log in
It doesn't matter how much RAM you allocate. The problem lies in the synchronization of files between Windows and OSes in virtual box. The solution steps are as follows, you either completely keep your code in a virtual system, or you need to figure out how to speed up this process, one of the most convenient, though not the fastest, is the NFS synchronization mode. Search by casting Vagrant nfs. Also, instead of naked vagrant, you can use homestead in which everything has already been done for this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question