Link to home
Start Free TrialLog in
Avatar of timb551
timb551Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Slow Wordpress site on IIS

hi

I have a wordpress site which was previously running on Apache and MYSQL.

I have had to move the site onto IIS7.5 with MySQL for Windows.

The site is running and the wp-admin area is fine but when ititially loading the site its taking approx 10 seconds to display the page, even locally on the server.

Once the site has loaded to seems to function ok.

Any idea?

thanks
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

Have you checked the Console and the Network tabs in the browser dev tools (Firefox or Chrome)?

Sometimes that happens when a file isn't being found, for example. The network tools may help pin down which part of the site is slow.
Avatar of timb551

ASKER

Nothing obvious there.

User generated image
Try installing the Query Monitor plugin:
https://wordpress.org/plugins/query-monitor/

Once installed, it can report on slow database queries, which may or may not be the problem. It adds a tool to the admin bar that's shown at the top of a front-end page when viewed while logged in to WordPress.

User generated image
Avatar of timb551

ASKER

Thanks.

Nothing listed as a slow query and when ordering them by time elapsed the longest one is a fraction of a second.
Go through the Query Monitor report carefully, as this will always show the problem.

Tip: Be sure you add the following to your wp-config.php file to capture SQL related data...

// Allow Debug Bar slow query diagnosis
define( 'SAVEQUERIES', true );

Open in new window


Tip: Debugging this on a LAMP Stack will be far easier than on Windows.

Tip: Moving from Apache to IIS will almost certainly fail, as IIS has no .htaccess understanding + WordPress requires copious .htaccess usage for many types of functionality to work. If you haven't put in place some shim or cruft to handle this difference, this may be the problem.

You'll just have to search for a IIS .htaccess kludge.

Using .htaccess kludges with IIS or NGINX or any Webserver requires a large amount of time/effort to get working + keep working.

Also you'll likely have continually subtle performance problems related to this sort of kludge requiring daily effort to address.
Avatar of timb551

ASKER

Ended up being a call to a now defunked website within the code.
ASKER CERTIFIED SOLUTION
Avatar of timb551
timb551
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial