Hi friends i want to change my localhost port,Generally web server runs at the port of 80 i want to change my apache server with another port.. so i want to check which port are free in my system. How to check which ports are free..? Thanks in advance..
checking what ports are listening, in the cli run netstat -n changing ports you need to add virtualHost tag and Listeners check this http://httpd.apache.org/docs/2.2/vhosts/examples.html
you can different port with IP address in virtual host tag , so you can check different request from different port
Simple you can go to Apache folder and inside that you will have conf folder and then you edit your httpd.conf, you will have port "Listen 80" so change with your desire one like "Listen 8080" and "ServerName localhost:80" to "ServerName localhost:8080" you will now have to access your server with "http://localhost:8080" or what ever port you have set.
You said you want to know what ports are free, I can give you a script I made in PHP that is a port scanner. My previous suggestion still stands, you can choose a high number and 99% of the time it will be free. Where's the problem?