Tuesday, March 17, 2009

Changing port number from 80 to 85 in PHP

When installing a PHP software we may be stuck at certain point like we may be working on some of the other software's, which will allocate the port numbers, But when working with the PHP we need to setup the port number. by default php takes port number 80 as default port number.

There comes a situation where we need to change the port number from 80 to another port number like changing the port number from 80 to port number 85. Then what should be done?

Here are the steps to change the port number:

1. Open the files where you have installed your Apache(if you are using) or XAMPP folder if you have installed the XAMPP software.
2.If you are using the XAMPP software then open the folder "apache".
3.Again in that folder open the folder with name "conf".
4.In this folder open the file "httpd.CONF" file.
5.In the file check the following code
#Listen 12.34.56.78:80
Listen 80
6.change the 80 to 85 and save the file.
7.Restart the server and open the web browser with the given port number.

example: http://localhost:85/foldername.

0 comments:

Post a Comment