Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hello Google begans to rank sites with the speed each site loads.

So how can i increase the speed of a php mysql site ? I am already Gzip compression

share|improve this question

closed as not a real question by Mark Henderson Jul 12 '12 at 22:10

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Use memcache(d) to cache the result of common queries, then look up results against memcache first, it's far quicker than making repeated lookups to a database.

You'll need to rewrite some of your logic to have a "if value is not in memcache, then do the query, and store the data in the cache system" kind of algorithm.

Also consider using a reverse proxy to cache generated pages, fragments and images. Load images and media from a seperate cookie-less domain, from a server running something that can serve faster than apache. Nginx and lighttpd are good options for media servers.

share|improve this answer

There are many options... caching PHP pages is a good way to give most people a good experience.

Is this a site written from scratch, or something like Wordpress, Joomla, etc? If you're running a CMS then there's very specific advice to give based on platform.

share|improve this answer

Use varnish and apc.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.