Author |
|
Express
Joined: 07 Jan 2013 Posts: 34
|
Posted: Mon 14 Jan '13 2:02 Post subject: Slow page loading, ways to optimize? |
|
|
So I have a dedi box running the following:
- Windows Web Server 2008 R2 SP1
- Apache
Quote: | Server version: Apache/2.4.3 (Win32)
Server built: Aug 18 2012 12:41:37 |
PHP
Quote: | PHP 5.4.10 (cli) (built: Dec 19 2012 20:33:34)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies |
MySQL
The problem I have is the page load times are really slow, I have not really got any ideas as to how I can optimize this?
The Apache server is currently hosting, (in theory) 3 domains. Though only 1 is commonly used (partially because I can't get the other domains to function properly, story for another thread...).
EDIT: I am aware of some of the How-To threads, but I want to see what people recommend based on their experience. |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Mon 14 Jan '13 8:34 Post subject: |
|
|
I too am running Apache 2.4.3 32-bit on a WIndows 2008 R2 Server with SP1. I am running PHP 5.4 (but not MySQL).
How much RAM do you have on your server? What kind of pages are you serving?
Is your Drive configuration a RAID configuration?
Do your pages load slow when you load them locally (i.e. localhost)? |
|
Back to top |
|
Express
Joined: 07 Jan 2013 Posts: 34
|
Posted: Mon 14 Jan '13 15:37 Post subject: |
|
|
The server has 32GB DDR3 RAM. I am primarily just serving .php scripts which for the most part are just a IP.Board forum installation. There is however self-written code being use on one domain as well.
The drives to my knowledge are not in a RAID Configuration, however they are SSD's.
The connection to the apache server seems quite sluggish itself aswell, even locally. |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Tue 15 Jan '13 19:48 Post subject: |
|
|
What happens if you load a "static HTML page?" Also, is Apache using up an excessive amount of memory? Are you using PHP or FCGID? |
|
Back to top |
|
Express
Joined: 07 Jan 2013 Posts: 34
|
Posted: Tue 15 Jan '13 22:19 Post subject: |
|
|
I don't really have a decent HTML page, but just making one myself saying 'Hello' it loads instantly (though I guess that is partially due to it's tiny file size).
Apache is not using much memory at all really.
I use PHP, as noted in my original post. |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
|
Back to top |
|
Express
Joined: 07 Jan 2013 Posts: 34
|
Posted: Thu 17 Jan '13 1:24 Post subject: |
|
|
Unfortunately, I won't have the chance to properly test this until tomorrow, possibly Friday.
I will get back to you and let you know if this fixes the problems, which I hope it will. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 17 Jan '13 15:19 Post subject: |
|
|
I suggest to use xdebug to check the bottlenecks. |
|
Back to top |
|
Express
Joined: 07 Jan 2013 Posts: 34
|
Posted: Sat 19 Jan '13 21:09 Post subject: |
|
|
I am thinking the link to mod_security2 is accidental?
On that note, would it also be useful to run this (what purpose would it serve exactly)?
Can you provide more detail on xdebug as well, James Blond?
EDIT: It would seem also that enabling this fcgid module causes 403 forbidden on everything. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|