Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

PHP and virtual network interfaces

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


lists at walterebert

Oct 12, 2009, 1:45 AM

Post #1 of 6 (640 views)
Permalink
PHP and virtual network interfaces

Hi,

On a server that uses virtual network interfaces I got the following
error message when using PHP:
Host 'localhost' has multiple addresses. You must choose one explicitly!
Couldn't create FastCGI listen socket on port localhost:47990

For the PHP information source, I tried using "127.0.0.1" instead of
"localhost" and this seems to solve the problem.

So I would like to suggest that the PHP Wizard uses 127.0.0.1 as a
default.

Regards,
Walter

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


wonslung at gmail

Oct 12, 2009, 4:01 AM

Post #2 of 6 (610 views)
Permalink
Re: PHP and virtual network interfaces [In reply to]

i think this is something to do with /etc/hosts
i might be wrong though, kind of new


On Mon, Oct 12, 2009 at 4:45 AM, Walter Ebert <lists [at] walterebert> wrote:

> Hi,
>
> On a server that uses virtual network interfaces I got the following
> error message when using PHP:
> Host 'localhost' has multiple addresses. You must choose one explicitly!
> Couldn't create FastCGI listen socket on port localhost:47990
>
> For the PHP information source, I tried using "127.0.0.1" instead of
> "localhost" and this seems to solve the problem.
>
> So I would like to suggest that the PHP Wizard uses 127.0.0.1 as a
> default.
>
> Regards,
> Walter
>
> _______________________________________________
> Cherokee mailing list
> Cherokee [at] lists
> http://lists.octality.com/listinfo/cherokee
>


taher at unixwars

Oct 12, 2009, 6:53 AM

Post #3 of 6 (612 views)
Permalink
Re: PHP and virtual network interfaces [In reply to]

Hi Walter,

Walter Ebert wrote:
> Host 'localhost' has multiple addresses. You must choose one explicitly!
> Couldn't create FastCGI listen socket on port localhost:47990
>
[...]

> So I would like to suggest that the PHP Wizard uses 127.0.0.1 as a
> default.
>
I'm pretty sure it does, at least in trunk. Maybe it didn't before, I
couldn't tell.

--
taher [at] unixwars
http://unixwars.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


lists at walterebert

Oct 12, 2009, 7:46 AM

Post #4 of 6 (608 views)
Permalink
Re: PHP and virtual network interfaces [In reply to]

On Mon, 2009-10-12 at 15:53 +0200, Taher Shihadeh wrote:
> Hi Walter,
>
> Walter Ebert wrote:
> > Host 'localhost' has multiple addresses. You must choose one explicitly!
> > Couldn't create FastCGI listen socket on port localhost:47990
> >
> [...]
>
> > So I would like to suggest that the PHP Wizard uses 127.0.0.1 as a
> > default.
> >
> I'm pretty sure it does, at least in trunk. Maybe it didn't before, I
> couldn't tell.
>

I used 0.99.24. But it is good to know that it already has been changed
in trunk.

Walter

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


sandino at sandino

Oct 12, 2009, 7:05 PM

Post #5 of 6 (599 views)
Permalink
Re: PHP and virtual network interfaces [In reply to]

Walter Ebert wrote:
> Hi,
>
> On a server that uses virtual network interfaces I got the following
> error message when using PHP:
> Host 'localhost' has multiple addresses. You must choose one explicitly!
> Couldn't create FastCGI listen socket on port localhost:47990
>
> For the PHP information source, I tried using "127.0.0.1" instead of
> "localhost" and this seems to solve the problem.
>
> So I would like to suggest that the PHP Wizard uses 127.0.0.1 as a
> default.
>
Using 127.0.0.1 may couse roblems with virtual hosting environments that
have a localhost address different than 127.0.0.1 and no 127.0.0.1 at all.
> Regards,
> Walter
>
> _______________________________________________
> Cherokee mailing list
> Cherokee [at] lists
> http://lists.octality.com/listinfo/cherokee
>


--
Sandino Araico Sánchez
http://sandino.net

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


aperez at skarcha

Oct 13, 2009, 6:30 PM

Post #6 of 6 (594 views)
Permalink
Re: PHP and virtual network interfaces [In reply to]

Hello,

On Tue, Oct 13, 2009 at 4:05 AM, Sandino Araico Sánchez
<sandino [at] sandino> wrote:

>> For the PHP information source, I tried using "127.0.0.1" instead of
>> "localhost" and this seems to solve the problem.
>>
>> So I would like to suggest that the PHP Wizard uses 127.0.0.1 as a
>> default.
>>
> Using 127.0.0.1 may couse roblems with virtual hosting environments that
> have a localhost address different than 127.0.0.1 and no 127.0.0.1 at all.

I have just commited[1] a better detection of "localhost" IP address.

Thanks a lot for your comments guys... ;)

[1] http://svn.cherokee-project.com/changeset/3701

--
Saludos:
Antonio Pérez
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.