![]()
INSTRUCTIONS FOR COMPILING APACHE/PHP/MYSQL on RedHat Linux V8/9
*note: these instructions are for an older version of PHP/MySQ:L and Apache, but the process is the same. You simply must use the lastest packages of each (provided you have an
up to-date linux kernel!) Set the path bash> export PATH=/usr/local/bin:/usr/local/lib:/usr/local/libexec:/usr/local/etc:/usr/local/sbin:/usr/local/mysql:$PATH Unzip and UnTAR the source code for Apache 1.3.27 [user@somesystem]# cd mysql-3.23.58 [mysql-3.23.58]# ./configure --prefix=/usr/local/mysql >> configure.out 2>&1 now you can view the output later! [mysql-3.23.58]# make [mysql-3.23.58]# make install MySQL is now installed! [mysql-3.23.58]# mysql_install_db [mysql-3.23.58]# chown -R mysql:mysql /usr/local/mysql [mysql-3.23.58]# chmod -R 775 /usr/local/mysql [mysql-3.23.58]# cd /usr/local/mysql/bin; ./safe_mysqld & [/usr/local/mysql/bin]# mysqladmin -u root -h <hostname> password 'somepassword' [/usr/local/mysql/bin]# mysql -u root -p mysql> show databases Welcome to the MySQL monitor. Commands end with ; or \g. Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show databases ; +----------+ ... mysql> exit [user@somesystem]# cd <dir>/apache_1.3.27 [apache_1.3.27]# ./configure [apache_1.3.27]# cd ../php-4.3.1 [php-4.3.1]# ./configure --with-apache=../apache_1.3.27 --with-mysql=/usr/local --enable-track-vars *note: this is assuming you install MYSQL in /usr/local
+--------------------------------------------------------------------+
[php-4.3.1]# make install [php-4.3.1]# cd ../apache_1.3.27 [apache_1.3.27]# ./configure --activate-module=src/modules/php4/libphp4.a *note: The libphp4.a does not exist, but will show in the second line (or so) Now we know php will be compiled into Apache [apache_1.3.27]# make [apache_1.3.27]# make install
AddType application/x-httpd-php .php
Congrats! ============================================================ To Install phpMyAdmin 1. Untar or unzip the distribution (be sure to unzip the 2. Open the file config.inc.php in your favorite editor and change 3. It is recommended that you protect the directory in which you 4. Open the file <www.your-host.com>/<your-install-dir>/index.php
in
|