Installation of Apache/PHP/MySQLforrhas3 _ MySQL-mysql tutorial

Source: Internet
Author: User
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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.