PHP / MySQL
Repair and Optimize MySQL databases in SSH
Posted Tue, 10/05/2010 - 12:38pm
SSH repair and optimize all MySQL databases:
/usr/bin/mysqlcheck --repair --all-databases --password/usr/bin/mysqlcheck --optimize --all-databases --password=xxxxxxRESOLVED: mysqld won't start
Posted Sun, 06/21/2009 - 7:24pm
In case your mysqld won't work with
# service mysqld restart
or
# service mysqld start
or
# service mysqld stopdo this:
# killall mysqldfollowed by:
HOW-TO: Install Eaccelerator (Turck MMCache replacement)
Posted Mon, 05/14/2007 - 8:09pm
Install/Update eaccelerator:
cd /ea
rm -rf ./eaccelerator*
rm -rf /usr/local/lib/php/extensions/no-debug-non-zts-*
wget http://downloads.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator...
tar xvfj eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1
export PHP_PREFIX="/usr/local"
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
make install
cd /tmp
rm -fr /tmp/eaccelerator
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
vi /usr/local/lib/php.iniAdd/Edit right after "Windows Extensions":
zend_extension="/ea/eaccelerator-0.9.5.3/modules/eaccelerator.so"
eaccelerator.shm_size="32"
HOW TO INSTALL/UPGRADE MySQL
Posted Sun, 05/08/2005 - 8:27pm
rm /var/cpanel/mysqlup
That will stop upcp from touching MySQL.
To upgrade manually
If you upgrade manually you need to remember to create the file:
#touch /etc/mysqlupdisable
(Otherwise upcp will simply downgrade it again.)
PHP OOP tips
Posted Mon, 06/28/2004 - 6:24pm
SitePoint
MysqlConnectClass (good explanation of thinking the OOP way):
http://www.sitepoint.com/forums/showpost.php?p=683454&postcount=4
Advanced PHP Resources:
http://www.sitepoint.com/forums/showthread.php?t=78687
A HOWTO on Optimizing PHP
Posted Wed, 02/25/2004 - 9:05pm
| source: phplense.com Last revised 4 Jan 2004. PHP is a very fast programming language, but there is more to optimizing PHP than just speed of code execution. |