Get the App
SLTechnology News&Howtos  ›  Development  › 

How to build phpMyAdmin with Centos compilation and installation

Shulou Source: shulou.com Published: 2022-05-31 22:34:30 09月21日 Update

This article mainly introduces "how to build phpMyAdmin with Centos compilation and installation method", in daily operation, I believe many people have doubts on how to build phpMyAdmin with Centos compilation and installation method, Xiaobian consulted all kinds of information, sorted out simple and easy to use operation method, hope to answer "how to build phpMyAdmin with Centos compilation and installation method" doubts help! Next, please follow the small series to learn together!

Background: phpmyadmin is a very convenient tool for managing mysql databases through browsers.

Installation: In this article, all dependent software is compiled and installed using the latest version of the source code.

Operating system: centos 7.2 x86_64 bit

1. Compile, install and configure httpd 2.4.7. Due to software dependencies, 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 "\$cfgfile" annotation:/rm=\'$rm changed to rm='$rm -f'make && sudo make install

3. Download compile 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 Build 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: 80Remove annotation

Configure httpd.conf to support php7

(1) Add library file support

(2) Add home page index

(3) Added file type support

Second, compile and install php

5. php source download, download link in the web page can not be copied, so download the file to the local windows, and then upload 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 the--with-apxs2 option, compilation will generate libphp7.so file make && sudo make install in/opt/local/apache2/modules/

Third, configure phpmyadmin

6. Download configuration 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# apache2 documentation default location is/opt/local/apache2/httdocs/ , copy phpmyadmin to httdocs, omitting httpd.conf configuration, phpmyadmin 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.phpsudo vim /opt/local/apache2/htdocs/phpmyadmin/config.inc.php

7. browser visit phpmyadmin

At this point, the study on "how to build phpMyAdmin with Centos compilation and installation" is over, hoping to solve everyone's doubts. Theory and practice can better match to help you learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Tags: Compilation configuration way learning files browsers support browsing data databases more comments software help utility next operating system home page location tools Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB vpn macOS Redmi OPPO Reno