May 11, 2007 at 8:56 am
· Filed under PHP Applications, Web Technology
How to Guide:Â Setting up a Cron Job in Linux
1. Enter the following command in the console
crontab -e
2. Adding the cron job. Edit the cron file. You cron job shall look like this
1 2 3 4 5 /path/to/command
eg
10 3 * * * /root/backup.sh
This will run the cron job at 3.10 am
* 1: Minute (0-59)
* 2: Hours (0-23)
* 3: Day (0-31)
* 4: Month (0-12 [12 == December])
* 5: Day of the week(0-7 [7 or 0 == sunday])
* /path/to/command - Script or command name to schedule
3. If you want to execute a php script instead of a shell command, your cron job shall look like this
1 2 3 4 5 /path/to/php/interpreter -q /path/to/command
eg.
10 3 * * * /usr/bin/php -q /var/www/html/cron.php
Permalink
March 30, 2007 at 11:32 am
· Filed under Joomla, PHP Applications, Web Technology
- Download SEF Extension
http://www.artio.cz/en/joomla-extensions/artio-joomsef
http://www.artio.cz/en/downloads/joomla-extensions/artio-joomsef-1-4-0/download
- Install SEF extension
i) Login to Joomla Administration Panel (http://www.yourdomain.com/administrator/)
ii) Installers > Components > Upload the package file (downloaded zip file)
- Customize the links
i) Edit the file /joomla installation dir/components/com_sef/joomsef.php and
ii) Comment the following line of php code:
if (isset($sefConfig->excludeSource) && $sefConfig->excludeSource && $sefConfig->reappendSource & isset($Itemid)) {
$sefstring .= (strpos($sefstring, ‘?’) !== false ? ‘&’ : ‘?’).’Itemid=’.urlencode($Itemid);
//$URI->anchor .= (($URI->anchor) ? ‘-’ : ”).urlencode(’ii’.$Itemid
}
- To Edit the links manually from the Joomla panel, go to Components > ARTIO JoomSEF > View/Edit Custom Redirects
Permalink