Port 80 problems

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Port 80 problems

Postby Rodbat » 24. June 2008 15:30

:?: Hoping for some help here.

Problem: I'm running XAMPP on my XP platform. I have .net software, files, etc installed and I want to keep them for future use. Therefore I have configured Apache to use a port other than 80, which is used by IIS. That works when I write programs in PHP for viewing on my own screen. I am having trouble now installing software for use developing a website which I wish to first develop on localhost.

I suspect that port 80 is expected. Although I include the new port in the URL address 127.0.0.1:'newport', I get the following message:


Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: No

such host is known. in C:\xampp\htdocs\smartway\objects\class.http.php on line 1431

Warning: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1\:80 (Unknown

error) in C:\xampp\htdocs\smartway\objects\class.http.php on line 1431

Warning: Cannot modify header information - headers already sent by (output started at

C:\xampp\htdocs\smartway\objects\class.http.php:1431) in C:\xampp\htdocs\system_check.php
on line 78

Now ~\smartway\objects\class.http.php is a wrapper HTTP class provided by the software I'm trying to install.

Line 1431 thereof reads:
$content = curl_exec($ch);

Bottom line, I suspect the problem is that the software expects port 80.

Earlier in this wrapper the port is recovered:


// Handle SSL connection request

if ($urlParsed['scheme'] == 'https')

{

$this->host = 'ssl://' . $urlParsed['host'];

$this->port = ($this->port != 0) ? $this->port : 443;

}

else

{

$this->host = $urlParsed['host'];

$this->port = ($this->port != 0) ? $this->port : 80;

}

How do I solve this problem?
Rodbat
Rodbat
 
Posts: 3
Joined: 23. June 2008 06:40

Postby Wiedmann » 24. June 2008 15:49

Therefore I have configured Apache to use a port other than 80, which is used by IIS. That works when I write programs in PHP

So we can say:
XAMPP/Apache is working correct (with the configured port).

Now ~\smartway\objects\class.http.php is a wrapper HTTP class provided by the software I'm trying to install.

I think, this is more a question for the author/support of this software (how to use this software with a port != 80).

We can guess, that this line can be a problem:
Code: Select all
$this->port = ($this->port != 0) ? $this->port : 80;

But without knowing the complete code, nobody knows, if it's enought to comment this line...

unable to connect to 127.0.0.1\:80

The backslash seems also to be wrong. Maybe you are using a wrong way, to provide a different port? (ask the author/manual of this script)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Rodbat » 26. June 2008 21:12

As a follow up to my earlier post, here is a simpler question -- I think:

I thought I did all I needed to change the port no. from 80 to 7000 (making changes in the C:\xampp\conf\httpd.conf file in two places, including the AuthRemotePort).

However, my XAMPP control panel still shows Apache starting in Port 80. BTW, I have shut down IIS (I think). When I go to Administrative tools from the control panel in XP and go to IIS, the default web site is stopped -- as per my wish.

Is there another file I can change so that Apache doesn't start at Port 80 and confuse the web development software I am trying to run? Or is there another way to get around the conflict problem with IIS and just use Port 80, changing back from 7000 to 80 everything I've already reconfigured?
Rodbat
Rodbat
 
Posts: 3
Joined: 23. June 2008 06:40

Port 80 problems

Postby Rodbat » 27. June 2008 13:36

Having received no reply to my previous post, here's a new one:

IIS uses Port 80. Since we are using Apache in a Windows operating system, is it sufficient to shut down IIS and use 80 when using Apache? Have I been making unnecessary trouble for myself?

Anybody out there?
Rodbat
Rodbat
 
Posts: 3
Joined: 23. June 2008 06:40


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 43 guests