Sort by:
View:

Category: Joomla Tips

Setting up cron job for Joom Social


On most Linux system, you can simply run the command below as often as you are comfortable. I recommend that you run it every 30 minutes of less. On a busy site, you might want to run it every 10 minutes. The more frequent you run it, the less load it will be on the server.

lynx source “http://domain.com/index.php?option=com_community&task=cron”>/dev/null

lynx is a text based browser that is installed in most hosting environments. If you do not have lynx installed, you can use other alternatives such as wget as below,

wget -O /dev/null "http://domain.com/index.php?option=com_community&task=cron" > /dev/null

Don’t worry, this operation actually run very fast and has very little impact on the server, equivalent to a normal single page load.

Or you can setup to run php command as a cron as below.
php -q /var/www/vhosts/domain.com/httpdocs/components/com_community/cronjob.php

To set this up in crontab, type crontab -e and add you new  entries add the end of the file. Save and you crontab is up to date.

Redirect users to your preferred URL


If your site can be accessed both with and without the ‘www.’ prefix, you can use one of the following settings to redirect users to your preferred URL, either WITH or WITHOUT the ‘www.’ prefix. Choose ONLY one option:

– To redirect all users to access the site WITH the ‘www.’ prefix, (http://joomlatags.org/… will be redirected to http://www.findmore.ca/…), please add the following code to your .htaccess file:

 ·                       RewriteCond %{HTTP_HOST} ^fidnmore.ca$ [NC]
 ·                       RewriteRule ^(.*)$ http://www.findmore.ca/$1 [L,R=301]

To redirect all users to access the site WITHOUT the ‘www.’ prefix, (http://www.findmore.ca/… will be redirected to http://findmore.ca/…) please add the following code to your .htaccess file:

 ·                       RewriteCond %{HTTP_HOST} ^www.findmore.ca$ [NC]
 ·                       RewriteRule ^(.*)$ http://findmore.ca/$1 [L,R=301]

please remember to change findmore.ca to your domain name.

List of Joomla performance tools


For a Joomla user, Joomla import mootools.js automatically. Mootools.js is more than 70KB, How much bandwidth it will takes?

Here are a number of tools that you can use to lower the bandwidth need of your Joomla website.

  1. Google Ajax Library  –  Plugin Google Ajax Library can host Mootools(70K),Prototype,JQuery,YUI libraries, which can save bandwidth and speed up your site’s response.  Tips:This plugin is suitable for all joomla site.
  2. CssJsCompress  –  Plugin CssJsCompress can automatically optimize external resources like CSS and JavaScript, which can reduce both the size and number of requests made to your website. These optimizations may reduce server load, bandwidth requirements, and page loading times.  Tips:This plugin is suitable for most joomla site.
  3. Phil Taylor’s SPEED UP your Joomla Admin Console  –  Plugin Phil Taylor’s SPEED UP your Joomla Admin Console can use Google Gears to speed up your Joomla administration.  Tips:This plugin can only speed up your administration, can’t speed up your front side.
  4. Content static  –  Plugin Content Static can convert your joomla site into html static files, which saves the need for costly SQL resources to load pages from a database.  Tips:This plugin can boost your site mostly, however it doesn’t work with vote,reviews etc.

If you use all of the plugins, please notice the order of them. They should have the following orders: Google Ajax Library < CssJsCompress < Phil Taylor’s SPEED UP your Joomla Admin Console < Content Static(From low to high).

Menu