How to install Sweetcron on XAMPP
Posted
by Sushaantu
on Just Skins
See other posts from Just Skins
or by Sushaantu
Published on Sun, 12 Jul 2009 11:57:38 +0000
Indexed on
2010/06/03
2:44 UTC
Read the original article
Hit count: 462
This tutorial will take you to the installation steps required to install Sweetcron in the XAMPP. I am taking the liberty to assume that you have already installed XAMPP. I
First of all download sweetcron and copy the extracted “sweetcron” folder inside the htdocs folder in the XAMPP directory.
You have to get few things in place before installing sweetcron:
1. Create a sweetcron database using Mysql. You can just put a name “sweetcron” and leave all the other settings such as Mysql connection collation as it is.
Now that you have the database ready you can configure few settings before making sweetcron to work on XAMPP.
2. Open the config-sample PHP file with your text editor (something like Notepad++ or Komodo Edit is recommended) which is located in Sweetcron/system/application/config. You have to make few changes in it.
a. In the first settings you have to edit the value of $config ['base_url']. The default value is “http://www.your-site.com”; and you have to change that into “http://localhost/sweetcron/”;
b. You also have to change the deafult settings of $config ['uri_protocol']. The value that you will see is “REQUEST_URI”; but you need to change that into “AUTO”;
c. Now that we have made all the changes you can rename the file from config_sample to just config.
3. Open the database-sample.php in the text editor. You need to make the edits regarding the databse in here.
a. The values of the databse at the moment are like this:
$db['default']['hostname'] = “localhost”;
$db['default']['username'] = “”;
$db['default']['password'] = “”;
$db['default']['database'] = “”;
$db['default']['dbdriver'] = “mysql”;
$db['default']['dbprefix'] = “”;
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = “”;
$db['default']['char_set'] = “utf8″;
$db['default']['dbcollat'] = “utf8_general_ci”;
You have to change that into
$db['default']['hostname'] = “localhost”;
$db['default']['username'] = “root”;
$db['default']['password'] = “”;
$db['default']['database'] = “sweetcron”;
$db['default']['dbdriver'] = “mysql”;
$db['default']['dbprefix'] = “”;
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = “”;
$db['default']['char_set'] = “utf8″;
$db['default']['dbcollat'] = “utf8_general_ci”;
We have written the username as root along with the name of database (sweetcron in my case). Since I was not using any password in xampp for the sweetcron database so I have left the password option empty. You can make suitable changes according to your system. Write down your password in the third line if you are using one in xampp.
b. Now that we have made all the edits we can change the file name from database-sample to just database.
4. That leaves us with only one setting and that is editing values in the .htaccess file with our text editor. The default values you will have in the .htaccess file are:
Options +FollowSymLinks
RewriteEngine OnRewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
and you just have to add “sweetcron” after Rewritebase in the third line.
Options +FollowSymLinks
RewriteEngine OnRewriteBase /sweetcron
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
5. Now you are all set and done.
You can access sweetcron in the localhost by going to
http://localhost/sweetcron/
you will see some text on the top which would prompt you to click on one script.
Click that script and behold, you have your sweetcrom installation on xampp ready.
Further it will ask you to add deatils such as Lifestream name, username and email address. Fill those deatils and you will reach the admin panel.
© Just Skins or respective owner