You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ sudo apt-get update
$ sudo apt-get install apache2
# Check Apache# Open Browser with address http://localhost
2. Install PHP
$ sudo apt-get install php
$ sudo /etc/init.d/apache2 restart
# Check PHP
$ sudo vim /var/www/html/hello.php
# Type something in hello.php# Open Browser with address http://localhost/hello.php
3. Install MySQL
$ sudo apt-get install mysql-server
# Check MySQL
$ mysql -u root -p # login MySQL
$ \q# logout MySQL
4. Install phpMyAdmin
$ sudo apt-get install phpmyadmin
# Check phpMyAdmin
$ sudo vim /etc/php/7.1/apache2/php.ini # you might need to revise the PHP version# uncomment extension=msql.so# Add the following in the php.ini file# Include /etc/phpmyadmin/apache.conf
$ sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
$ sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
$ sudo service apache2 restart
$ sudo /etc/init.d/apache2 restart
# Open Browser with address http://localhost/phpmyadmin/