Turn a $20 Android TV Box Into a Cheap Web Server (Armbian/Apache/MySQL/PHP)
#Linux #Armbian #LAMP #ApacheHTTPD
Full steps can be found at https://i12bretro.github.io/tutorials/0061.html
01. Run the following commands in terminal to install Apache HTTPD web server:
# update software repositories
sudo apt update
# install available software updates
sudo apt upgrade -y
# install apache httpd
sudo apt install apache2 -y
02. Once the installation completes, open a web browser and navigate to http://DNSorIP/ to verify Apache is up and running
03. Run the following command in terminal to install MySQL/MariaDB
# install mariadb/mysql server
sudo apt install mariadb-server -y
# configure the MySQL database
sudo mysql_secure_installation
04. Follow the prompts to change passwords and fix some potential security issues
05. Once the installation completes, run the following command in terminal to log into MySQL/MariaDB
sudo su
mysql -u root -p
[enter the root password created earlier]
show databases;
exit
exit
06. Run the following commands in terminal to install PHP
# install php
sudo apt install php libapache2-mod-php php-mysql -y
07. Once the installation completes, create a file called info.php in /var/www/html and add the following code:
≪?php
phpinfo();
?≫
08. Open a web browser and navigate to http://DNSorIP/info.php to verify Apache is up and running with PHP support
09. Run the following commands in terminal to install phpMyAdmin
# install phpMyAdmin
sudo apt install phpmyadmin -y
# restart the apache httpd service
sudo systemctl restart apache2
10. Once the installation completes, open a web browser and navigate to http://DNSorIP/phpmyadmin
11. Run the following commands in terminal to cleanup downloaded packages
# clean apt cache
sudo apt clean
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro