MySQL is an SQL database server - installs in /usr/local/mysql.
Dependencies: ncurses, zlib, libiconv, libintl, openssl-0.9.8h, and you may need /usr/local/lib/libgcc_s.so.1 and /usr/local/lib/libstdc++.so.6 either from the libgcc-3.4.6 or gcc-3.4.6 or higher packages. Mysql requires a number of installation steps that can be found in the files in /usr/local/doc/mysql. I have only done the configure, make, make install steps and not the creation of the mysql user and group or the other steps that are needed. All the tests in the test suite executed correctly. You may also need to install the shutils to obtain the hostname program used in some of the mysql scripts. You might also try just doing a link ln -s /usr/bin/hostname /usr/local/bin/hostname. If you are upgrading a mysql installation, you should make sure you back up your previous installation and any databases you have created.
The PHP scripting language - installs in /usr/local/php. PHP requires that
libiconv. libxml2, zlib, and either libgcc-3.4.6 or gcc-3.4.6 be installed. PHP is used with apache 2.0.59, not apache 2.2, and mysql which should also be installed along with any packages they may require. PHP needs configuration. php.ini related files are in /usr/local/php/doc/php along with other documentation. php.ini needs to be installed in /usr/local/php/lib. The libphp5.so file is installed in /usr/local/apache2/modules. The following two lines
• LoadModule php5_module modules/libphp5.so
• AddType application/x-httpd-php .php need to be placed in your httpd.conf file in their appropriate places. Finally, you will need to have /usr/local/lib and /usr/local/pgsql/lib before /usr/lib in your library search path like LD_LIBRARY_PATH or similar.