Home > Database > phpMyAdmin > How to download and install phpmyadmin in ubuntu

How to download and install phpmyadmin in ubuntu

王林
Release: 2019-12-28 14:09:35
Original
2280 people have browsed it

How to download and install phpmyadmin in ubuntu

1. Use apt-ge to install phpmyadmin

1. Open the terminal and enter the command:

sudo  apt-get install  phpmyadmin
Copy after login
Copy after login

[Note]: The above command may appear If the lock cannot be obtained, if so, use the following command:

sudo rm /var/cache/apt/archives/locksudo rm /var/lib/dpkg/lock
Copy after login

and then execute:

sudo  apt-get install  phpmyadmin
Copy after login
Copy after login

2. Due to network problems during installation, ## may occur

How to download and install phpmyadmin in ubuntu

#You can follow the prompts and try again.

3. The window prompts to select the server

Select apache2 and press Enter

How to download and install phpmyadmin in ubuntu##4. Set the password for phpMyAdmin

How to download and install phpmyadmin in ubuntu5. Enter the phpMyAdmin password again to confirm

How to download and install phpmyadmin in ubuntu6. Install the necessary dependency packages, because php7 does not come with it by default

php- mbstring

, php-gettext These two packagesYou can also look for these two in the directory installed above. If not, execute:

$ sudo apt-get install php-mbstring$ sudo apt-get install php-gettext
Copy after login

Select automatically configure the database during installation and enter the password of the database root account.

If you do not install the above two php software packages, an error or a white screen will be reported, indicating that /usr/share/php/php-gettext/gettext.inc cannot be found.

7. Establish a soft connection under /var/www/html

$ sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
Copy after login

2. Modify the PHP configuration file

[Note]: php.ini file path, if you don’t know, you can check it in the file , Screenshot:

How to download and install phpmyadmin in ubuntuFind

etc/php/7.2/apache2/php.ini

(use your own path for the path)<div class="code" style="position:relative; padding:0px; margin:0px;"><pre class='brush:php;toolbar:false;'>$ sudo gedit /etc/php/7.2/apache2/php.ini</pre><div class="contentsignin">Copy after login</div></div> Search

display_errors

and find the second display_errors = OnAdd one:

;extension=php_mbstring.dll

(Turn on mbstring)
3. Restart apache

$ sudo /etc/init.d/apache2 restart
Copy after login

4. Log in to phpMyAdmin

Access port localhost/phpmyadmin, enter the account password


How to download and install phpmyadmin in ubuntu Recommended related articles and tutorials:

phpmyadmin tutorial

The above is the detailed content of How to download and install phpmyadmin in ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template