How to Install Typo3 CMS 9.5.7 Version Using LEMP on CentOS 7.6
Installation of Typo3 CMS 9.5.7 version
Features:
It is secure and loads fast that performs at any scale
Integrate all the digital marketing tools you know
Create and deliver content across all digital channels
Requirements:
MariaDB 10.3
Nginx 1.17.0
PHP 7.2
PHP Modules:
Php php-gd php-pdo php-mysql php-intl php-simplexml php-mbstring php-mcrypt
Download Command:
wget --content-disposition get.typo3.org/9
Installation procedure:
Change the directory to Nginx Document root directory
[root@linuxhelp ~]# cd /usr/share/nginx/html
Create a directory named typo3 for Typo3 CMS
[root@linuxhelp html]# mkdir typo3
Change the directory to typo3 to download and install the typo3 cms
[root@linuxhelp html]# cd typo3
Download the typo3 CMS using the following command
[root@linuxhelp typo3]# wget --content-disposition get.typo3.org/9
--2019-06-16 03:05:43-- http://get.typo3.org/9
Resolving get.typo3.org (get.typo3.org)... 88.99.248.52, 136.243.44.172, 2a01:4f8:212:cb0::2:197, ...
Connecting to get.typo3.org (get.typo3.org)|88.99.248.52|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://get.typo3.org/9 [following]
--2019-06-16 03:05:44-- https://get.typo3.org/9
Connecting to get.typo3.org (get.typo3.org)|88.99.248.52|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://typo3.azureedge.net/typo3/9.5.7/typo3_src-9.5.7.tar.gz [following]
--2019-06-16 03:05:45-- https://typo3.azureedge.net/typo3/9.5.7/typo3_src-9.5.7.tar.gz
Resolving typo3.azureedge.net (typo3.azureedge.net)... 117.18.232.200, 2606:2800:147:120f:30c:1ba0:fc6:265a
Connecting to typo3.azureedge.net (typo3.azureedge.net)|117.18.232.200|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27275339 (26M) [application/octet-stream]
Saving to: ‘typo3_src-9.5.7.tar.gz’
100%[==================================================================================================>] 27,275,339 610KB/s in 27s
2019-06-16 03:06:12 (988 KB/s) - ‘typo3_src-9.5.7.tar.gz’ saved [27275339/27275339]
List the contents to view the download file of typo3 cms
[root@linuxhelp typo3]# ll
total 26640
-rw-r--r-- 1 root root 27275339 May 15 17:45 typo3_src-9.5.7.tar.gz
Extract the tar file of typo3 CMS
[root@linuxhelp typo3]# tar xvzf typo3_src-9.5.7.tar.gz
typo3_src-9.5.7/
typo3_src-9.5.7/composer.lock
typo3_src-9.5.7/index.php
typo3_src-9.5.7/INSTALL.md
typo3_src-9.5.7/LICENSE.txt
typo3_src-9.5.7/CONTRIBUTING.md
typo3_src-9.5.7/README.md
typo3_src-9.5.7/typo3/
typo3_src-9.5.7/typo3/install/
typo3_src-9.5.7/typo3/install/index.php
.
.
.
.
.
typo3_src-9.5.7/vendor/symfony/polyfill-mbstring/Resources/
typo3_src-9.5.7/vendor/symfony/polyfill-mbstring/Resources/unidata/
typo3_src-9.5.7/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
typo3_src-9.5.7/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php
typo3_src-9.5.7/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
typo3_src-9.5.7/vendor/symfony/polyfill-mbstring/composer.json
List the contents to view the extracted files of typo3 CMS
[root@linuxhelp typo3]# ll
total 26640
drwxr-xr-x 4 root wheel 169 May 15 17:44 typo3_src-9.5.7
-rw-r--r-- 1 root root 27275339 May 15 17:45 typo3_src-9.5.7.tar.gz
Rename the extracted directory to final
[root@linuxhelp typo3]# mv typo3_src-9.5.7 final
Change the directory to final
[root@linuxhelp typo3]# cd final/
Assign the writable permissions to the current working directory final
[root@linuxhelp final]# chmod -R 775 ./
Assign the Ownership permissions to the current working directory final
[root@linuxhelp final]# chown -R nginx. ./
Verify the assigned permissions and ownerships by listing the contents
[root@linuxhelp final]# ll
total 240
-rwxrwxr-x 1 nginx nginx 10747 May 15 17:11 composer.json
-rwxrwxr-x 1 nginx nginx 190302 May 15 17:11 composer.lock
-rwxrwxr-x 1 nginx nginx 1026 May 15 17:11 CONTRIBUTING.md
-rwxrwxr-x 1 nginx nginx 946 May 15 17:44 index.php
-rwxrwxr-x 1 nginx nginx 1434 May 15 17:11 INSTALL.md
-rwxrwxr-x 1 nginx nginx 18425 May 15 17:11 LICENSE.txt
-rwxrwxr-x 1 nginx nginx 6154 May 15 17:11 README.md
drwxrwxr-x 4 nginx nginx 71 May 15 17:44 typo3
drwxrwxr-x 14 nginx nginx 223 May 15 17:44 vendor
Change the directory to nginx Configuration file
[root@linuxhelp final]# cd /etc/nginx/conf.d/
Create a virtual host named typo3 for typo3 cms
[root@linuxhelp conf.d]# vim typo3.conf
server {
listen 80;
server_name www.linuxhelp1.com;
root /usr/share/nginx/html/typo3/final/;
index index.php index.html index.htm;
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
Modify the following changes in the php configuration file
[root@linuxhelp conf.d]# vim /etc/php.ini
max_input_vars=1500
max_execution_time=240
Test the configuration file of Nginx
[root@linuxhelp conf.d]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Restart the service of php-fpm
[root@linuxhelp conf.d]# systemctl restart php-fpm
Configure MariaDB for Typo3 CMS as follows:
[root@linuxhelp conf.d]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 19
Server version: 5.5.60-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database typo3 character set utf8mb4;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> use typo3;
Database changed
MariaDB [typo3]> grant all on typo3.* to user@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.12 sec)
MariaDB [typo3]> flush privileges;
Query OK, 0 rows affected (0.03 sec)
MariaDB [typo3]> exit
Bye
Restart the service of nginx
[root@linuxhelp conf.d]# systemctl restart nginx
Change the directory to typo3 cms document root directory
[root@linuxhelp conf.d]# cd /usr/share/nginx/html/typo3/final
Create an empty file named First_Install as it a requirement to start the installation
[root@linuxhelp final]# touch FIRST_INSTALL
Restart the service of both nginx and php-fpm.
[root@linuxhelp final]# systemctl restart nginx
[root@linuxhelp final]# systemctl restart php-fpm
Enter the servername in the virtual hosting in the url of the browser to start the installation of typo3 CMs.