Install and configure phpMyAdmin under 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 In the 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 under apache File
vi /etc/httpd/conf.d/phpmyadmin.conf
insert the following:

#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 

6. Test
Restart MySQL and apache, enter in the browser: your ip/phpMyAdmin to display the login interface
If an error is reported that your php does not support mysqli extension, it may be that you did not install the mysql module when you installed php, you can solve it as follows:
yum install php-mysql
Then add extension=mysqli.so in php.ini to
restart mysql and apache, and enter in the browser again : Your ip/phpMyAdmin will display the login interface correctly

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326572374&siteId=291194637
Recommended