Get the App
SLTechnology News&Howtos  ›  Development  › 

How to build phpMyAdmin by Linux

Shulou Source: shulou.com Published: 2022-06-01 17:52:38 09月10日 Update

In this article, the editor introduces in detail "how to build phpMyAdmin in Linux". The content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to build phpMyAdmin in Linux" can help you solve your doubts.

RHEL/CentOS: (take CentOS7.6 as an example below)

Let's fix some prerequisites first.

Shutting down selinux and restarting the system takes effect.

# sed-I "s/SELINUX=enforcing/SELINUX=disabled/g" / etc/selinux/config & & shutdown-r now

Then we install the php extension that phpMyAdmin needs

# yum install php73-php-mysqlnd.x86_64 php73-php-mbstring.x86_64-y # chown-R nginx:nginx / var/opt/remi/php73/lib/php/

Restart php

# systemctl restart php73-php-fpm.service

Download the phpMyAdmin source code

# wget https://files.phpmyadmin.net/phpMyAdmin/4.9.0.1/phpMyAdmin-4.9.0.1-all-languages.zip

Install zip and extract the downloaded source code

# yum install zip unzip-y & & unzip phpMyAdmin-4.9.0.1-all-languages.zip

Move the phpMyAdmin source code to the web page directory and set the permission to nginx

# mv phpMyAdmin-4.9.0.1-all-languages / usr/share/nginx/html/phpMyAdmin & & chown-R nginx:nginx / usr/share/nginx/html/phpMyAdmin

Configure the phrase password for phpMyAdmin

# sed-I "108sCompact" randomly generate 32 passwords by yourself / g "/ usr/share/nginx/html/phpMyAdmin/libraries/config.default.php

Example:

# sed-I "108 s/''/'M4HUkD8rwVPo919e36Rp5zItiPqprByh'/g" / usr/share/nginx/html/phpMyAdmin/libraries/config.default.php

We open the web page and log in to phpMyAdmin, create the phpmyadmin database, look at the gif dynamic diagram below, and log in to → to find the reason for → creation.

Http://IP address / phpMyAdmin/index.php

Debian/Ubuntu: (take Debian10 as an example below)

Let's fix some prerequisites first.

Install the php extensions required by phpMyAdmin

# apt install php7.3-mysql php7.3-mbstring-y

Download the phpMyAdmin source code

# wget https://files.phpmyadmin.net/phpMyAdmin/4.9.0.1/phpMyAdmin-4.9.0.1-all-languages.zip install zip and extract the downloaded source code # apt install zip unzip-y & & unzip phpMyAdmin-4.9.0.1-all-languages.zip

Move the phpMyAdmin source code to the web page directory and set the permission to nginx

# mv phpMyAdmin-4.9.0.1-all-languages / usr/share/nginx/html/phpMyAdmin & & chown-R nginx:nginx / usr/share/nginx/html/phpMyAdmin

Configure the phrase password for phpMyAdmin

# sed-I "108sCompact" randomly generate 32 passwords by yourself / g "/ usr/share/nginx/html/phpMyAdmin/libraries/config.default.php

Example:

# sed-I "108 s/''/'M4HUkD8rwVPo919e36Rp5zItiPqprByh'/g" / usr/share/nginx/html/phpMyAdmin/libraries/config.default.php

We open the web page and log in to phpMyAdmin, create the phpmyadmin database, look at the gif dynamic diagram below, and log in to → to find the reason for → creation.

Http://IP address / phpMyAdmin/index.php

After reading this, the article "how to build Linux phpMyAdmin" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, welcome to follow the industry information channel.

Tags: Source code password web page login article prerequisite content dynamic reason address data database permissions conditions directories phrases examples face-to-face first come generate Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux NVidia Docker Shulou Technology OPPO Reno