changing ports 80 and 443

Dear, I need to change ports 80 and 443 in the configuration of thinger.io on my own server, because they are being used by apache2. When changing them in the configuration file it starts to return error when entering. Any ideas?