Installation of MARIADB, Apache installation

Source: Internet
Author: User
Tags bz2

One: Installation mariadb

Extract
Move to/USR/LOCAL/MAIADB
Mkdir/data/mariadb
User MySQL
./scripts/mysql_install_db--user=mysql--basedir=/usr/local/mariadb/--datadir=/data/mariadb
See if there are two OK
echo $?
A value of 0 is correct
CP SUPPORT-FILES/MY-SMALL.CNF/USR/LOCAL/MARIADB/MY.CNF
VI/USR/LOCAL/MARIADB/MY.CNF//define BASEDIR and DataDir
CP SUPPORT-FILES/MYSQL.SERVER/ETC/INTI.D/MARIADB
VIM/ETC/INIT.D/MARIADB//define BASEDIR, DataDir, conf, and startup parameters
/ETC/INTI.D/MARIADB start

II: Apache Installation

Considerations for installing Apache2.4 versions
The CENTOS6 yum installed Apr version is no longer applicable to the httpd-2.4 version, so the following error occurs at compile time
Configure:error:Bundled APR requested but not found at./srclib/. Download and unpack the corresponding APR and Apr-util packages to./srclib/.
Therefore, the source code is required to compile APR and Apr-util

    1. Download Source:
      cd/usr/local/src/
      wget http://mirrors.cnnic.cn/apache/httpd/httpd-2.4.12.tar.bz2

wget http://mirrors.hust.edu.cn/apache/apr/apr-1.6.3.tar.bz2

wget http://mirrors.hust.edu.cn/apache/apr/apr-util-1.6.1.tar.bz2

    1. Install Apr
      Tar jxvf apr-1.5.2.tar.bz2
      CD apr-1.5.2

./configure--PREFIX=/U01/APR
Make && make install
Install APR error rm:cannot remove ' Libtoolt ': No such file or, directly open/usr/local/src/apr-1.4.6/configure remove $RM "$cfgfile" line
$RM "$cfgfile"
And then run it again./configure--PREFIX=/USR/LOCAL/APR.

    1. Installing Apr-util
      Tar zxvf apr-util-1.5.4.tar.gz

CD apr-util-1.5.4
./configure--prefix=/u01/apr-util--with-apr=/u01/apr/
Make && make install

    1. Installing httpd
      Yum install gcc make cmake pcre-devel
      #./configure \
      --PREFIX=/U01/APACHE2 \
      --WITH-INCLUDED-APR \
      --ENABLE-SO \
      --enable-mods-shared=most \
      --with-pcre

Make && make install
Each step checks to see if the echo $ is executed correctly?
Launch Apache
/usr/local/apache2/bin/apachectl start

Installation of MARIADB, Apache installation

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.