Re: Apache is Slow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Are you sure that it's even listening on a network socket?
Looks like it's actually using a unix domain socket.

> On Mar 31, 2015, at 10:29 AM, Ethan Rosenberg <erosenberg@xxxxxxxxxxxxxxxxxxxx> wrote:
> 
> On 03/31/2015 06:09 AM, Richard wrote:
>> 
>> 
>> ------------ Original Message ------------
>>> Date: Tuesday, March 31, 2015 02:18:13 -0400
>>> From: "Ethan Rosenberg, PhD" <erosenberg@xxxxxxxxxxxxxxxxxxxx>
>>> Subject: Re:  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.
> -----
> Richard -
> 
> Thanks.
> 
> Correct.  That was a typo on my part, but it told us that it isn't a Apache issue.
> 
> Changed it to 127.0.0.1  and it hangs as previously.  Back to the PHP list to solve the connect error.
> 
> Ethan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux