httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard <lists-apa...@listmail.innovate.net>
Subject Re: [users@httpd] Apache is Slow
Date Tue, 31 Mar 2015 10:09:30 GMT


------------ Original Message ------------
> Date: Tuesday, March 31, 2015 02:18:13 -0400
> From: "Ethan Rosenberg, PhD" <erosenberg@hygeiabiomedical.com>
> Subject: Re: [users@httpd] Apache is Slow
>
> Some more info....
> 
> Changed the host in the connect
> 
> $cxn = mysqli_connect($host,$user,$password);
> 
> $host="127.0.1.1";
> 
> Now get an error...
> 
> Warning: mysqli_connect(): (HY000/2003): Can't connect to MySQL
> server on '127.0.1.1' (111) in /var/www/HandleWeight.php on line 56
> Connect Error (2003) Can't connect to MySQL server on '127.0.1.1'
> (111)
> 
> Also ...
> 
> root@meow:/home/ethan/BluBev# netstat -ln | grep mysql
> unix  2      [ ACC ]     STREAM     LISTENING     10347
> /var/run/mysqld/mysqld.sock
> 
> 
> I hope this clears the waters and does not muddy them more.


The correct IPnumber for "localhost" is "127.0.0.1". I wouldn't
generally expect anything to answer on "127.0.1.1".

Separately, I think that this likely proves that this isn't an
apache issue. You're getting to the mysql reference in the php
script that  you're calling (from the js reference) and it's failing
there because of the incorrect IPnumber. So, apache is responding
fine and it's seemingly your script that has problems.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message