logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Slow page loading, ways to optimize?
Author
Express



Joined: 07 Jan 2013
Posts: 34

PostPosted: Mon 14 Jan '13 2:02    Post subject: Slow page loading, ways to optimize? Reply with quote

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
    Quote:
    MySQL Server 5.1



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

PostPosted: Mon 14 Jan '13 8:34    Post subject: Reply with quote

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

PostPosted: Mon 14 Jan '13 15:37    Post subject: Reply with quote

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

PostPosted: Tue 15 Jan '13 19:48    Post subject: Reply with quote

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

PostPosted: Tue 15 Jan '13 22:19    Post subject: Reply with quote

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

PostPosted: Wed 16 Jan '13 21:29    Post subject: Reply with quote

I am thinking you may want to run Mod_Fcgid instead of PHP. You can find Mod_fcgid here: http://www.apachelounge.com/download/win32/modules-2.4/mod_security-2.7.1-win32.zip

It is what I have loaded in my httpd.conf instead of PHP.

The setup is fairly simple and instructions are straight forward.
Back to top
Express



Joined: 07 Jan 2013
Posts: 34

PostPosted: Thu 17 Jan '13 1:24    Post subject: Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 17 Jan '13 15:19    Post subject: Reply with quote

I suggest to use xdebug to check the bottlenecks.
Back to top
Express



Joined: 07 Jan 2013
Posts: 34

PostPosted: Sat 19 Jan '13 21:09    Post subject: Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Sun 20 Jan '13 23:08    Post subject: Reply with quote

Please post your config on pastebin or so. Than we can figure out why you get 403 errors.

Maybe you have the same config issues like in http://www.apachelounge.com/viewtopic.php?p=23660#23660 ?

Well xdebug is easy to use see the webpage http://xdebug.org/
Back to top


Reply to topic   Topic: Slow page loading, ways to optimize? View previous topic :: View next topic
Post new topic   Forum Index -> Apache