I could not find a solution to this issue already in stackoverflow, most of the other related issues are related to the fact that Apache does not start first and does not receive this error. My problem is that after starting apache some of my users connected to our php / mysql site will get this error:
PHP Warning: mysql_connect() [function.mysql-connect]:
[2002] Only one usage of each socket address (protocol/network address/port)
is normally permitted.
This seems completely random, and when I track my workflows for Apache, there are usually many free workers available to accept new connections / requests.
My site is running Windows XP SP3, Xampp 1.7.7, Quad Core, 4 gigabytes of RAM, 1 TB HD, Specifications for php / mysql:
Apache / 2.2.21 (Win32) mod_ssl / 2.2.21 OpenSSL / 1.0.0e PHP / 5.3.8 mod_perl / 2.0.4 Perl / v5.10.1
Any help on what I have to change in any of my configurations to do this would be greatly appreciated. I looked at google and even on Xampp forums, but most people experience this problem before starting Apache, but Apache works fine for me when users experience this error.
Shane source
share