Perl lock file while updating
Paid support and assistance is always available however.wget wget There may be an Apache mirror closer to you - check their mirror page for other sources.I run Cent OS on my servers; these directions were written for Cent OS/Red Hat/Fedora.I have had requests for Su SE (another RPM-based distribution) as well as Debian-based systems, so I will work on variants of these directions for those distributions in the future (donations might help speed that process up! The main difference between the distributions is in the paths to the startup scripts. If you need an SSL-enabled server, I have a LAMP with SSL howto as well.cd /usr/local/src/mysql-4.1.22 chown -R * make clean ./configure \ --prefix=/usr/local/mysql \ --localstatedir=/usr/local/mysql/data \ --disable-maintainer-mode \ --with-mysqld-user=mysql \ --with-unix-socket-path=/tmp/\ --without-comment \ --without-debug \ --without-bench 18-Jul-2005: If you are installing My SQL 4.0.x on Fedora Core 4, there is a problem with Linux Threads that prevents My SQL from compiling properly. Thanks to Kevin Spencer for bringing this to my attention. chown -R root:mysql /usr/local/mysql chown -R mysql:mysql /usr/local/mysql/data Copy the default configuration file for the expected size of the database (small, medium, large, huge) cp support-files//etc/chown root:sys /etc/chmod 644 /etc/If you get an error message about the step above.
For My SQL, go to and choose an appropriate mirror to get the newest My SQL version (v4.1.22). Now comes the long part, where the source code is actually compiled and then installed.
Unpack the Source Code tar zxf php-4.4.6gz tar zxf apache_1.3.37gz tar zxf mysql-4.1.22gz This should leave you with the following directories: /usr/local/src/php-4.4.6 /usr/local/src/apache_1.3.37 /usr/local/src/mysql-4.1.22 Build and Install My SQL First, we create the group and user that "owns" My SQL. Plan to get some coffee or take a break while this step runs.
For security purposes, we don't want My SQL running as : groupadd mysql useradd -g mysql -c "My SQL Server" mysql If you get any messages about the group or user already existing, that's fine. It could be 10-15 minutes or more, depending on your system's free memory, load average, etc.
This is generally taken care of, but I've had enough queries about it that I've added this note to avoid getting more!
You can use your distribution's install CDs to get the proper version of the compiler.
One note: many many people have followed these directions as written, and have not had any problems.