Book Image

Drupal 6 Performance Tips

By : T J Holowaychuk, Trevor James
Book Image

Drupal 6 Performance Tips

By: T J Holowaychuk, Trevor James

Overview of this book

<p>Drupal is one of the most respected and widely used open source content management frameworks.&nbsp; Small, medium, and large-scale websites are built using Drupal and the framework supports ecommerce, CRM, multisite and web service integrations.&nbsp; <br /><br />Once you get your Drupal site installed and up and running, you will be concerned with site performance and how fast you can make your Drupal site run.&nbsp; This book will focus on implementing performance modules and solutions to help speed up your Drupal website.<br /><br />We will look at introductory topics such as upgrading your Drupal site, maintaining your site, and enabling core Drupal page compression and caching. <br />&nbsp;<br />Then we will turn to an advanced look at some contributed modules that help speed up performance, including Development, Boost, Authcache, Advanced Cache, and the Memcache API and Integration module.<br /><br />Finally, we&rsquo;ll look at how best to implement a Drupal multisite environment and run it with high-speed performance in mind.<br /><br />This book is designed for Drupal developers and webmasters who want to increase their Drupal site&rsquo;s speed and performance.&nbsp; You will take your Drupal site to the next level by not only displaying relevant and newsworthy content, but also running a powerful and high-speed website.</p>
Table of Contents (14 chapters)
Drupal 6 Performance Tips
Credits
About the Authors
About the Reviewers
Preface

Tweaking your HTACCESS file


Your site directory contains an .htaccess file that sits at the root level of your Drupal site. This file comes packaged with the Drupal install and gets installed with Drupal by default. You can view and edit this file using your cPanel or SFTP, if you first change its permissions to write permissions as it's a ready-only file.

Your .htaccess file allows you to tweak directory permissions, specify how Drupal handles error messages, and present errors (404 errors) to the end user. You can also override your PHP settings in this file in a similar way to how you override your PHP settings in your settings.php file and your php.ini file. This presents another option. Usually host servers provide multiple methods of tweaking your PHP settings in case you do not have permissions or access as a developer to the Drupal configuration file, the php.ini file, or the .htaccess file. In your .htaccess file, you'll look for the version of PHP you're using (in this case PHP...