In this tutorial, we will explain How to install TYPO3 on Ubuntu. TYPO3 is a free and open-source Web content management system written in PHP. It is released under the GNU General Public License. It can run on several web servers, such as Apache or IIS, on top of many operating systems, among them Linux, Microsoft Windows, FreeBSD, macOS, and OS/2.

Prerequisites

You will need:

  • VPS running Ubuntu

Step 1 – Install Apache, PHP, and MySQL

Apache, PHP, and MySQL are needed to install TYPO3. You can install all of them by running this command:

tasksel

Go to LAMP Server hit Space to select and hit Enter to install:

TYPO3 requires some extensions of PHP. You can install all of them by running this command:

apt-get install php-zip php-intl php-gd php-json php-mysql php-curl php-intl php-cli php-apcu php-soap php-xml php-zip php-mbstring php-bcmath php-common

Now open php.ini file:

nano /etc/php/7.2/apache2/php.ini

Change max_execution_time=30 to max_execution_time=240

And uncomment max_input_vars=1000 and change it to max_input_vars=1500

After start MariaDB and Apache:

systemctl start mysql apache2

And enable them:

systemctl enable mysql apache2

Step 2 – Create a database

You will need to create a database for TYPO3. Run this command to log in MySQL:

mysql -u root -p

After, run these commands to create a database:

CREATE DATABASE typo3 CHARACTER SET utf8 COLLATE utf8_general_ci;

CREATE USER 'typo3user'@'localhost' IDENTIFIED BY 'password';

GRANT ALL PRIVILEGES ON typo3.* TO 'typo3user'@'localhost';

FLUSH PRIVILEGES;

exit

Step 3 – Install TYPO3

Before installing, download the TYPO3 file. First, switch to a web directory:

cd /var/www/html

Download the TYPO3 file:

wget --content-disposition get.typo3.org/9

Extract the TYPO3 file:

tar -zxvf typo3_*.tar.gz

Rename extracted directory to typo3:

mv typo3*/ typo3/

After run FIRST_INSTALL to install TYPO3:

touch /var/www/html/typo3/FIRST_INSTALL

And set apache permissions to TYPO3 file:

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

Step 4 – Finish install

Now, open any browser and go to http://youripaddress/typo3/. And click on No problems detected, continue with the installation button.

Complete this step by using the created database.

Select an database:

Now create an administrative user:

Open the TYPO3 Backend:

Now log in to TYPO3:

Conclusion

You have successfully installed TYPO3 on Ubuntu.

Enjoy.