by Jeroen Horters.
yes, everything was set right. I ended up reinstalling moodle and that fixed the problem, so problably there was some problem with the initial installation. Thanks to everyone who replied and tried to help