<div dir="ltr">Hey Jamie. Some stuff to try:<div><br></div><div>* Make sure you increased MySQL's memory allocation from the defaults. Take a look at /usr/local/share/mysql. There are sample my.cnf files in there labeled "large" and "huge" consider one of those if you have lots of memory.</div>
<div>* Consider a PHP precompiler. I was using eaccelerator for a while and it has pretty dramatic performance effects. Remember that PHP is an on-the-fly interpreted language. In the general case, every script is recompiled every time it gets called. That chews up precious milliseconds. eaccelerator (or the like) will cache the compiled version and only recompile if the source file changes.</div>
</div><div class="gmail_extra"><br clear="all"><div><span style="font-family:'courier new',monospace"><br>--  James L. Lauser</span><br style="font-family:'courier new',monospace"><span style="font-family:'courier new',monospace">    </span><a href="mailto:james@jlauser.net" style="font-family:'courier new',monospace" target="_blank">james@jlauser.net</a><br style="font-family:'courier new',monospace">
<span style="font-family:'courier new',monospace">   </span><span style="font-family:'courier new',monospace"> </span><a href="http://jlauser.net/" style="font-family:'courier new',monospace" target="_blank">http://jlauser.net/</a></div>

<br><br><div class="gmail_quote">On Sun, Sep 29, 2013 at 9:24 AM, Jaime <span dir="ltr"><<a href="mailto:jaime@snowmoon.com" target="_blank">jaime@snowmoon.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm looking for tips on speeding up a few LAMP applications.<br>
Specifically, the two slow ones use FreeBSD, Apache 2, MySQL 5.x and<br>
PHP 5.x.  One is Moodle and uses LDAP and has its biggest issues when<br>
users login for the first time (especially 20-25 users in the same few<br>
minutes, as happens in a classroom.)  The other is Drupal 7.x and<br>
doesn't use LDAP, but its running on the same server.<br>
<br>
By comparison, DokuWiki uses ASCII files instead of MySQL and it DOES<br>
use LDAP for authentication.  Its the same LDAP server as in the<br>
Moodle instance.  I haven't noticed any lag in DokuWiki, but maybe its<br>
just lighter code in the first place.  I'm not sure.<br>
<br>
Any thoughts on how to figure this out?<br>
<br>
Thanks in advance,<br>
Jaime<br>
_______________________________________________<br>
CDBUG-talk mailing list<br>
<a href="mailto:CDBUG-talk@lists.nycbug.org">CDBUG-talk@lists.nycbug.org</a><br>
<a href="http://lists.nycbug.org/mailman/listinfo/cdbug-talk" target="_blank">http://lists.nycbug.org/mailman/listinfo/cdbug-talk</a><br>
</blockquote></div><br></div>