1. Modify the Apache configuration file
Open the Apache configuration file, /etc/apache2/sites-enabled/000-default.conf
add the following to the bottom of the file
<VirtualHost *:8080>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/phpmyadmin
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
2. Add the listening port
Open ports Apache configuration file, /etc/apache2/ports.conf
add ports need to listen
Listen 80
Listen 8084
3. Test
The new virtual site can be accessed by visiting http://127.0.0.1:8080