Build phpMyAdmin in Centos7.2 compilation and installation mode,
Background description: phpMyAdmin is a convenient tool for managing MySQL databases through a browser.
Installation Method: In this article, all dependent software is compiled and installed using the latest source code.
Operating System: Centos7.2 x86_64-bit
1. Compile and install and configure httpd 2.4.7. Due to software dependency, install pcre apr and apr-util first.
1. Download, compile, and install pcre
tar zxvf pcre-8.41.tar.gzcd pcre-8.41./configure --prefix=/opt/local/pcre-8.41make && sudo make install
2. Download, compile, and install apr
Wget http://mirrors.hust.edu.cn/apache//apr/apr-1.6.2.tar.gztar zxvf apr-1.6.2.tar.gzcd apr-1.6.2 #/bin/rm: cannot remove 'libtoolt': No such file or directory:/\ $ RM "\ $ your file" comment out: /RM = \ '$ RM to RM =' $ RM-F' make & sudo make install
3. Download, compile, and install apr-util
cd apr-util-1.6.0./configure --prefix=/opt/local/apr-util-1.6.0 --with-apr=/opt/local/apr-1.6.2 --with-expat=/opt/local/expatmake && sudo make install
4. Download, compile, and install apache2
Rpm-qa | grep apr; yum erase apr-y. /configure -- prefix =/opt/local/apache2 -- enable-module = shared -- with-pcre =/opt/local/pcre-8.41 -- with-apr-util =/opt/local/ apr-util-1.6.0 -- with-apr =/opt/local/apr-1.6.2 # ServerName localhost: 80 cancel comments
Configure httpd. conf to support php7
(1) Support for adding database files
(2) Add to homepage Index
(3) Support for adding file types
2. Compile and install php
5. During php source code download, the download link cannot be copied on the webpage. Therefore, download the file to the local windows server and then upload it to the server.
Scp php-7.1.8.tar.gz zheng@172.16.11.236 :~ /
Tar zxf php-7.1.8.tar.gz & cd php-7.1.8. /configure -- prefix =/opt/local/php-7.1.8 -- with-apxs2 =/opt/local/apache2/bin/apxs -- with-mysqli -- with-pdo-mysql -- enable-mbstring # -- with-apxs2 options, after compilation, the libphp7.so file make & sudo make install will be generated in/opt/local/apache2/modules /.
3. Configure phpMyAdmin
6. Download and configure phpMyAdmin
wget https://files.phpmyadmin.net/phpMyAdmin/4.7.4/phpMyAdmin-4.7.4-all-languages.tar.gztar zxf phpMyAdmin-4.7.4-all-languages.tar.gz ; mv phpMyAdmin-4.7.4-all-languages phpMyAdmin
# The default location of apache2 document is/opt/local/apache2/htdocs/. Copy phpMyAdmin to htdocs, omit the httpd. conf configuration, and access phpMyAdmin directly in the browser.
Sudo cp-rf phpMyAdmin/opt/local/apache2/htdocs/
# Configure phpMyAdmin database connection
Sudo cp/opt/local/apache2/htdocs/phpMyAdmin/config. sample. inc. php/opt/local/apache2/htdocs/phpMyAdmin/config. inc. php
Sudo vim/opt/local/apache2/htdocs/phpMyAdmin/config. inc. php
7. Access phpMyAdmin through a browser