본문 바로가기

개발/linux

MariaDB + apache + php

sql + apache + php


shell> groupadd mysql

shell> useradd -g mysql mysql

shell> cd /usr/local

shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -

shell> ln -s full-path-to-mysql-VERSION-OS mysql

shell> cd mysql

shell> chown -R mysql .

shell> chgrp -R mysql .

shell> scripts/mysql_install_db --user=mysql

shell> chown -R root .

shell> chown -R mysql data

shell> bin/mysqld_safe --user=mysql &


./bin/mysqladmin -u root password '비번'

./bin/mysqladmin -u root -h localhost.localdomain password '비번'


GRANT ALL ON * TO '계정아이디'@'%' identified by 'x';

UPDATE mysql.user SET Password = password('비번') WHERE User =  '계정아이디'

flush privileges;




'./bin/mysqladmin' -u root password 'new-password'

'./bin/mysqladmin' -u root -h localhost.localdomain password 'new-password'


Alternatively you can run:

'./bin/mysql_secure_installation'



yum install libtool

yum install pcre

yum install pcre-devel



apr apr-util 설치

tar -zxvf apr-1.5.2.tar.gz

cd apr-1.5.2

cp -arp libtool libtoolT

ln -s /usr/local/apr-1.5.2/ /usr/local/apr


./configure --prefix=/usr/local/apr-1.4.8

make & make install

ln -s /usr/local/apr-1.4.8 /usr/loca/apr


cd apr-util-1.5.4

make * make install

ln -s /usr/local/apr-util-1.5.4 /usr/local/apr-util




아파치

1)

./configure \

--prefix=/usr/local/httpd-2.4.25 \

--enable-so

2)

./configure \

--prefix=/usr/local/httpd-2.4.25 \

--with-pcre=/usr/local/pcre \

--with-apr=/usr/local/apr \

--with-apr-util=/usr/local/apr-util

3)

./configure \

--prefix=/usr/local/httpd-2.4.25 \

--enable-so \

--enable-module=so \

--enable-shared=max \

--enable-unique-id \

--enable-module=rewrite \

--enable-shared=rewrite \

--enable-security \

--with-pcre=/usr/local/pcre \

--with-apr=/usr/local/apr \

--with-apr-util=/usr/local/apr-util




php


./configure --prefix=/usr/local/php-5.6.29 \

--with-config-file-path=/usr/local/apache/conf \

--with-exec-dir=/usr/local/apache/bin \

--with-mysql=/usr/local/mysql \

--with-apxs2=/usr/local/apache/bin/apxs \

--enable-sysvshm=yes \

--enable-sysvsem=yes \

--enable-debug=no \

--enable-ftp \

--enable-mbstring \

--enable-sockets \

--enable-exif \

--enable-wddx \

--enable-calendar \

--enable-opcache \

--enable-soap \

--with-openssl \

--with-iconv \

--with-libxml-dir \

--with-curl \

--with-zlib-dir \

--with-png-dir \

--with-jpeg-dir \

--with-freetype-dir \

--with-gd \

--enable-gd-native-ttf \

--with-libxml-dir=/usr \

--with-xmlrpc \

--with-xsl \

--with-gettext \

--with-mhash \

--enable-zip \

--with-imap-ssl \

--enable-calendar \

--with-mysqli \

--with-pdo-mysql \

--with-pdo-sqlite \

--with-pspell


한꺼번에 설치 

yum -y install gcc gcc-c++ perl perl-devel libxml2  libxml2-devel openssl openssl-devel curl curl-devel gd gd-devel aspell aspell-devel libxslt libxslt-devel


yum install perl

yum install perl-devel


yum install libxml2

yum install libxml2-devel


yum install openssl

yum install openssl-devel


yum install curl

yum install curl-devel


yum install gd

yum install gd-devel


yum install aspell

yum install aspell-devel


yum install libxslt

yum install libxslt-devel


yum -y install gcc gcc-c++



'개발 > linux' 카테고리의 다른 글

bzip 압축 관리  (0) 2017.01.29
리눅스 iptable 관리  (0) 2017.01.12
centos7 네트워크 구성  (0) 2017.01.02
centos7 firewalld  (0) 2017.01.02
시스템 체크  (0) 2015.11.11