Introduction

TYPO3 is a free and open-source content management system (CMS) written in PHP. It is highly customizable and suitable for managing websites, intranets, and extranets. This guide will walk you through the process of installing TYPO3 CMS on Debian 12.

Prerequisites

Before you begin, ensure you have:

  1. A Debian 12 server or desktop system
  2. Root or sudo privileges

Step 1: Install LAMP Stack

TYPO3 requires a web server, PHP, and a database. Install the LAMP (Linux, Apache, MySQL, PHP) stack on Debian 12:

sudo apt update
sudo apt install -y apache2 mariadb-server php libapache2-mod-php php-mysql

Once installed, start the Apache web server and MariaDB service, and enable them to start on boot:

sudo systemctl start apache2
sudo systemctl enable apache2
sudo systemctl start mariadb
sudo systemctl enable mariadb

Step 2: Create MariaDB Database and User

Log in to the MariaDB shell as the root user:

sudo mariadb

Create a new database for TYPO3:

CREATE DATABASE typo3db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Create a new MariaDB user and grant privileges to the TYPO3 database:

CREATE USER 'typo3user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL ON typo3db.* TO 'typo3user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Step 3: Download TYPO3

Download the latest version of TYPO3 CMS from the official TYPO3 website or using wget:

wget https://get.typo3.org/11

Step 4: Extract TYPO3 Archive

Extract the TYPO3 archive to the document root directory:

sudo tar -zxvf typo3_src-*.tar.gz -C /var/www/html/

Rename the extracted directory for easier access:

sudo mv /var/www/html/typo3_src-* /var/www/html/typo3

Step 5: Configure Apache for TYPO3

Create a new Apache configuration file for TYPO3:

sudo nano /etc/apache2/sites-available/typo3.conf

Add the following configuration to the file:

Alias /typo3 /var/www/html/typo3

<Directory /var/www/html/typo3/>
    Options +FollowSymlinks
    AllowOverride All
    Require all granted
</Directory>

<Directory /var/www/html/typo3/>
    RewriteEngine on
    RewriteRule ^/typo3(?:/(.*))?$ /typo3/index.php [L]
</Directory>

Enable the TYPO3 site and the rewrite module, and restart Apache:

sudo a2ensite typo3.conf
sudo a2enmod rewrite
sudo systemctl restart apache2

Step 6: Complete TYPO3 Installation

Open a web browser and navigate to http://your_server_ip/typo3/install.php to start the TYPO3 installation wizard. Follow the on-screen instructions to complete the installation.

Step 7: Clean Up

After the installation is complete, remove the install.php file for security reasons:

sudo rm /var/www/html/typo3/install.php

Step 8: Access TYPO3 CMS

In your web browser, navigate to http://your_server_ip/typo3/ to access the TYPO3 CMS backend. Log in with the credentials you created during the installation process.

Conclusion

Congratulations! You have successfully installed TYPO3 CMS on Debian 12. You can now start building and managing your websites using TYPO3.

Was this answer helpful? 0 Users Found This Useful (0 Votes)