In this tutorial, we will explain How to install TYPO3 on CentOS. 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 CentOS

Step 1 – Install Apache, PHP, and MySQL

First, install the Epel repository:

yum -y install epel-release

Install Remi repository too:

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

After, enable PHP 7.2

yum-config-manager --enable remi-php72

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

yum -y install httpd mariadb mariadb-server php72  php php-zip php-intl php-gd php-json php-mysqli php-curl php-intl php-cli php-apcu php-soap php-xml php-zip php-mbstring freetype php-bcmath php-fileinfo ImageMagick

Now open php.ini file:

nano /etc/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 mariadb httpd

And enable them:

systemctl enable mariadb httpd

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 CentOS.

Enjoy.