phpMyAdmin is a PHP-based, Web-Base mode architecture MySQL database management tool on the website of the host, so that managers available Web interface to manage MySQL database.
Overall interface is as follows:
Speaking in front of us how to deploy our cloud platform: the Internet of Things development 7 Things flag point cloud cloud platform
Next, we look at how to deploy phpMyAdmin, so that we can control our equipment through a web interface.
Installation process:
1, start the installation mysql5
apt-get install mysql-server mysql-client
2. Install apache2
apache2 ubuntu is as a package, so we can install it directly using the following command:
apt-get install apache2
3. Install php
Note that if your version is ubuntu 14, then you need to install php5.0, if other versions may be php7
Php7 php7 module installation and apache as follows:
apt-get install php7.0 libapache2-mod-php7.0
php5 php5 and apache module mounting, as follows:
apt-get install php5.0 libapache2-mod-php5.0
Installing the need to restart
/etc/init.d/apache2 restart
4. Test PHP
Default Web Site document root directory under / var / www / html. Now we will create a small php file (info.php's) in the directory to call it in a browser. The file will show a lot about our php installation, such as the installation of php version and useful details.
we /var/www/html/info.php
Info.php create documents in the system file / var / www / html, written inside
<?php phpinfo() ?>
Now, we can use the browser to http: //localhost/info.php
5. Installation phpmyadmin
phpmyadmin is a network interface, through which you can manage your mysql database.
apt-get install phpmyadmin
phpmyadmin automatically installed in / usr / share / phpmyadmin, phpmyadmin then copied to / var / www directory: cp -r / usr / share / phpmyadmin / var / www / html
运行http://localhost/phpmyadmin/index.php
You can see the following interface:
Password is the password before you arrange phpadmin.
After the login screen: