HERE'S YOUR SOLUTION, BUT FIRST A FEW COMMENTS:
It doesn't have anything to do with permissions. It's the code. I'm sorry to have to say this, but it's typical for a fresh install of OSClass to not work correctly. Every version I've tried, fails to allow you into the admin panel after installing. Also, the search function appears to be completely broken.
Solution for accessing admin panel:Replace the code at the top of your config file with the following:
<?php
session_save_path ( ABS_PATH . 'oc-content/uploads/' );
/**
* The base MySQL settings of Osclass
*/
define('MULTISITE', 0);
Now: Enter your admin user and pass. You'll probably get a CSFR token error now. Just enter your user and pass again, and you SHOULD get in....
If your version of 3.1.2 is like mine, your search will still be broken, resulting in "page not found" errors every time you perform a search, even when the search word exists...BETTER SOLUTION:Use version 3.0.2. It's the most functioning version I've found. But, you'll also have to modify your config.php file to access your admin panel in that version as well.
You'll need to ad the following to line #2 of that config file:
session_save_path ( ABS_PATH . 'oc-content/uploads/' );
You can see my version of 3.0.2 running here:
http://pmclassifieds.comAnd if you want to see the search function of 3.1.2 in action, you can access it here:
http://pmclassifieds.com/testRun the search on both and you'll see what I mean. I don't know what else is wrong with 3.1.2 because I'm already done testing it.
I hope the info helps.
Good luck.
Tom