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.
- open your php.ini with vi (command may vary depending on where your php.ini file is located)
- Find and uncomment (default is disabled), or add the following line:
vi /etc/php.inizlib.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
Update: I plan to do some testing on performance to see if this really does help. Just simple visual and file download tests show that it does to me but more data is needed, coming soon!
image credit
New here? You may want to subscribe to our RSS feed. You can also find us on Twitter: Doug, Robert
