This is an old revision of the document!


Typo3 9 Installation

This guide will explain how to get up and running with Typo3 on LiteSpeed Web Server.

The following are required and should already be set up before proceeding:

  1. PHP extension
    • PDO
    • json
    • pcre >= 8.38
    • session
    • xml
    • filter
    • hash
    • mbstring
    • SPL
    • standard
    • fileinfo
    • gd
    • zip
    • zlib
    • openssl
    • intl
    • mysqli
  2. MySQL
    There are many different variations of MySQL and each variation and distro do things differently. There are many guides online to install MySQL for the specific distro where typo3 will be installed.
  1. Make sure .htaccess is enabled for the VHost typo3 will be installed on.
    1. Inside the LSWS WebAdmin Console, go to Configuration → Virtual Hosts and select the Virtual Host that will be used.
    2. Then go to General → HTAccess and click Edit.
      1. In Allow Override, check everything except for the None option and set .htaccess as the Access Name.
  2. Next download the Typo3 software and extract files into the Doc Root of the VHost.
    curl -L -o typo3_src.tgz get.typo3.org/9
    tar -zxvf typo3_src-9.*.tar.gz
    mv typo3_src-9.5.4/* $PATH_TO_Doc_Root
  3. Once the files are extracted, open a (command line || terminal), cd into the Doc Root and create a file called FIRST_INSTALL
  4. Using a web browser, visit the VHost via its URL and follow the on screen instructions to setup Typo3.

Now that Typo3 is all set up, you can visit the backend by adding /typo3/ to your web site's URL. be sure to check out our Typo3 Cache rule to speed it up even more!

vi .htaccess file under Doc Root from line 321, comment out following line

# Apache ≥ 2.3
<IfModule mod_authz_core.c>
    <If "%{REQUEST_URI} =~ m#(?i:/\.|/\x23.*\x23|/(?:ChangeLog|ToDo|Readme|License)(?:\.md|\.txt)?|/composer\.(?:json|lock)|/ext_conf_template\.txt|/ext_typoscript_constants\.txt|/ext_typoscript_setup\.txt|flexform[^.]*\.xml|locallang[^.]*\.(?:xml|xlf)|\.(?:bak|co?nf|cfg|ya?ml|ts|typoscript|tsconfig|dist|fla|in[ci]|log|sh|sql(?:\..*)?|sw[op]|git.*)|.*(?:~|rc))$#">
         Require all denied
    </If>
</IfModule>

and change to rewrite rule

# Apache ≥ 2.3
#<IfModule mod_authz_core.c>
#    <If "%{REQUEST_URI} =~ m#(?i:/\.|/\x23.*\x23|/(?:ChangeLog|ToDo|Readme|License)(?:\.md|\.txt)?|/composer\.(?:json|lock)|/ext_conf_template\.txt|/ext_typoscript_constants\.txt|/ext_typoscript_setup\.txt|flexform[^.]*\.xml|locallang[^.]*\.(?:xml|xlf)|\.(?:bak|co?nf|cfg|ya?ml|ts|typoscript|tsconfig|dist|fla|in[ci]|log|sh|sql(?:\..*)?|sw[op]|git.*)|.*(?:~|rc))$#">
#         Require all denied
#    </If>
#</IfModule>
RewriteCond %{REQUEST_URI} (?i:/\.|/\x23.*\x23|/(?:ChangeLog|ToDo|Readme|License)(?:\.md|\.txt)?|/composer\.(?:json|lock)|/ext_conf_template\.txt|/ext_typoscript_constants\.txt|/ext_typoscript_setup\.txt|flexform[^.]*\.xml|locallang[^.]*\.(?:xml|xlf)|\.(?:bak|co?nf|cfg|ya?ml|ts|typoscript|tsconfig|dist|fla|in[ci]|log|sh|sql(?:\..*)?|sw[op]|git.*)|.*(?:~|rc))
RewriteRule ^(.*) - [R=403,NC,L]
  • Admin
  • Last modified: 2019/02/26 21:01
  • by Eric Leu