Centos7.2 compile and install way to build phpMyAdmin

Background note: phpMyAdmin is a very convenient tool for managing MySQL database through a browser

Installation method: All dependent software in this article is compiled and installed using the latest version of the source code.

Operating system: Centos7.2 x86_64 bit

1. Compile, install and configure httpd 2.4.7, due to software dependency, first install pcre apr and apr-util

  1. Download, compile and install pcre
tar zxvf pcre-8.41.tar.gz
cd pcre-8.41./configure --prefix=/opt/local/pcre-8.41
make && sudo make install
  1. Download, compile and install apr
wget http://mirrors.hust.edu.cn/apache//apr/apr-1.6.2.tar.gz
tar zxvf apr-1.6.2.tar.gz
cd apr-1.6.2
# /bin/rm: cannot remove `libtoolT': No such file or directory
: /$RM "$cfgfile"Comment out
: /RM=\'$RM changed to RM='$RM -f'
make && sudo make install
  1. 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/expat
make && sudo make install
  1. 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 Uncomment

Configure httpd.conf to support php7

(1) Add library file support

(2) Add to home page index

(3) Add file type support

Two, compile and install php

  1. When downloading the php source code, the download link cannot be copied on the web page, so first download the file to the local windows, and then upload it to the server
    scp php-7.1.8.tar.gz [email protected]:~/
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
# by--with-apxs2 option, it will be in/opt/local/apache2/modules/Generate libphp7.so file
make && sudo make install

Three, configure phpMyAdmin

  1. Download and configure phpMyAdmin
wget https://files.phpmyadmin.net/phpMyAdmin/4.7.4/phpMyAdmin-4.7.4-all-languages.tar.gz
tar zxf phpMyAdmin-4.7.4-all-languages.tar.gz ; mv phpMyAdmin-4.7.4-all-languages phpMyAdmin
# The default location of the apache2 document is/opt/local/apache2/htdocs/,Copy phpMyAdmin to htdocs, omitting httpd.conf configuration, just visit 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 

  1. Browser access phpMyAdmin

The above is the whole content of this article, I hope it will be helpful to everyone's study.

Recommended Posts

Centos7.2 compile and install way to build phpMyAdmin
How to install and configure phpMyAdmin on CentOS 6
CentOs7.3 compile and install Nginx 1.9.9
Centos compile and install Git
Centos7 compile and install ntp-4.2.8p11
CentOS 6.9 compile and install python
CentOS 6 compile and install python 3
CentOS Yum compile and install MySQL 5.6
Compile and install LAMP under Centos 5.2
CentOS 6.x compile and install Nginx
Linux CentOS6 compile and install Pyt
virtualBox install centos, and build tomcat
Compile and install libmodbus library under CentOS7
CentOS7.5 source code compile and install mysql5.7.29
Centos7 compile and install MySQL8 problem record
Compile and install nodejs and yum in Centos8
CentOS7.4 source code compile and install MySQL8.0
CentOS7 system yum way to install MySQL5.7
CentOS8 deploys LNMP environment to compile and install mysql8.0.29 tutorial details
Install centos7 and connect
How to install and configure Elasticsearch on CentOS 7
How to install and use Docker on CentOS 7
How to install and secure phpMyAdmin on Ubuntu 16.04
How to install and configure VNC on CentOS 8
The easiest way to install Chrome on CentOS 6
How to install and use Composer on CentOS 8
How to install and secure phpMyAdmin on Ubuntu 16.04
How to install Node.js and npm on CentOS 8
How to install jdk1.8.0_151 and mysql5.6.38 on centos7.2.1511
Centos6.5 compile and install LNMP architecture web environment
How to install and use Curl on CentOS 8
How to install and uninstall tomcat on centos
How to install and configure Redmine on CentOS 8
How to install and configure NFS server on CentOS 8
How to install and use Cockpit on CentOS 8/RHEL 8
Centos compile and install LAMP (apache-2.4.7 + mysql-5.5.35 + php 5.5.8) + Redis
Compile and install Lnmp shell script under Linux centos
centos7 install python3 and ipython
Know Linux and install CentOS
Centos7.6 method to install Tomcat-8.5.39
CentOS 7 install Mono and MonoDevelop
Ubuntu 16.04 compile and install PHP 7.2
ubuntu18.04 compile and install python3.8
CentOS6.5 install Java 8 and Tomcat8
Centos6.5 install and configure mongodb
CentOS7 install OracleJDK and JRE
CentOS6 install and crack Jira 7
CentOS6.5 install Java 8 and Tomcat8
CentOS6 install and crack confluence
CentOS6 install and crack Jira 7
Compile and install the open source EDA tool-Surelog on CentOS8
How to install and configure Postfix mail server on CentOS8
How to compile and install PHP and Nginx in Ubuntu environment
Detailed steps to install and configure k8s cluster in centos 7
Centos 7 install jdk and package service service
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
CentOS7 yum install and start mysql
Install and configure keepalived under CentOS 5.9
CentOS 8 install Git and basic configuration
How to install Memcached on CentOS 8