0416.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Installing Joomla! on Debian</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,CMS,Install Joomla On Debian,Joomla,Linux,MariaDB,MySQL,PHP,Running Joomla On Linux,Joomla!,Debian,Ubuntu,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Installing Joomla! on Debian">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="11/28/2023 07:08:36 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>Installing Joomla! on Debian</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Log into the Debian device</li>
  27. <li>Run the following commands in a terminal:
  28. <div class="codeBlock"># update repositories and install any available software updates<br />
  29. sudo apt update<br />
  30. sudo apt upgrade -y<br />
  31. # install Apache HTTPD and MySQL<br />
  32. sudo apt-get install apache2 mariadb-server mariadb-client curl<br />
  33. # install PHP components<br />
  34. sudo apt install php php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip<br />
  35. # configure the MySQL database<br />
  36. sudo su<br />
  37. mysql_secure_installation</div>
  38. </li>
  39. <li>Press Enter to login as root</li>
  40. <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
  41. <li>Type Y and press Enter to remove anonymous users</li>
  42. <li>Type Y and press Enter to disallow root login remotely</li>
  43. <li>Type Y and press Enter to remove the test database</li>
  44. <li>Type Y and press Enter to reload privilege tables</li>
  45. <li>Run the following command to login into MySQL:
  46. <div class="codeBlock">mysql -u root -p</div>
  47. </li>
  48. <li>Authenticate with the root password set earlier</li>
  49. <li>Run the following commands to create the Joomla! database and database user
  50. <div class="codeBlock">CREATE DATABASE joomla DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;<br />
  51. GRANT ALL ON joomla.* TO &#39;joomla_rw&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;J00mla!!&#39;;<br />
  52. FLUSH PRIVILEGES;<br />
  53. EXIT;<br />
  54. exit</div>
  55. </li>
  56. <li>Continue with the following commands to download and extract Joomla! in the Apache webroot
  57. <div class="codeBlock"># download latest joomla version<br />
  58. sudo wget -O joomla.tar.gz https://downloads.joomla.org/cms/joomla3/3-9-24/Joomla_3-9-24-Stable-Full_Package.tar.gz?format=gz<br />
  59. # extract joomla.tar.gz<br />
  60. sudo mkdir /var/www/joomla<br />
  61. sudo tar xzvf joomla.tar.gz --directory /var/www/joomla<br />
  62. # create a new joomla.conf file to configure the site<br />
  63. sudo nano /etc/apache2/sites-available/joomla.conf</div>
  64. </li>
  65. <li>Paste the following configuration into joomla.conf
  66. <p>Alias /joomla &quot;/var/www/joomla/&quot;<br />
  67. &lt;Directory /var/www/joomla/&gt;<br />
  68. AllowOverride All<br />
  69. &lt;/Directory&gt;<directory joomla="" var="" www=""></directory></p>
  70. </li>
  71. <li>Press CTRL+O, Enter, CTRL+X to write the changes to joomla.conf</li>
  72. <li>Continue with the following commands to enable the site and restart Apache:
  73. <div class="codeBlock"># enable the Joomla site and required PHP modules<br />
  74. sudo a2ensite joomla<br />
  75. sudo a2enmod rewrite<br />
  76. # set the owner of the new joomla directory to www-data<br />
  77. sudo chown -R www-data:www-data /var/www/joomla<br />
  78. # restart apache2 service<br />
  79. sudo systemctl restart apache2</div>
  80. </li>
  81. <li>Open a web browser and navigate to http://DNSorIP/joomla</li>
  82. <li>The Joomla! setup screen should be displayed</li>
  83. <li>Set the site title and create an administrative account login &gt; Click the Next button</li>
  84. <li>Enter the database configuration as follows:
  85. <p>Database Type: MySQLi<br />
  86. Host Name: localhost<br />
  87. Username: joomla_rw<br />
  88. Password: J00mla!!<br />
  89. Database Name: joomla<br />
  90. Table Prefix: jmla_</p>
  91. </li>
  92. <li>Click the Next button</li>
  93. <li>On the Overview page click the Install button</li>
  94. <li>Review the configuration and click the Install button</li>
  95. <li>When the installation completes, copy the output configuration.php and run the following in the terminal window
  96. <div class="codeBlock">sudo nano /var/www/joomla/configuration.php</div>
  97. </li>
  98. <li>Paste the copied configuration text</li>
  99. <li>Press CTRL+O, Enter, CTRL+X to write the changes to configuration.php</li>
  100. <li>Continue with deleting the installation directory by running the following command
  101. <div class="codeBlock">sudo rm /var/www/joomla/installation -r</div>
  102. </li>
  103. <li>Back in the web browser, click on the Site button</li>
  104. <li>Welcome to your very own, self-hosted Joomla! installation</li>
  105. </ol> </div>
  106. </div>
  107. </body>
  108. </html>