0061.html 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Turn a $20 Android TV Box Into a Cheap Web Server</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Linux,PHP,Apache,HTTPD,MySQL,MariaDB,Armbian,Android,TV Box,LAMP,Web Server Administration,Web Server,Web Developer,Self-hosted,System Administrator,System Administration,Self-Hosted,Debian,Developer,Development,Browser Based,Web Based Tools,Web Based,Single Board Computer,SBC,Install Guide,Home Lab,Administration,Database,PHP Configuration,Apache HTTPD Configuration,Apache HTTPD,Apache HTTPD Administration,Free Software,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Turn a $20 Android TV Box Into a Cheap Web Server">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="03/29/2022 01:19:28 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Turn a $20 Android TV Box Into a Cheap Web Server</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Run the following commands in terminal to install Apache HTTPD web server:
  27. <div class="codeBlock"># update software repositories<br />
  28. sudo apt update<br />
  29. # install available software updates<br />
  30. sudo apt upgrade -y<br />
  31. # install apache httpd<br />
  32. sudo apt install apache2 -y</div>
  33. </li>
  34. <li><span>Once the installation completes, open a web browser and navigate to http://DNSorIP/ to verify Apache is up and running</span></li>
  35. <li>Run the following command in terminal to install MySQL/MariaDB
  36. <div class="codeBlock"># install mariadb/mysql server<br />
  37. sudo apt install mariadb-server -y<br />
  38. # configure the MySQL database<br />
  39. sudo mysql_secure_installation</div>
  40. </li>
  41. <li><span>Follow the prompts to change passwords and fix some potential security issues</span></li>
  42. <li><span>Once the installation completes, run the following </span>command in terminal to log into MySQL/MariaDB
  43. <div class="codeBlock">sudo su<br />
  44. mysql -u root -p<br />
  45. [enter the root password created earlier]<br />
  46. show databases;<br />
  47. exit<br />
  48. exit</div>
  49. </li>
  50. <li>Run the following commands in terminal to install PHP
  51. <div class="codeBlock"># install php<br />
  52. sudo apt install php libapache2-mod-php php-mysql -y</div>
  53. </li>
  54. <li><span>Once the installation completes, create a file called info.php in /var/www/html and add the following code:</span>
  55. <p>&lt;?php<br />
  56. phpinfo();<br />
  57. ?&gt;</p>
  58. </li>
  59. <li><span>Open a web browser and navigate to http://DNSorIP/info.php to verify Apache is up and running with PHP support</span></li>
  60. <li>Run the following commands in terminal to install phpMyAdmin
  61. <div class="codeBlock"># install phpMyAdmin<br />
  62. sudo apt install phpmyadmin -y<br />
  63. # restart the apache httpd service<br />
  64. sudo systemctl restart apache2</div>
  65. </li>
  66. <li><span>Once the installation completes, open a web browser and navigate to http://DNSorIP/phpmyadmin</span></li>
  67. <li>Run the following commands in terminal to cleanup downloaded packages
  68. <div class="codeBlock"># clean apt cache<br />
  69. sudo apt clean</div>
  70. </li>
  71. </ol>
  72. </div>
  73. </div>
  74. </body>
  75. </html>