var_dump(glob(APPPATH."migrations/*"))what is the response? If false, it could be because of a flaky behaviour of glob() when open_basedir is set. When set, and no migrations exist, it seems to return false ( indicating an error while there is none ) instead of an empty array.
It looks like you're new here. If you want to get involved, click one of these buttons!