Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Revise installation chapter #306

Merged
merged 3 commits into from
Dec 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 93 additions & 76 deletions Documentation/Installation/Install.rst
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
.. include:: /Includes.rst.txt
.. include:: /Includes.rst.txt

.. index:: installation, deployment, requirements
.. index:: installation, deployment, requirements

.. _install:
.. _install:

================
Installing TYPO3
================

Welcome to the TYPO3 installation guide. This guide covers each of the steps required
to install TYPO3 using Composer.
This chapter covers each of the steps required to install TYPO3 using Composer.

For more information on how to deploy TYPO3 to a live environment, visit the :ref:`deploying TYPO3 <DeployTYPO3>` chapter.
For more information on how to deploy TYPO3 to a live environment, visit the
:ref:`deploying TYPO3 <DeployTYPO3>` chapter.

Pre-installation Checklist
.. contents::
:local:


Pre-installation checklist
==========================

- Command line (CLI) access with the ability to create directories and symbolic links.
- Access to `Composer <https://getcomposer.org>`__ via the CLI (for local development)
- Access to the web server's root directory
- Database with appropriate credentials
* Command line (CLI) access with the ability to create directories and
symbolic links.
* Access to `Composer <https://getcomposer.org>`__ via the CLI (for local
development)
* Access to the web server's root directory
* Database with appropriate credentials

Execute Composer Create-Project
===============================

The following script will install TYPO3 v12 which is the latest release of the CMS. If you wish to
install the long term support (LTS) release of TYPO3, visit the :ref:`TYPO3 v11
Installation guide <t3start11:install>`.
Create the project with Composer
================================

The following command will install TYPO3 v12. If you want to install another
version of TYPO3 find documentation by using the version selector on the left side of this page.

At the root level of your web server, execute the following command:

Expand Down Expand Up @@ -55,23 +61,24 @@ At the root level of your web server, execute the following command:
cd example-project-directory

# Tell DDEV to create a new project of type "typo3"
# 'docroot' MUST be 'public' PHP 8.1 is required by TYPO3 v12
# 'docroot' MUST be set to 'public'
# At least PHP 8.1 is required by TYPO3 v12. Adapt the PHP version to your needs.
ddev config --project-type=typo3 --docroot=public --create-docroot --php-version 8.1

linawolf marked this conversation as resolved.
Show resolved Hide resolved
# Start the server
ddev start

# Fetch a basic TYPO3 installation and its' dependencies
# Fetch a basic TYPO3 installation and its dependencies
ddev composer create "typo3/cms-base-distribution:^12"


This command pulls down the latest release of TYPO3 and places it in the
:file:`example-project-directory`.
This command pulls down the latest release of the given TYPO3 version and places
it in the :file:`example-project-directory/`.
sarahmccarthy123 marked this conversation as resolved.
Show resolved Hide resolved

After this command has finished running, :file:`example-project-directory`
will contain the following structure:
After this command has finished running, the :file:`example-project-directory/`
folder contains the following structure:

.. code-block:: none
.. code-block:: text

.
├── .gitignore
Expand All @@ -91,9 +98,9 @@ Setup TYPO3 in the console
--------------------------

.. versionadded:: 12.1
Starting with TYPO3 v12.1 a new :ref:`CLI command
<t3coreapi:symfony-console-commands>` `setup` is introduced as
an alternative to the existing GUI-based web installer.
A :ref:`CLI command <t3coreapi:symfony-console-commands>` `setup` has
been introduced as an alternative to the existing
:abbr:`GUI (Graphical User Interface)`-based web installer.

Interactive / guided setup (questions/answers):

Expand Down Expand Up @@ -126,122 +133,132 @@ Interactive / guided setup (questions/answers):
Or use the GUI installer in the browser
---------------------------------------

Create an empty file called `FIRST_INSTALL` in the `/public` directory:
Create an empty file called `FIRST_INSTALL` in the `public/` directory:

.. tabs::
.. tabs::

.. group-tab:: bash
.. group-tab:: bash

.. code-block:: bash
.. code-block:: bash

touch example-project-directory/public/FIRST_INSTALL
touch example-project-directory/public/FIRST_INSTALL

.. group-tab:: powershell
.. group-tab:: powershell

.. code-block:: powershell
.. code-block:: powershell

echo $null >> public/FIRST_INSTALL

echo $null >> public/FIRST_INSTALL
.. group-tab:: ddev

.. group-tab:: ddev
.. code-block:: bash

.. code-block:: bash
ddev exec touch public/FIRST_INSTALL

ddev exec touch public/FIRST_INSTALL
.. code-block:: text

.. code-block:: none
.
├── .gitignore
├── composer.json
├── composer.lock
├── LICENSE
├── public
── FIRST_INSTALL
── FIRST_INSTALL
├── README.md
├── var
└── vendor

Access TYPO3 via a web browser
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

After you have configured your web server to point at the `public` directory of your project,
TYPO3 can be accessed via a web browser. When accessing a new site for the first time, TYPO3 automatically
redirects all requests to :samp:`/typo3/install.php` to complete the installation process.

.. tip::
After you have configured your web server to point at the `public` directory of
your project, TYPO3 can be accessed via a web browser. When accessing a new site
for the first time, TYPO3 automatically redirects all requests to
:samp:`/typo3/install.php` to complete the installation process.

When accessing the page via HTTPS, a "Privacy error" or similar warning is likely to occur.
In a local environment it is safe to ignore this warning by forcing the browser to ignore similar
exceptions for this domain.
.. tip::
When accessing the page via HTTPS, a "Privacy error" or similar warning is
likely to occur. In a local environment it is safe to ignore this warning by
forcing the browser to ignore similar exceptions for this domain.

The warning is due to the fact that self-signed certificates are being used.
The warning is due to the fact that self-signed certificates are being used.

If there is a `trustedHostsPattern` error on initial access, accessing TYPO3 without HTTPS (`http://`) is also an option.
If there is a :ref:`trustedHostsPattern <t3coreapi:typo3ConfVars_sys_trustedHostsPattern>`
error on initial access, accessing TYPO3 without HTTPS (`http://`) is also
an option.


Scan Environment
Scan environment
~~~~~~~~~~~~~~~~

TYPO3 will now scan the host environment. During the scan TYPO3 will check the host system for the following:
TYPO3 will now scan the host environment. During the scan TYPO3 will check the
host system for the following:

- Minimum required version of PHP is installed.
- Required PHP extensions are loaded.
- php.ini is configured.
- TYPO3 is able to create and delete files and directories within the installation's root directory.
* Minimum required version of PHP is installed.
* Required PHP extensions are loaded.
* :file:`php.ini` is configured.
* TYPO3 is able to create and delete files and directories within the
installation's root directory.

If no issues are detected, the installation process can continue.

In the event that certain criteria are not met, TYPO3 will display a list of issues it has detected accompanied by a resolution for each issue.
In the event that certain criteria are not met, TYPO3 will display a list of
issues it has detected accompanied by a resolution for each issue.

Once changes have been made, TYPO3 can re-scan the host environment by reloading the page `https://example-project-site.local/typo3/install.php`.
Once changes have been made, TYPO3 can re-scan the host environment by reloading
the page :samp:`https://example-project-site.local/typo3/install.php`.

.. include:: ../Images/AutomaticScreenshots/QuickInstall/Step1SystemEnvironment.rst.txt
.. include:: ../Images/AutomaticScreenshots/QuickInstall/Step1SystemEnvironment.rst.txt

Select a Database
Select a database
~~~~~~~~~~~~~~~~~

Select a database connection driver and enter the credentials for the database.

.. include:: ../Images/AutomaticScreenshots/QuickInstall/Step2DatabaseConnection.rst.txt
.. include:: ../Images/AutomaticScreenshots/QuickInstall/Step2DatabaseConnection.rst.txt

TYPO3 can either connect to an existing empty database or create a new one.

The list of databases available is dependent on which database drivers are installed on the host.
The list of databases available is dependent on which database drivers are
installed on the host.

For example, if an instance of TYPO3 is intended to be used with a MySQL database then the PHP extension 'pdo_mysql' is required.
Once it's installed, :guilabel:`MySQL Database` will be available as an option.
For example, if an instance of TYPO3 is intended to be used with a MySQL/MariaDB
database then the PHP extension "pdo_mysql" is required. Once it is installed,
:guilabel:`MySQL Database` will be available as an option.

.. include:: ../Images/AutomaticScreenshots/QuickInstall/Step3ChooseDb.rst.txt
.. include:: ../Images/AutomaticScreenshots/QuickInstall/Step3ChooseDb.rst.txt

Create Administrative User & Set Site Name
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Create administrative user & set site name
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

An administrator account needs to be created to gain access to TYPO3's backend.

An email address for this user can also be specified and a name can be given.

.. include:: ../Images/AutomaticScreenshots/QuickInstall/Step4AdminUserSitename.rst.txt
.. include:: ../Images/AutomaticScreenshots/QuickInstall/Step4AdminUserSitename.rst.txt

.. note::
The password must comply with the configured
:ref:`password policy <t3coreapi:password-policies>`.

Initialise
-----------
Initialize
----------

TYPO3 offers two options for initialisation: creating an empty starting page or
it can go directly to the backend administrative interface.
Beginners should select the first option and allow TYPO3 to create an empty starting page.
TYPO3 offers two options for initialization: creating an empty starting page or
it can go directly to the backend administrative interface. Beginners should
select the first option and allow TYPO3 to create an empty starting page.
linawolf marked this conversation as resolved.
Show resolved Hide resolved
This will also generate a site configuration file.

.. include:: ../Images/AutomaticScreenshots/QuickInstall/Step5LastStep.rst.txt
.. include:: ../Images/AutomaticScreenshots/QuickInstall/Step5LastStep.rst.txt

Next Steps
Next steps
----------

Now that installation is complete, TYPO3 can be :ref:`configured <setup>`.
Now that the installation is complete, TYPO3 can be :ref:`configured <setup>`.

Using DDEV
----------

We also provide a step-by-step tutorial on how to :ref:`Install TYPO3 using DDEV <installation-ddev-tutorial>`.
A step-by-step tutorial is available on how to
:ref:`Install TYPO3 using DDEV <installation-ddev-tutorial>`.
The tutorial also includes a video.
Loading