Home > Database > phpMyAdmin > How to install and configure phpmyadmin on Alibaba Cloud Server

How to install and configure phpmyadmin on Alibaba Cloud Server

王林
Release: 2019-12-09 09:55:08
Original
2822 people have browsed it

How to install and configure phpmyadmin on Alibaba Cloud Server

1. Download phpMyAdmin

https://www.phpmyadmin.net/downloads/

2 .Extract the downloaded file

tar -zvxf phpMyAdmin-3.5.3-all-languages.tar.gz
Copy after login

3.Move the decompressed file to the specified directory

mv phpMyAdmin-3.5.3-all-languages /usr/share/phpMyAdmin
Copy after login

4.Enter the specified directory

cd /usr/share/phpMyAdmin
cp config.sample.inc.php config.inc.php
Copy after login

5.Create the configuration file under apache

vi /etc/httpd/conf.d/phpmyadmin.conf
Copy after login

Insert the following content:

#  
#Web application to manage MySQL  
         
#  
         
#<Directory “/usr/share/phpMyAdmin”>  
         
#Order deny,allow  
         
#Deny form all  
         
#Allow from localhost  
         
#</Directory>  
         
Alias /phpmyadmin /usr/share/phpMyAdmin  
         
Alias /phpMyAdmin /usr/share/phpMyAdmin  
         
Alias /mysqladmin /usr/share/phpMyAdmin
Copy after login

6. Test

Restart mysql and apache, enter: your ip/phpMyAdmin in the browser to display the login interface.

Note:

If an error is reported saying that your php does not support the mysqli extension, it may be that you did not install the mysql module when you installed php. You can solve the problem by doing the following:

yum install php-mysql
Copy after login

Then add extension=mysqli.so

to php.ini. Restart mysql and apache, and enter your ip/phpMyAdmin in the browser again to display the login interface correctly.

Finish!

Recommended related articles and tutorials: phpmyadmin tutorial

The above is the detailed content of How to install and configure phpmyadmin on Alibaba Cloud Server. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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