How to install TYPO3 on Ubuntu 16.04

In this tutorial, we will install TYPO3 on Ubuntu 16.04, with Apache web server, MariaDB and PHP. TYPO3 is a completely free and open source Content Management System (CMS) written in PHP. This allows users to create websites even if they have no experience in web development. CMS TYPO3 is very easy to use and is an effective tool for small sites as well as for multilingual sites of large corporations, and this makes it an excellent alternative for the most popular CMS platforms such as WordPress, Joomla, Drupal, etc. Installing TYPO3 on Ubuntu 16.04 is quite a simple task, just follow the instructions below carefully.

1. System update

First of all, login to your Ubuntu VPS via SSH with superuser rights

ssh [email protected]_Address -p Port_number

and make sure all installed packages are up to date

apt-get update && apt-get upgrade

2. Install Apache web server

Run the following command to install the web server

apt-get install apache2

After the installation is complete, enable Apache to start automatically at system boot.

systemctl enable apache2

4. Install PHP

Since TYPO3 is a writer in PHP, we have to install PHP among some of the required PHP modules to run the CMS.

apt-get -y install php php-cli php-mysqli php-zip php-gd php-apcu php-xml php-ziplibfreetype6 imagemagick

5. Installing MySQL server and creating a database

TYPO3 needs a database to store its data, so we will install a MySQL database server. Run the following command

apt-get install mysql-server

After installing the database server, start the database server and enable it to start at boot time

systemctl start mysql
systemctl enable mysql

You can also run the “mysql_secure_installation” script to set the MySQL root password and secure server.

Then login to MySQL server as root user and create a new database and user to install TYPO3

mysql -u root -p

mysql> CREATE DATABASE typo3;
mysql> GRANT ALL PRIVILEGES ON typo3.* TO 'typo3user'@'localhost' IDENTIFIED BY 'PASSWORD';
mysql> quit

Replace “PASSWORD” with a strong password. It is recommended to use a combination of letters and numbers.

6. Download and install TYPO3

Go to the official TYPO3 website and download the latest version of the CMS:

wget -O

After the source package is loaded, unzip the archive to the document root on the server

unzip -d /var/www/html/

We will rename the newly created directory to something simpler

cd /var/www/html/
mv typo3_src-8.7.10/ typo3/

The reference contains the file “_.htaccess”. We have to rename the file for the .htaccess rules to work

cd typo3/
mv _.htaccess .htaccess

To proceed with the installation, create “FIRST_INSTALL”. The file name is case sensitive, but the file itself may be empty.


Set the correct property to the TYPO3 directory

chown -R www-data:www-data /var/www/html/typo3

7. Creating a virtual Apache host

In order to access TYPO3 with a domain name, you must create an Apache virtual host. Create a new file with the following content

nano /etc/apache2/sites-available/

    DocumentRoot /var/www/html/typo3
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all

Save the file and activate the virtual host


Restart the web server for the changes to take effect

systemctl restart apache2

That’s it, now you can access via a web browser and complete the TYPO3 installation.

Please disable your ad blocker or whitelist this site!

Related Posts