123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Installing Joomla! on Debian</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <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">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Installing Joomla! on Debian">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="11/28/2023 07:08:36 PM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Installing Joomla! on Debian</h1>
- </div>
- <div></div>
- <div id="content">
- <ol>
- <li>Log into the Debian device</li>
- <li>Run the following commands in a terminal:
- <div class="codeBlock"># update repositories and install any available software updates<br />
- sudo apt update<br />
- sudo apt upgrade -y<br />
- # install Apache HTTPD and MySQL<br />
- sudo apt-get install apache2 mariadb-server mariadb-client curl<br />
- # install PHP components<br />
- sudo apt install php php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip<br />
- # configure the MySQL database<br />
- sudo su<br />
- mysql_secure_installation</div>
- </li>
- <li>Press Enter to login as root</li>
- <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
- <li>Type Y and press Enter to remove anonymous users</li>
- <li>Type Y and press Enter to disallow root login remotely</li>
- <li>Type Y and press Enter to remove the test database</li>
- <li>Type Y and press Enter to reload privilege tables</li>
- <li>Run the following command to login into MySQL:
- <div class="codeBlock">mysql -u root -p</div>
- </li>
- <li>Authenticate with the root password set earlier</li>
- <li>Run the following commands to create the Joomla! database and database user
- <div class="codeBlock">CREATE DATABASE joomla DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;<br />
- GRANT ALL ON joomla.* TO 'joomla_rw'@'localhost' IDENTIFIED BY 'J00mla!!';<br />
- FLUSH PRIVILEGES;<br />
- EXIT;<br />
- exit</div>
- </li>
- <li>Continue with the following commands to download and extract Joomla! in the Apache webroot
- <div class="codeBlock"># download latest joomla version<br />
- 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 />
- # extract joomla.tar.gz<br />
- sudo mkdir /var/www/joomla<br />
- sudo tar xzvf joomla.tar.gz --directory /var/www/joomla<br />
- # create a new joomla.conf file to configure the site<br />
- sudo nano /etc/apache2/sites-available/joomla.conf</div>
- </li>
- <li>Paste the following configuration into joomla.conf
- <p>Alias /joomla "/var/www/joomla/"<br />
- <Directory /var/www/joomla/><br />
- AllowOverride All<br />
- </Directory><directory joomla="" var="" www=""></directory></p>
- </li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to joomla.conf</li>
- <li>Continue with the following commands to enable the site and restart Apache:
- <div class="codeBlock"># enable the Joomla site and required PHP modules<br />
- sudo a2ensite joomla<br />
- sudo a2enmod rewrite<br />
- # set the owner of the new joomla directory to www-data<br />
- sudo chown -R www-data:www-data /var/www/joomla<br />
- # restart apache2 service<br />
- sudo systemctl restart apache2</div>
- </li>
- <li>Open a web browser and navigate to http://DNSorIP/joomla</li>
- <li>The Joomla! setup screen should be displayed</li>
- <li>Set the site title and create an administrative account login > Click the Next button</li>
- <li>Enter the database configuration as follows:
- <p>Database Type: MySQLi<br />
- Host Name: localhost<br />
- Username: joomla_rw<br />
- Password: J00mla!!<br />
- Database Name: joomla<br />
- Table Prefix: jmla_</p>
- </li>
- <li>Click the Next button</li>
- <li>On the Overview page click the Install button</li>
- <li>Review the configuration and click the Install button</li>
- <li>When the installation completes, copy the output configuration.php and run the following in the terminal window
- <div class="codeBlock">sudo nano /var/www/joomla/configuration.php</div>
- </li>
- <li>Paste the copied configuration text</li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to configuration.php</li>
- <li>Continue with deleting the installation directory by running the following command
- <div class="codeBlock">sudo rm /var/www/joomla/installation -r</div>
- </li>
- <li>Back in the web browser, click on the Site button</li>
- <li>Welcome to your very own, self-hosted Joomla! installation</li>
- </ol> </div>
- </div>
- </body>
- </html>
-
|