So, I have a tramp configured with virtual hosts on my development machine, but when I try the very simple echo "hello world", it hangs like 10 seconds before processing the file. HTML files are displayed very quickly. Where do I even begin to fix this problem?
After some research, others complained about slow work with php and virtualbox / vagrant. Many argue that the reason for this is to use a shared folder between the host / guest.
- I tried to change the location of the shared folder so that it does not point to / var / www /
- I also tried to completely remove the public folder configuration by deleting the 'config.vm.synced_folder' statement
In each case, I re-provided the field, but still get the same performance issues, at least 10 seconds freezes when you click on a simple php script in a web browser.
Other things I've tried:
- runs the same php script from the command line. It works great. The immediate answer.
- Clicking an html page from a web browser. I also get a quick response.
This makes me think that the problem is somehow related to the apache + php stack part.
Not sure what else to do.
source share