Modify the APM Insight PHP agent's communication port

How to modify the APM Insight PHP agent's communication port?

The agent uses ports 20021 and 20022 by default. You can change these ports by modifying the appropriate directive in the zpa.ini file (Linux) or php.ini file (Windows), as well as in the apminsight.conf file (Linux and Windows).
Default configurations: 
In the zpa.ini (Linux) or php.ini (Windows),
In the apminsight.conf file,
The values for zpa.status port and agent.status.port should be the same. Similarly, the values of zpa.data_port and should be the same.