Hello again,
I just found an answer to my question
I just had to put absolute paths instead of relative ones in the code from api.inc.php
if(!file_exists('../main.inc.php')) exit(EX_CONFIG);
require_once('../main.inc.php');
I learned a lot in the last couple of days.
So far the experience with osticket was a pleasant one. Keep up the good work!