l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2004 Dec 16 08:50

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] PHP/MySQL very slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] PHP/MySQL very slow

Mitch Patenaude said:
> I can think of a couple of places where the computer's IP address is
> used in the PHP<->MySQL linkage.
> First, in the mysql_connect("<host>","<user>","<pass>") call... but
> that would tend to make it fail altogether rather than just become
> slow... and if the DB and webserver are on the same box, then the host
> is probably "localhost", but it's something to check.

It wasn't in the MySQL settings at all; in the same config file where the
mysql_connect parameters are set, there is a variable in this application
called wwwroot... which was set to the old IP address.  I changed it to
the new IP address, and now the site works fine.

I'll go back under my hole now.

> Second.. in the MySQL permissions.  If, for some reason the permissions
> are configured in terms of "user@<IP>", then the change in IP would
> cause them to no longer be found.. and it would fall back on default
> permissions.  Again.. I would expect changes in behavior rather than
> just slowness.
>    -- Mitch
> On Dec 15, 2004, at 1:16 PM, Richard S. Crawford wrote:
>> The site I'm working on, on a RH9 box, is presenting me with a strange
>> problem.  It's running Apache 1.x, PHP 4.2, and MySQL 3.23.  When I
>> hit plain old PHP pages, the site runs just fine and response time is
>> nice  and
>> quick.  However, when I go to a page where PHP connects to MySQL, the
>> response is incredibly slow.  Apache responds fine, PHP responds fine,
>>  and
>> MySQL responds fine from the command line.  And everything was working
>> fine until yesterday.
>> What happened yesterday?  We changed this computer's IP address.  I've
>> adjusted httpd.conf appropriately, but I can't think of where else I
>> might
>> have to make configuration changes in order to make this work.
>> Any advice would be greatly appreciated.
>> --
>> Sláinte,
>> Richard S. Crawford (AIM: Buffalo2K)
>> http://www.mossroot.com   http://www.stonegoose.com/catseyeview
>> "We live as though the world were how it should be,
>> to show it what it can be."
>> --"Angel", Season 4 ep. 1
>> _______________________________________________
>> vox-tech mailing list
>> vox-tech@lists.lugod.org
>> http://lists.lugod.org/mailman/listinfo/vox-tech

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.