Apache installation for ApachePHPMySQLforrhas3
We have successfully installed APM today. to sum up, we will provide you with a document.
1. preparations before installation
1. create a software installation directory:
# Useradd software
Copy the installation file to the/home/software Directory.
Delete related RPM packages carried by rh as 3.0 Update 1
Rpm-e -- nodeps httpd-2.0.46-26.ent
Rpm-e -- nodeps php-4.3.2-8.ent
II. install MySQL
# Cd/home/software/mysql-4.0.17
#./Configure -- prefix =/usr/local/mysql -- with-charset = gbk
-- Remove debug mode from without-debug
-- Enable-aggreger uses the Assembly version of some character functions.
-- Without-isam remove the isam table type. Currently, the isam table is rarely used as a platform-dependent table.
-- With-pthread enforces the use of the pthread Library (posix Thread Library)
-- Enable-thread-safe-client: compile the client in thread mode
-- With-client-ldflags =-all-static
-- With-mysqld-ldflags =-all-static compile server and client in pure static mode
-- With-raid activated raid support
# Make
# Make install
#./Scripts/mysql_install_db
# Cd/usr/local
# Groupadd mysql
# Useradd mysql-g mysql-M-s/sbin/nologin
# Chmod 750 mysql-R
# Chgrp mysql-R
# Chown mysql/var-R
# Chown-R mysql. mysql/usr/local/mysql/var
# Cd/home/software/mysql-4.0.17
# Cp./support-files/my-medium.cnf/etc/my. cnf-fv
# Cp support-files/mysql. server/etc/init. d/mysqld copy mysqld file started
# Chmod 700/etc/init. d/mysqld
# Cd/usr/local/mysql/libexec
# Cp mysqld. old
# Strip mysqld
# Chkconfig -- add mysqld
# Chkconfig -- level 345 mysqld on
# Service mysqld start
Pstree | grep mysqld check whether mysql is started properly
# Ln-s/usr/local/mysql/bin/mysql/sbin/mysql
# Ln-s/usr/local/mysql/bin/mysqladmin/sbin/mysqladmin
# Ln-s/usr/local/mysql/bin/mysqldump/sbin/mysqldump
To facilitate command execution.
Add the root user password: