Home > Programming, Web > How to Install Sweetcron

How to Install Sweetcron

Yesterday, after my blog database was totally gone, I though I could use sweetcron as content manager.  So I tried to install it. I first tried it on localhost but there were some problems I encountered.  Finally I found solutions for the problems.  The causes were small so that only little changes are enough to handle them.

  1. First, you need to download Sweetcron. You can find the latest release from: http://code.google.com/p/sweetcron/downloads/list
  2. Then unpack the downloaded file and upload its content to your server. I created a subfolder “sweetcron” and put the files in it.
  3. Now get into the folder:  systemapplicationconfig.  We will configure two files here.
  4. Change the name of “config-sample.php” to “config.php”
  5. Change the name of “database-sample.php” to “database.php”
  6. Open config.php and
    change the line,
    $config['base_url']    = “http://www.your-site.com/”;
    put your sweetcron url in there. For example mine is: 
    $config['base_url']    = ht
    tp://www.orhanyediyildiz.com/sweetcron/

    Another change in config.php:
    change $config['uri_protocol']    = “REQUEST_URI”; to
    $config['uri_protocol']    = “AUTO”;

  7. Now open database.php and change the values of database variables ($db['default'])
  8. If your sweetcron files are in a subfolder, you need to do one more change.
    open .htaccess file.
    change the line: RewriteBase /
    with RewriteBase /folder_name/
    For example mine was: RewriteBase /sweetcron/
  9. Enough of these configurations :) Time to install Sweetcron. Point your browser to the sweetcron url. My url is: www.orhanyediyildiz.com/sweetcron. You should see a message: “Whoo Hoo! Almost there – now just run the install script.”
  10. So click and install the script. Enter title, username and your email. That’s it.  Sweetcron is now installed. Don’t forget the password that it generated for you. I suggest you to change it after you log in immediately.
  11. Let’s add some feeds to Sweetcron. First let’s try twitter. Open “feeds” tab in admin panel. And click “Add New Feed” button which is on the right sidebar. Enter your twitter feed url which is http://twitter.com/username. Then click “Add This Feed”. Then click Items tab and click “Fetch New Items Now”. Now you must have twitter updates on your homepage.

That’s it for now. In the next article I will write about adding custom feeds and configuring them.

If you have any questions or problems feel free to contact me or you can leave a comment here.

Categories: Programming, Web Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.