PHP:- To change the port number of Apache server To change the port number of Apache server in PHP:- Open httpd.conf file Change the values of listen, server local host to ‘8080’ [here the default value is 80]