Debian is really great, but some updates make people feel very slow, such as LAMP's set of updates is very slow. No way, then the source code is installed. (In fact, Apache and MySQL are safe to use Debian package installed APT-GET Install Apache2-Common Apache2-MPM-Perforfork MySQL-COMMON MySQL-Server MySQL-COMMON MYSQL-Server MySQL-Client, I'm tick, I have compiled. For mysql mainly The Debian package is installed in the time of doing database mirroring.). 1. Install MySQL: Compile Mysql is the least trouble what is the matter, because its document install-source has been said in a very detailed. Download mysql first first
4.0.20
.tar.gz.Shell> GroupAdd mysqlshell> UserAdd -g mysql mysqlshell> TAR zxvf mysql-4.0.20.tar.gzshell> cd mysql-4.0.20shell> ./ Configure --prefix = / usr / local / mysql (I The system will use / usr / local as an independent partition to install this type of source code compilation "SHELL> Make & Make Installshell> Support-files / my-medium.cnf /etc/my.cnfshell> Support -files / mysql.server /etc/init.d/mysqlshellchmod x /etc/init.d/mysql # Then select MySQL through RcConf to be automatically started as a service every time. Shell> cd / usr / local / mysql shell> / bin / mysql_install_db --user = mysqlshell> chown -r root .shell> chown -r mysql varshell> chgrp -r mysql .shell> bin / mysqld_safe --user = mysql & Or shell> /etc/init.d/mysql startok, complete! 2, install apache2: Download HTTPD-2.0.49.tar.gz. Shell> TAR ZXVF httpd-2.0.49.tar.gzshell> ./ Configure --prefix = / usr / local / apache2 --enable-so --enable-rEWRITE --NABLE-MODS-Shared --Nable-SSL - SSL - -ENABLE-TRACK-VARSSHELL> Make & Make Install installation is complete. The configuration file httpd.conf should be modified here, but because it is needed after installing the PHP, so I will wait until he is. 3, install php5: Download PHP-5.0.0rc3.tar.gz. Shell> TAR ZXVF PHP-5.0.0.0rc3.tar.gz Because I want PHP to simultaneously support MySQL, PostgreSQL, GD2 (GIF, JPEG, PNG) so the specified option is more: shell> ./ Configure --with-apxs2 = / USR / LOCAL / APACHE2 / BIN / APXS / --WITH-mysql = / usr / local / mysql --with-gd --with-mm / --enable-gd-native-ttf --Nable-fp --with -zlib / --with-openssl --with-pgsql --with-png-dir --with-TTF / --with-freetype-dir --with-jpeg-dir --with-zlib-dir For Debian Say, use -with-mm parameters need to install libmmm-dev (Apt-get install libmm-dev) --With-GD parameters need to install GD2 library (APT-GET Install Libgd2-dev) --with-openssl It is necessary to install OpenSSSL and libssl-dev - with-png and --with-jpeg need the corresponding library, libpng, libjpeg is very convenient to build code compilation in Debian, because all small packages can pass directly from APT- Get install installation. Very convenient.