watch online
Rate This Article: (No Ratings Yet)
Loading ... Loading ...

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

Built by Doug Cone on Wednesday, June 25th, 2008

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

Report Article
 Report Article

Leave a Reply

Powered by Sweet Captcha
Verify your real existence,
Drag the juice to the glass
  • captcha
  • captcha
  • captcha
  • captcha