![]() Of note: Most of the solutions I found were for MAMP but the two I tried worked beautifully on XAMPP even if the steps for the second solution are a bit different, it was easy enough to figure out. Now WordPress load time was under a second and I was happy. In the XAMPP Control Panel stop Apache and then start it again. ![]() I also made a note at the end of the line (Naomi edit), just to remind me later. Search for CGI until you find the line LoadModule cgi_module modules/mod_cgi.so and then put a # in front of it, so it won’t be loaded. This will open a file with configuration settings. In the XAMPP Control Panel click on the config button for Apache and select Apache (nf). I looked for the CGI module in Apache to disable it. I left my wp-config.php with the changed DB_HOST since it worked and tried a second option. Even the cheapest shared hosting I’ve had to work with does better with a clean install of WordPress than that. This actually helped! Page loading times went down from close to 5s to about 2s. This is what I changed it to: define( 'DB_HOST', '127.0.0.1' ) This is what it said in my wp-config.php define( 'DB_HOST', 'localhost' ) The first thing I tried is to change the database host. I put in my search query on the internet and open the first 3, 4, 5 promising options in tabs and then work my way through the tabs until my problem is solved. ![]() It includes an overview log that shows you everything that’s happening in the background of your environment. This enables you to access logs for each of XAMPP’s components. What: I did two of these, and the reason I did these two, is that I found them elsewhere first. On top of setting up the software you need to run WordPress, XAMPP provides you with a simple control panel: The XAMPP control panel. Where: Answer on Stack Overflow by Atlas_Gondal I found solutions for this in several places and I’m linking one that has several of them in one answer on Stack Overflow. Local installs are supposed to make development in WordPress easier but 5 second page loads make it harder. My local installs of WordPress in XAMPP where excruciatingly slow, easily 5 seconds for each page load even with a clean install of WordPress. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |