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

Mailing List Archive: Cherokee: commits

[3658] cherokee/trunk/admin/Wizard_PHP.py: Forces the use of IPv4 address of local loopback interface (127.0.0.1) to avoid problems with systems that have more than one address defined for "localhost".

 

 

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


cherokee at cherokee-project

Sep 12, 2009, 7:50 AM

Post #1 of 1 (257 views)
Permalink
[3658] cherokee/trunk/admin/Wizard_PHP.py: Forces the use of IPv4 address of local loopback interface (127.0.0.1) to avoid problems with systems that have more than one address defined for "localhost".

Revision: 3658
http://svn.cherokee-project.com/changeset/3658
Author: aperez
Date: 2009-09-12 16:50:12 +0200 (Sat, 12 Sep 2009)

Log Message:
-----------
Forces the use of IPv4 address of local loopback interface (127.0.0.1) to avoid problems with systems that have more than one address defined for "localhost".
Reference: http://bugs.cherokee-project.com/554

Modified Paths:
--------------
cherokee/trunk/admin/Wizard_PHP.py

Modified: cherokee/trunk/admin/Wizard_PHP.py
===================================================================
--- cherokee/trunk/admin/Wizard_PHP.py 2009-09-12 10:27:39 UTC (rev 3657)
+++ cherokee/trunk/admin/Wizard_PHP.py 2009-09-12 14:50:12 UTC (rev 3658)
@@ -65,8 +65,8 @@
_, self.source = cfg_source_get_next (self._cfg)
self._cfg['%s!nick' % (self.source)] = 'PHP Interpreter'
self._cfg['%s!type' % (self.source)] = 'interpreter'
- self._cfg['%s!interpreter' % (self.source)] = '%s -b localhost:%d' % (php_path, self.TCP_PORT)
- self._cfg['%s!host' % (self.source)] = 'localhost:%d' % (self.TCP_PORT)
+ self._cfg['%s!interpreter' % (self.source)] = '%s -b 127.0.0.1:%d' % (php_path, self.TCP_PORT)
+ self._cfg['%s!host' % (self.source)] = '127.0.0.1:%d' % (self.TCP_PORT)

self._cfg['%s!env!PHP_FCGI_MAX_REQUESTS' % (self.source)] = "5000"
self._cfg['%s!env!PHP_FCGI_CHILDREN' % (self.source)] = "5"
@@ -76,7 +76,7 @@
_, self.rule = cfg_vsrv_rule_get_next (self._cfg, self._pre)
if not self.rule:
return self.report_error ("Couldn't add a new rule.")
-
+
src_num = self.source.split('!')[-1]

self._cfg['%s!match' % (self.rule)] = 'extensions'
@@ -120,4 +120,4 @@

return {'source': wizard.source,
'nick': wizard.nick}
-
+

Cherokee commits 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.