Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install TYPO3 on Ubuntu 22.04

Install Apache, PHP and MySQL, then download TYPO3 and finish the setup in the browser.

CMS and Apps2 min read12 screenshots

Step 1: Install Apache

sudo apt install apache2
Installing Apache

Check that it runs:

sudo systemctl status apache2
Apache service status

Start it and enable it at boot:

sudo systemctl start apache2 && sudo systemctl enable apache2
Enabling Apache

Step 2: Install PHP

sudo apt install php libapache2-mod-php php-cli php-common php-gmp php-curl php-mysql php-json php-intl php-mbstring php-xmlrpc php-gd php-xml php-zip
Installing PHP and its modules
php -v
The PHP version
Note: TYPO3 also needs a higher max_execution_time and memory_limit. Edit /etc/php/8.1/apache2/php.ini (the folder name follows your PHP version) and set max_execution_time = 240, memory_limit = 256M and max_input_vars = 1500, then restart Apache.

Step 3: Install MySQL

sudo apt install mysql-server
Installing MySQL
sudo systemctl status mysql
MySQL service status
sudo systemctl enable mysql.service
Enabling MySQL

Create the database and a user:

sudo mysql
CREATE DATABASE typo3_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'typo3_user'@'localhost' IDENTIFIED BY 'StrongPassword';
GRANT ALL PRIVILEGES ON typo3_db.* TO 'typo3_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Step 4: Download TYPO3

wget --content-disposition https://get.typo3.org/12.4.19
Downloading TYPO3

Step 5: Extract it

sudo tar -xvzf typo3_src-12.4.19.tar.gz -C /var/www/html
Extracting TYPO3
  • -x extracts the archive.
  • -v lists the files while it works.
  • -z handles the gzip compression.
  • -f names the archive file.
  • -C sets the target folder.

Step 6: Prepare the web root

cd /var/www/html
sudo ln -s typo3_src-12.4.19 typo3_src
sudo ln -s typo3_src/index.php index.php
sudo ln -s typo3_src/typo3 typo3
sudo touch FIRST_INSTALL
sudo chown -R www-data:www-data /var/www/html

The FIRST_INSTALL file unlocks the installer.

Step 7: Finish in the browser

Open http://your-server-ip/. The TYPO3 installer checks the system, asks for the database details, then asks you to create the admin account.

The TYPO3 installer in the browser
TYPO3 installing

When it is done, log in at http://your-server-ip/typo3.

Quick recap

  • Install Apache, PHP and MySQL.
  • Download and extract TYPO3, add the symlinks and FIRST_INSTALL.
  • Finish the installer in the browser.