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),
zpa.status_port=20021
zpa.data_port=20022 
 
In the apminsight.conf file,
agent.status.port=20021 
agent.data.port=20022 
 
The values for zpa.status port and agent.status.port should be the same. Similarly, the values of zpa.data_port and agent.data.port should be the same.