:navigation-title: Setup .. include:: /Includes.rst.txt .. _typo3-setup: ================================= TYPO3 setup on first installation ================================= You can set up TYPO3 either via a console command or by using the web-based Install Tool. .. contents:: :local: .. _typo3-setup-console: Set up TYPO3 using the console =============================== To perform an interactive guided setup, run: .. code-block:: bash # Run TYPO3 CLI setup (database credentials are pre-filled) ddev typo3 setup --server-type=other --driver=mysqli --host=db --port=3306 --dbname=db --username=db --password=db When prompted, provide the following answers to match the default DDEV configuration: .. code-block:: text Admin username (user will be "system maintainer") ? j.doe Admin user and installer password ? Admin user email ? j.doe@example.org Give your project a name [default: New TYPO3 Project] ? My Project Create a basic site? Please enter a URL [default: no] https://my-project.ddev.site ✓ Congratulations - TYPO3 Setup is done. .. _install-access-typo3-via-a-web-browser: Set up TYPO3 using the web installer (1-2-3 install tool) ========================================================= Alternatively, you can use the web-based Install Tool to set up TYPO3. 1. Create a file named :file:`FIRST_INSTALL` in your webroot: .. code-block:: bash ddev exec touch public/FIRST_INSTALL 2. Open the TYPO3 installer in your browser: .. code-block:: bash ddev launch /typo3/install.php 3. After completing the setup, access the TYPO3 backend: .. code-block:: bash ddev launch /typo3 Log in using the credentials you just created during the setup process. .. _typo3-setup-application context: Set the application context for local development ================================================== After completing the setup, TYPO3 will run in the "Production" application context by default. For local development, it is recommended to switch to the "Development/DDEV" context for better error reporting, debugging features, and developer-friendly features. Edit your :file:`.ddev/config.yaml` and add: .. code-block:: yaml :caption: .ddev/config.yaml web_environment: - TYPO3_CONTEXT=Development/DDEV Restart DDEV to apply the changes: .. code-block:: bash ddev restart .. _typo3-setup-next: Next steps: Create a basic website =================================== If you installed the `Default theme `_ and chose to create a basic site during installation, open the frontend and have a look at the basic website in a browser of your choice: .. code-block:: bash ddev launch You should see a default website like the following: .. figure:: /Images/ManualScreenshots/Theme/NewSite.png :alt: Frontend screenshot of a website using the default theme "Camino" with text "Welcome to your default website" :zoom: lightbox Frontend of an empty website using the default theme "Camino" Access the TYPO3 backend: .. code-block:: bash ddev launch /typo3 Log in using the credentials you just created during the setup process. Navigate to the :guilabel:`Content > Layout` module. You should see something like the following: .. figure:: /Images/ManualScreenshots/Theme/NewSiteBackend.png :alt: Backend screenshot of a freshly installed TYPO3 installation, demonstrating the Camino theme with its content areas in the "Content > Layout" module :zoom: lightbox Backend of the same website, viewed in the :guilabel:`Content > Layout` module You can customize the example theme using the `Site settings `_ or create new `Sub pages `_ and `Creating content `_. .. rubric:: Trouble shooting: If there is an error message instead, try clearing the cache: .. code-block:: bash ddev typo3 cache:flush -v If you can still see no default website, log into the backend and continue to `create a root page manually `_ if none was created automatically.