Home  >  Article  >  Database  >  How to install phpmyadmin on Alibaba Cloud server

How to install phpmyadmin on Alibaba Cloud server

王林
王林Original
2019-12-13 13:13:043349browse

How to install phpmyadmin on Alibaba Cloud server

1. Download phpMyAdmin

wget http://www.phpmyadmin.net/home_page/downloads.php

2. Unzip the downloaded file

tar -zvxf phpMyAdmin-3.5.3-all-languages.tar.gz

3. Move the unzipped file to the specified location Directory

mv phpMyAdmin-3.5.3-all-languages /usr/share/phpMyAdmin

4. Enter the specified directory

cd /usr/share/phpMyAdmin
cp config.sample.inc.PHP config.inc.php

5. Create a configuration file under apache

vi /etc/httpd/conf.d/phpmyadmin.conf

Insert the following content:

# 
#Web application to manage MySQL         
# 
# 
        
#Order deny,allow 
        
#Deny form all 
        
#Allow from localhost 
        
# 
        
Alias /phpmyadmin /usr/share/phpMyAdmin 
        
Alias /phpMyAdmin /usr/share/phpMyAdmin 
        
Alias /mysqladmin /usr/share/phpMyAdmin

6. Test

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

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 it by doing the following:

yum install php-mysql

Then add it in php.ini extension=mysqli.so

Restart mysql and apache, enter again in the browser: your ip/phpMyAdmin, the login interface will be displayed correctly.

Recommended related articles and tutorials: phpmyadmin tutorial

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

Statement:
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