Page 1 of 2

port 80

PostPosted: 14. November 2007 05:53
by egg04
Hi,

Q1: Port 80 is used by another application. How can I use other port for apache?

Q2: Why do I need to install xampp as a service? What svc and scm stands for?

thank you

PostPosted: 14. November 2007 06:03
by Wiedmann
How can I use other port for apache?

http://httpd.apache.org/docs/2.2/mod/mp ... tml#listen

Why do I need to install xampp as a service?

There is no need to do this.

What svc and scm stands for?

svc = service
scm = service control manager

PostPosted: 14. November 2007 08:16
by egg04
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listen

Where can I find listen directive?

PostPosted: 14. November 2007 08:18
by Wiedmann
Where can I find listen directive?

In the configuration file "httpd.conf".

PostPosted: 14. November 2007 09:05
by egg04
In the configuration file "httpd.conf".


After modifying C:\xampp\apache\conf\httpd.conf, apache is still listening to port 80.

PostPosted: 14. November 2007 09:18
by Wiedmann
You must restart Apache after the modification.

PostPosted: 14. November 2007 10:07
by egg04
Do you mean restart the machine? How can I restart apache?

I have not even start it.

PostPosted: 14. November 2007 10:45
by egg04
When I try to start apache in xampp control, it fails becuse port 80 is busy

PostPosted: 14. November 2007 11:34
by Scory
So you still did not change the corresponding value of httpd.conf.

How looks your configuration for Apache? Which application is already listening on port 80?

Greets
Scory

PostPosted: 15. November 2007 03:04
by egg04
Where can I config Apache? A backup server is running on port 80.

screenshot from httpd.conf and control panel

PostPosted: 15. November 2007 03:08
by Wiedmann
Where can I config Apache?

Wiedmann wrote:In the configuration file "httpd.conf".


it fails becuse port 80 is busy

Use "apache_start.bat" to see the real error message.

(BTW: Your image is a little bit to big...)

PostPosted: 15. November 2007 03:27
by Izzy
Try changing the ServerName also, as it is pointing to localhost at port 80.
Look for this below where you changed the listening port to 8080:
Code: Select all
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:80

Change to:
Code: Select all
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:8080

Start Apache and call the XAMPP welcome page by typing this in your browser:
http://localhost:8080
The port number :8080 must be added after every address that is served by XAMPP Apache in future.

BTW it is often best practice to change the ports of the other apps using the ports that XAMPP needs exclusively - seems to be much less trouble than having to do what you are required to do in XAMPP.
xampp\xampp-portcheck.exe will give you a list of the ports XAMPP needs and what app if any is using those ports.

But for what it's worth once you have mastered how to do these types of httpd.conf edits then the rest often falls in to place.

TIP - The resolution of your image above is overly large 1280x1024 - perhaps 800x600 would have taken less time and resources for people like me who have to suffer lowly dial-up.


===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================

PostPosted: 15. November 2007 04:34
by egg04
Use "apache_start.bat" to see the real error message.


here is the message: Image

Try changing the ServerName also, as it is pointing to localhost at port 80.
Look for this below where you changed the listening port to 8080:


still no success

Thank you

PostPosted: 15. November 2007 04:48
by Izzy
Can you paste the results of running xampp\xampp-portcheck.exe please?

At the command prompt issue this command after closing the Control Panel:
sc delete apache2.2
Click OK
Then try start Apache again.


===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================

PostPosted: 15. November 2007 05:00
by egg04
Can you paste the results of running xampp\xampp-portcheck.exe please?

Image

At the command prompt issue this command after closing the Control Panel:
sc delete apache2.2
Click OK
Then try start Apache again.


Sorry. I am not sure where to issue this command. Could you please give me more details? Thank you