Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XAMPP and Wordpress - Slow Loading

I've recently installed WordPress onto localhost using XAMPP to host it. For some bizarre reason, accessing any page from the WordPress site (including the admin panel) is very slow.

I've tried changing the host file to show:

127.0.0.1 127.0.0.1
127.0.0.1 localhost

But it hasn't made the slightest difference. My machine specs are fairly high, so this doesn't seem to be an issue. I'm currently in the process of downloading a new browser (currently using IE) - although i doubt this'll help the issue.

like image 555
user2553024 Avatar asked Jul 05 '13 08:07

user2553024


1 Answers

I've been digesting the web to find a solution for that, and it seems that it depends on your environment; in my case, it was working just fine until I installed Eclipse with Worklight.

Anyway, I just figured out how to overcome the very slow response time.

If Apache and MySQL are not installed as a service (no green checkmark beside the module name in XAMPP control panel) like this... like this ...follow these steps to do so:

  1. Stop Apache and MySQL and close XAMPP
  2. Go to XAMPP location (by default c:/xampp)
  3. Right-click on xampp_start.exe > "Properties" > "Compatibility" tab; check "Run this program as an administrator"
  4. Repeat the above step with xampp_control.exe (don't run XAMPP now)
  5. Now you will be able to start mysql_start.bat and apache_start.bat
  6. Now open XAMPP (you will get a UAC alert about launching the program as administrator)
  7. You will find a red crossmark beside Apache and MySQL module, just click on the red crossmark beside each module and agree to install as service (if modules are running you have to stop them first)

This really works for me after a very long time-consuming web search with no luck at all. I hope it helps.

like image 141
Mou Avatar answered Oct 22 '22 09:10

Mou