Run the below script for which the domain is affected.
#/usr/local/cpanel/base/awstats.pl -config=domainname.com
Monday, April 1, 2013
website appear’s to be loading slow?
Speed it up using gzip compress and mod_deflate. Add the following code in the .htaccess file under website folder, save it . Site should be loading pages significantly faster now!
### Enable gzip compression for PHP files
php_value output_handler ob_gzhandler
### compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
### End of compression code
### Enable gzip compression for PHP files
php_value output_handler ob_gzhandler
### compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
### End of compression code
Increase upload size in your php.ini
Add the below to the relevant php.ini file (recommended, if you have access). Note that for some hosts this is a system-wide setting. However, for hosts running PHP as a CGI script with suexec (for example) you may be able to put these directives in a php.ini file in your Drupal root directory
.upload_max_filesize = 10M
post_max_size = 10M
Add the below to your .htaccess file in your root directory.
===================
php_value upload_max_filesize 10M
php_value post_max_size 10M
.upload_max_filesize = 10M
post_max_size = 10M
Add the below to your .htaccess file in your root directory.
===================
php_value upload_max_filesize 10M
php_value post_max_size 10M
Subscribe to:
Posts (Atom)