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.
Prerequisites
The following are required and should already be set up before proceeding:
LSPHP72 or above https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:configuring-lsws-for-php#step_1install_lsphp_through_repositories
PHP extension
PDO,json,pcre >= 8.38,session,xml,filter,hash,mbstring,SPL,standard,fileinfo,gd,zip,zlib,openssl,intl,mysqli
A LSWS Virtual Host https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:config#virtual_hosting
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.
Step by Step Instructions
- Make sure .htaccess is enabled for the VHost typo3 will be installed on.
- Inside the LSWS WebAdmin Console, go to Configuration → Virtual Hosts and select the Virtual Host that will be used.
- Then go to General → HTAccess and click Edit.
- In Allow Override, check everything except for the None option and set .htaccess as the Access Name.
- 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
- Once the files are extracted, open a (command line || terminal), cd into the Doc Root and create a file called
FIRST_INSTALL
- 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!
Compatibility Issue
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]