1
Cozzie
Site slow: how to speed up?
  • 2007/11/22 11:26

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Hi

My site is often quite slow since switching to xoops.

I've checked with my host and they say the fault is not on their side so I am wondreing what things can I do (or check) to ensure the site runs as quickly as possible?

Should I be setting the module-wide cache? My site is being updated all the time either through forum posts or comments on articles - so is setting the cache possible?

Thanks for any tips!

2
wizanda
Re: Site slow: how to speed up?
  • 2007/11/22 12:04

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Have you got Gzip on in XOOPS and what version of XOOPS is that (newest is meant to be fixed for gzip)….

3
Cozzie
Re: Site slow: how to speed up?
  • 2007/11/23 6:39

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Hi Wizanda

I'm still on 2.0.16

Gzip on - how to do that?

Thanks a lot

4
smart2
Re: Site slow: how to speed up?
  • 2007/11/23 8:08

  • smart2

  • Not too shy to talk

  • Posts: 129

  • Since: 2007/1/19


To enable Gzip, go to admin>system>preferences>and check yes for gzip compression.

Enable the cache wherever it's possible.
For forums, you can choose a 30s cache, but it could cause some problems to your users posting again because they don't see their post instantly.

If you can enable MySQL cache system it can increase a lot your site speed.

If nothing works, then I guess your hosting is a bit to limited for your needs and you'll have to think about upgrade to a bigger system.

++

edit if the site in question is the one you give in your signature, it seems apache is not configured to keep alive connections, so each requests (to get images, flash,...) makes a new connection then closes and again to get all the page content. The problem is here for you.

5
Cozzie
Re: Site slow: how to speed up?
  • 2007/12/7 6:46

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Hi smart2

Thanks a lot! Yeh, its the signature website.

Keeping alive connections - is that in the mainfile.php? Or do I need to ask my server people to make a change in the apache settings.

My mainfile.php did have "persistent connections" set to "No" - I changed it to "Yes" but it seemed that was causing pages to not download at all on occassions (especially when making forum posts) so I stwiched it back to "0".

BTW, how can you tell the site is not configured for keeping connections alive?

Thanks for the help!

6
smart2
Re: Site slow: how to speed up?
  • 2007/12/11 23:54

  • smart2

  • Not too shy to talk

  • Posts: 129

  • Since: 2007/1/19


Hi your apache is not configured to keep alive connections.
Here are the headers sent by your webserver:
DateTue11 Dec 2007 23:45:56 GMT
Server
Apache/1.3.33 (Unix)
Cache-Control: private, no-cache
Expires
Mon26 Jul 1997 05:00:00 GMT
Pragma
no-cache
X
-Powered-ByPHP/4.3.11
Connection
close
Transfer
-Encodingchunked
Content
-Typetext/htmlcharset=iso-8859-1

200 OK


You can see a line saying "Connection: close".
This means apache is not configured to keep alive connections.

Here is a link about apache keep-alive feature :http://httpd.apache.org/docs/1.3/keepalive.html.

This is not configured in your mainfile.php, but in httpd.conf file of apache.

++

7
Cozzie
Re: Site slow: how to speed up?
  • 2007/12/12 8:09

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Hey smart2

Thanks a lot!

I'm on a shared server and so i asked my webhost to make the change - they say they can't make this change. Is this unusual? Is there any reason why they can't make it or are they just being awkward?

Thanks

Cozzie

8
smart2
Re: Site slow: how to speed up?
  • 2007/12/12 13:01

  • smart2

  • Not too shy to talk

  • Posts: 129

  • Since: 2007/1/19


Hi, yes it's unusual for me, I've never had any webhost locking this basic functionnality of apache.
You should consider getting a more professionnal hosting service.

Login

Username:
Password:

Lost Password? Register now!

Who's Online

55 user(s) are online (33 user(s) are browsing Support Forums)


Members: 1


Guests: 54


oswaldo,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jan 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits