APM 2.8 does not recognise gps

By the way which serial port is gps in apm 2.8?

Look here:
APM Archived
Or just Google “APM GPS port” or something like that and find some old links…