jobberBase dev blog

jobberBase is the open-source job board software
that helps you set up a jobsite in minutes!

Go ahead and Download jobberBase »

jobberBase Installation Guide

  1. Download the latest version from jobberBase.com and decompress it.
  2. Make sure you have PHP 5+ (with mysqli extension enabled) and MySQL 4.1+ installed on your server. Also, Apache module mod_rewrite has to be enabled and overriding default settings with .htaccess need to be allowed.
  3. Can you see the .htaccess file in your downloaded files? Make sure it’s there.
  4. Create a new database and import __db/jobberbase.sql into it.
  5. Following directories need write permissions:
    • /uploads (uploaded resumes are temporary stored here)
    • /_templates/_cache (smarty cache)
  6. Open config.php and update the following constants so they suit your environment:
    • DB_HOST
    • DB_USER
    • DB_PASS
    • DB_NAME
    • JOBBER_URL
    • _APP_MAIN_DIR
    • NOTIFY_EMAIL
    • ADMIN_EMAIL
    • SITE_NAME
  7. If you can’t see the .htaccess file or actually don’t have it, rename htaccess.txt into .htaccess.
  8. If your host doesn’t offer the mysqli PHP extension (find out from phpinfo()), you can use a mysql wrapper instead.
    Open config.php and just replace require_once '_includes/class.Db.php' with require_once '_includes/class.Db.MySql.php' (thanks to Emil Sirbu for this).
  9. That’s it, open up a browser and type in the URL (e.g. http://localhost/jobberbase/)!

Does this work for you?
Do you have a special environment that needed extra tweaking? Would you like to share?

Category: Knowledge Base

Tagged:

129 Responses

  1. Razvan says:

    Hi, I have a small bug here: http://jobs.designcreme.com

    Fatal error: Class ‘mysql’ not found in /home/design/public_html/jobs/_includes/class.Db.php on line 16

    My host has php 5+ and mySQL 5+ ..

  2. Filip says:

    That’s actually ‘mysqli’ you don’t have installed. Check out your phpinfo() and see if you have the mysqli extension installed ;) .

  3. Razvan says:

    My host said they won’t install the extension on reseller/vps packages. Is there anyway to make this work without the mysqli extension?

  4. Filip says:

    I see. As a long-term advice, I recommend you change your hosting company. The mysqli extension stands for “mysql improved” extension… and any hosting company should comply.

    But yes, you can get away without it, by editing _includes/class.Db.php. Replace all mysqli_ functions with their mysql_ correspondents. This class is merely a wrapper on the basic mysql functions, with a few extra helpers.

  5. carco says:

    Unfortunately, still exists many companies which don’t offer mysqli extension.

    Filip, to make jobber to work with mysql required some supplementary modification not only replace mysqli with mysql because you use into code $result->fetchAssoc, so, query must to be rewritten to return an object which have this method.

    I work on this, I hope that in 1-2 hours I’ll make a wrapper for mysql.

  6. Filip says:

    carco, you’re right. Thanks!

  7. carco says:

    Ok, i put here ( emil.topweb.ro/4jobber/class.Db.MySql.ph_ ) first version.
    Save as _includes/4jobber/class.Db.MySql.php and replace change config.php

    //require_once ‘_includes/class.Db.php’;
    require_once ‘_includes/class.Db.MySql.php’;

    Source is emil.topweb.ro/4jobber/class.Db.MySql.phps

  8. Filip says:

    Beautiful!
    I’ve already updated the distribution, so new users will get class.Db.MySql.php right away.

  9. carco says:

    Please change line 58 with
    throw new QueryException(mysql_error($this->link), mysql_errno($this->link));

    (instead of throw new QueryException(mysql_error($this), mysql_errno($this)); )

    or redownload (sorry for mistake).

  10. [...] impresii, instalarea se face foarte uşor (aveţi aici un articol ce explică cum se instalează), am avut câteva probleme dar s-au rezolvat imediat [...]

  11. Anyone else get this error when retrieving the RSS feed?

    Fatal error: Call to a member function fetch_assoc() on a non-object in /home/dev/public_html/jb/_includes/class.Job.php on line 221

  12. Pierre says:

    Sorry but i have error “function query()”

    message:

    Fatal error: Call to a member function query() on a non-object in /home/pedja/www/job/_includes/class.Job.php on line 706

    Can you help me?

  13. Filip says:

    Pierre,
    please report this on the forum, but don’t forget to copy/paste he code on that line (maybe 5-10 lines before and after, as well).

  14. Sid says:

    When visiting http://www.sidtarason.com/amateursportsnetwork/ I get the following error.

    Fatal error: Call to a member function fetch_assoc() on a non-object in /home/content/s/i/d/sidtarason/html/amateursportsnetwork/_includes/class.Job.php on line 707

    Here is the code. I have ***’d line 707

    public function CountJobs($categ = false)
    {
    global $db;
    if ($categ)
    {
    if (!is_numeric($categ))
    {
    $categ_id = $this->GetCategId($categ);
    }
    else
    {
    $categ_id = $categ;
    }
    $condition = ‘AND category_id = ‘ . $categ_id;
    }
    else
    {
    $condition = ”;
    }
    $sql = ‘SELECT COUNT(id) AS total FROM jobs WHERE is_temp = 0 AND is_active = 1 ‘ . $condition;
    $result = $db->query($sql);
    ******** $row = $result->fetch_assoc(); *****
    return $row['total'];
    }

    I appreciate all the help!

  15. Filip says:

    Sid,
    it seems your database connection is not correctly configured. Please check the settings in config.php.

  16. Simon says:

    Im getting the following error:

    Parse error, unexpected { on line 102 of config.php

    I dont get it?? lol

  17. Filip says:

    You didn’t read the requirements carefully: you need PHP 5+

  18. Simon says:

    I have PHP 5+ AND MYSQL 5+ – Im hosted with Simply.com

    Still no working!

  19. Filip says:

    Please create a new script, with the following code, the run it:
    < ?php phpinfo(); ?>

    Maybe PHP 5 is not active.

  20. Simon says:

    Ahhh, i done this and it shows PHP Version 4.4.6

    But my host says i have PHP version 5????

  21. Simon says:

    My hosts are telling me i must rename all PHP files to .PHP5 —- IS THIS GOING TO AFFECT THE RUNNING OF THE SITE?

    Also i managed to get it working on another server, but when i click on anything it just goes to page not found, because its trying to go to http://www.mydomain.com/post/ but there isnt even a “post” directory, or when you click on jobs it tries going to http://www.mydomain.com/jobs/ but there is no jobs directory, i hope this makes sense.

  22. Filip says:

    Simon,
    Renaming .php to .php5 is not enough. You’ll also need to dive into the code and change the extension there, for the included scripts.

    Regarding the other server, it’s already been discussed either here on the blog or on the community forum. It’s a .htaccess issue.

  23. Simon says:

    Hi, ive changed everything including source code to PHP5 and it works ok, the only problem im having now is the .htaccess issue. When i click on anything i just get 404 not found, ive tried both versions of the .htaccess and it still doesnt work…. any clues? my site is at http://www.contineo.co.uk

    thank you!

  24. Simon says:

    had enough of trying, tried all combinations of .htaccess, and either get 403 error or 404 error, installed hundreds of sites.scripts and developments and never had so much messing around. good work on the script but there is clearly a flaw in the development somewhere along the line.

  25. Filip says:

    Simon,
    Have you downloaded the script in the past 3 days or earlier? There have been some updates and config.php has been improved a lot. Try it if you haven’t already.
    Else… the script is working fine for a lot of people, in a lot of environments.
    It’s most likely your problem lies in config.php, in the way you set up the directories…

  26. Simon says:

    ahhhhh, i may have found the problem. in config.php i see main dir as jobberbase/app but ive been running just under my public_html folder……. me try this now, i really want this board i think its brilliant, and will donate once i get it up and runnin.

  27. Simon says:

    can i just ask, do i have to create the /post/ and /contact/ directories myself, etc etc, for everything, cos its trying to access http://www.mydomain.com/post/ but the directories doesnt even exist in the downloaded release.

  28. Simon says:

    SO ANNOYING!!! Works perfectly on my free web hosting, and on the hosting i pay £10 a month for it just wont work!! grrrr

  29. Gim says:

    I am having the same problem as Simon. I installed the jobber on a subdomain. The main page shows properly but the links bring error not found message.

    —–

    As per those people that don’t have php 5.x here is the fix:

    Just put the following line in your .htaccess file (I belevie the .htaccess file in the main directory of the site):

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

  30. Sunny says:

    How Do You Send Mail Using SMTP Authentication in Jobber Base..??

  31. Filip says:

    You mess with /_includes/class.Postman.php (that’s where all the e-mails are being sent from).
    phpmailer is also included, so it should be fairly easy to go with SMTP.

  32. omer rosen says:

    Hi Filip
    I am trying to install jobber locally and having a problem with it.
    When i am trying to access the main page I get the “index of/jobber”
    Does it has something to do with configuration of
    JOBBER_URL
    _APP_MAIN_DIR
    I didn’t change those setting in the configure file.

  33. Filip says:

    What if you try /jobber/app/ ?

  34. omer rosen says:

    I sent you an email…

  35. henri says:

    Hi very nice script but I have a problem with sub directories. I put the files in http://www.mydomaine.com/job but the links seem to be broken. Any ideas?

    I run PHP 5.1.2 on my site : http://test.2803.com/job/

    Thanks a lot
    henri

  36. Filip says:

    Henri,

    1. Do you have apache mod_rewrite module active?

    2. If you do, there may be a conflict between your main site’s .htaccess and jobberBase’s .htaccess.

  37. henri says:

    Hi Filip, Yes the mod_rewrite module is active. On the main dir I have a wordpress blog with a .htaccess file. I remove the .htaccess of jobberbase of th job dir and put its content inside the main htaccess file but still not working…

  38. Filip says:

    just to test it, try removing the main .htaccess and leave only the .htaccess inside jobberBase. this should work, so the fix would be to somehow edit wordpress’ .htaccess…

  39. [...] that, you can follow installation / setup guide on JobberBase Official site to setup own job based website for your own or commercial recruitment [...]

  40. amin says:

    is it compatible with windows

  41. Filip says:

    It runs on Apache server, with PHP 5 and MySQL 4.1+. It runs on any operating system.

  42. henri says:

    filip i remove the htaccess of the wordpress dir and tweak a bit the htaccess of jobberbase but I still have some problem with url when I clic on a job, the other links work (widget, post a job…) quite strage

    here is my htaccess :

    RewriteEngine On
    Options +FollowSymlinks
    RewriteBase /job/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]
    ErrorDocument 404 /page-unavailable/

  43. henri says:

    finnaly it works on another subfolder ;) http://jobs.2803.com/

  44. Ahsanul Karim says:

    While i try run the site then i fetch the following message
    “The server encountered an internal error or misconfiguration and was unable to complete your request.”
    i am using the Apache Version Apache/2.2.4 (Win32) PHP/5.2.2
    and
    MysqlI Support enabled.

  45. Filip says:

    Is mod_rewrite enabled, also do you have the .htaccess in place?
    I think there was someone else with this problem, try browsing the forums.

  46. sachin says:

    i am getting the same error
    Parse error, unexpected { on line 102 of config.php
    i try to put the code
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    but not work
    any ideas

  47. edwin says:

    Ik get this error:

    Fatal error: Call to undefined function date_default_timezone_set() in /var/www/vhosts/jobjournaal.nl/httpdocs/config.php on line 15

  48. setiaji says:

    Hahaha…. i got it. I also try to install in my foder ‘job’.(like henri did)
    So the address for this jobber is http://www.noelabs.com/job.
    I think somehow this leads to confusing the config.php or constants inside the program.
    So, i change my folder from ‘job’ to ‘jobber’ …… now its running perfectly.
    Maybe you Filip, always assume that everyone will install this software in the root or sub-domain. That’s why henri suddenly be able to run this jobber.
    Any comment?

  49. Filip says:

    The problem with /job is that is already a special case defined in index.php (mod_rewrite)…

  50. setiaji says:

    I still have problem. Can u help me Filip? I cannot access admin page. Still url isue i think. The main index.php of my jobber is in my folder of my domain.
    The page always unvailable.
    Can u please check it: http://www.noelabs.com/jobber/admin.
    what should i do with admin’s config.php? I already tried some combinations.
    I also try to search in forum and there is somebody who mentioned there is an issue with jQuery . But i don;t have knowledge for this.
    And last please give me clue about displaying the stat. I also kinda lost somewhere about this. :(

    Thanx

Leave a Reply





Always happy to hear from you!

Follow us on twitter @jobberbase
or email us at hello [at] jobberbase.com