James Posted December 6, 2010 Report Share Posted December 6, 2010 Anyone have luck getting Unserver 6.0.5 on Windows Server 2008 R2 Have moved/setup our site to it on my WinXP, works fine, but when I move the files to Win2008 R2 32bit it start fine but and pages using MySQL error out and the log shows [Mon Dec 06 12:37:09 2010] [error] [client 127.0.0.1] PHP Warning: mysql_connect(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\\UniServer\\www\\apps\\functions.php on line 18, referer: http://localhost/about/ So I am not sure if it can not talk to the MySQL or if the variables are not being held?I also see a number of errors withPHP Notice: Undefined variable: s_username James... Quote Link to comment Share on other sites More sharing options...
James Posted December 8, 2010 Author Report Share Posted December 8, 2010 Gave it a try with 5.6.15 except for having a hard time finding the correct php_ldap.dll got everything working fine on WinXP SP3. Moved the whole thing to WIn2008 R2 and get the same error! phpMyAdmin works so MySQL is running and some part is connecting with PHP? Hmmmm mysql_connect('localhost','user','pw');Does not work but mysql_connect('192.168.1.111','user','pw');Does! Even made sure 127.0.0.1 localhost was in hosts? Some Win2008 security thing on localhost? Another place to change IP's if needed but it is working!! Anyone have luck getting Unserver 6.0.5 on Windows Server 2008 R2 Have moved/setup our site to it on my WinXP, works fine, but when I move the files to Win2008 R2 32bit it start fine but and pages using MySQL error out and the log shows [Mon Dec 06 12:37:09 2010] [error] [client 127.0.0.1] PHP Warning: mysql_connect(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\\UniServer\\www\\apps\\functions.php on line 18, referer: http://localhost/about/ So I am not sure if it can not talk to the MySQL or if the variables are not being held?I also see a number of errors withPHP Notice: Undefined variable: s_username James... Quote Link to comment Share on other sites More sharing options...
Shyokou Ouyou Posted December 9, 2010 Report Share Posted December 9, 2010 The statement, "Even made sure 127.0.0.1 localhost was in hosts", may remind a similar situation in Windows 7 where IPv6 stack is preferred over traditional IPv4, either uninstall the IPv6 stack if possible or make IPv4 your preference by registry tweak ... As if Apache handles IPv6 well, but MySQL requires tweaking, you may search such tricks easily here ... Gave it a try with 5.6.15 except for having a hard time finding the correct php_ldap.dll got everything working fine on WinXP SP3. Moved the whole thing to WIn2008 R2 and get the same error! phpMyAdmin works so MySQL is running and some part is connecting with PHP? Hmmmm mysql_connect('localhost','user','pw');Does not work but mysql_connect('192.168.1.111','user','pw');Does! Even made sure 127.0.0.1 localhost was in hosts? Some Win2008 security thing on localhost? Another place to change IP's if needed but it is working!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.