数据库管理工具:phpMyAdmin

[[email protected] ~]# rpm -ivh epel-release-6-8.noarch.rpm
[[email protected] ~]# yum install -y expat-devel openssl openssl-devel pcre pcre-devel

[[email protected] ~]# groupadd apache
[[email protected] ~]# useradd apache -g apache -s /bin/nologin

[[email protected] ~]# tar zxvf apr-1.6.3.tar.gz
[[email protected] ~]# cd apr-1.6.3
[[email protected] apr-1.6.3]# ./configure --prefix=/usr/local/apr 
[[email protected] apr-1.6.3]# make
[[email protected] apr-1.6.3]# make install

[[email protected] ~]# tar zxvf apr-util-1.6.1.tar.gz
[[email protected] ~]# cd apr-util-1.6.1
[[email protected] apr-util-1.6.1]# ./configure --with-apr=/usr/local/apr/bin/apr-1-config
[[email protected] apr-util-1.6.1]# make
[[email protected] apr-util-1.6.1]# make install

[[email protected] ~]# tar zxvf httpd-2.4.29.tar.gz 
[[email protected] ~]# cd httpd-2.4.29
[[email protected] httpd-2.4.29]# ./configure --prefix=/usr/local/apache \
--sysconfdir=/etc/httpd \
--enable-ssl \
--enable-so \
--enable-cgi \
--enable-rewrite \
--with-pcre \
--with-zlib \
--enable-modules=most \
--enable-mods-shared=most \
--enable-mpms-shared=all \
--with-mpm=worker \
--with-apr=/usr/local/apr/bin/apr-1-config \
--with-apr-util=/usr/local/apr/bin/apu-1-config

[[email protected] httpd-2.4.29]# make
[[email protected] httpd-2.4.29]# make install

[[email protected] httpd-2.4.29]# cd build/rpm
[[email protected] rpm]# cp httpd.init /etc/init.d/httpd
[[email protected] rpm]# vi /etc/init.d/httpd
httpd=${HTTPD-/usr/local/apache/bin/httpd}
pidfile=${PIDFILE-/usr/local/apache/logs/${prog}.pid}
CONFFILE=/etc/httpd/httpd.conf

[[email protected] ~]# vim /etc/httpd/httpd.conf
ServerName 192.168.1.201:80
User apache
Group apache

[[email protected] ~]# chkconfig --add httpd
[[email protected] ~]# chkconfig --level 345 httpd on
[[email protected] ~]# chkconfig --list |grep http
httpd           0:off   1:off   2:off   3:on    4:on    5:on    6:off
[[email protected] ~]# service httpd start
Starting httpd:                                            [  OK  ]

[[email protected] ~]# service httpd status
httpd (pid  8954) is running...

[[email protected] ~]# yum install libjpeg libpng freetype libjpeg-devel libpng-devel freetype-devel libxml2 libxml2-devel
[[email protected] ~]# tar zxvf php-7.2.14.tar.gz
[[email protected] ~]# cd 7.2.14
[[email protected] php-7.2.14]# 
./configure --prefix=/usr/local/php \
--with-config-file-path=/etc \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-zlib \
--with-bz2 \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-openssl \
--with-mysqli=/usr/bin/mysql_config \
--without-sqlite3 \
--without-pdo-sqlite \
--enable-xml \
--enable-sockets \
--enable-mbstring \
--disable-ipv6

[[email protected] php-7.2.14]# make
[[email protected] php-7.2.14]# make install

[[email protected] php-7.2.14]# cp php.ini-production /etc/php.ini
[[email protected] ~]# vi /etc/php.ini 
date.timezone = Asia/Shanghai

[[email protected] ~]# vi /etc/httpd/httpd.conf
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>

[[email protected] ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

[[email protected] ~]# unzip phpMyAdmin-4.8.5-all-languages.zip
[[email protected] ~]# cd phpMyAdmin-4.8.5-all-languages
[[email protected] phpMyAdmin-4.8.5-all-languages]# mv * /usr/local/apache/htdocs/

[[email protected] ~]# cd /usr/local/apache/htdocs
[[email protected] htdocs]# mv config.sample.inc.php config.inc.php
[[email protected] htdocs]# vi config.inc.php
$cfg['blowfish_secret'] = 'ZqyAObzVjSLpq3EhELzGZSoNOTyAZoNziePBfjqhjGhRHCG2kKNzH2fN777h';
$cfg['TempDir'] = '/var/tmp';


猜你喜欢

转载自blog.51cto.com/13598811/2348479
0条评论
添加一条新回复