Basierend auf dem letzten Beitrag zum installieren von LAMP möchte ich nun hier die Befehle, die sich mit den neuen Versionen geändert haben schreiben.
Gestartet wird wieder mit dem Apache. Diesmal in der Version 2.2.16:
./configure --with-mpm=worker --enable-modules="so http" --enable-mods-shared="info status cern_meta usertrack asis include autoindex cgid imap default alias auth auth_anon auth_digest access cache mem_cache cgi dir env ext_filter expires headers file_cache log_config mime mime_magic negotiation rewrite spelling actions userdir setenvif python apr perl" --prefix=/usr/local/apache/2.2.16 --sysconfdir=/etc/apache2 make make install
Bei der aktuellen Version von MySQL (5.1.50) kann man mit folgenden Befehlen die Konfiguration und Installation starten:
./configure --enable-assembler --with-charset=latin1 --with-mysqld-user=mysql --with-unix-socket-path=/var/run/mysqld/mysqld.sock --without-debug --without-docs --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --prefix=/usr/local/mysql/5.1.50 --sysconfdir=/etc --enable-thread-safe-client --localstatedir=/var/mysql --with-plugins=max-no-ndb make make install addgroup mysql useradd -g mysql mysql ln -s /usr/local/mysql/5.1.25 /usr/local/mysql/current ./scripts/mysql_install_db cp support-files/mysql.server /etc/init.d/mysql chmod +x /etc/init.d/mysql chown -R mysql:mysql /usr/local/mysql chwon -R mysql:mysql /var/mysql /etc/init.d/mysql start /usr/local/mysql/current/bin/mysqladmin -u root
Im letzten Schritt kommt PHP 5.3.3 zum Einsatz:
./configure --enable-sysvshm --enable-sysvsem --enable-sysvmsg --enable-sockets --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-mysql=/usr/local/mysql/current/ --with-zlib-dir=/usr/local --disable-ipv6 --disable-debug --with-apxs2=/usr/local/apache/current/bin/apxs --with-config-file-path=/etc --prefix=/usr/local/php/5.3.3 --sysconfdir=/etc --with-gd --with-gettext --with-mcrypt --with-mime-magic --with-pear=/usr/local/php/5.3.3/ --enable-calendar --enable-zip --with-libxml-dir=/usr/local --enable-mbstring --enable-exif --with-jpeg-dir=/usr/local --with-xpm-dir=/usr/local --with-t1lib --with-xpm-dir=/usr/local --with-png-dir=/usr/local --with-pdo-mysql=/usr/local/mysql/current/ --with-freetype-dir=/usr/local --enable-bcmath make make test make install
Möchte man das ganze mit FastCGI und SuExec aufsetzen, wird hierzu in kürze ein weiteres Tutorial geschrieben.