Using php.ini to enhance speed for Wordpress/Drupal etc

by Doug Cone, published Wednesday, June 25th, 2008 at 9:50 am

Want a quick hack to boost speed of your pages? There are two ways to accomplish this.


  • Login to your server as root or normal with sudo privileges.High Speed!

    • open your php.ini with vi (command may vary depending on where your php.ini file is located)

    • vi /etc/php.ini

    • Find and uncomment (default is disabled), or add the following line:

    • zlib.output_compression = On



  • This method enhances every site/page using php on the server by sending compressed files to clients that support it.

  • The second method will affect only a single site and requires only access to your .htacess file.

    • open your .htacces file

    • add the following line

    • php_flag zlib.output_compression On




image credit

source



0 rating, 0 votes0 rating, 0 votes (* 0 rating, 0 votes)
Loading ... Loading ...
Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • MySpace
  • PDF
  • Twitter

Leave a Reply