This example will use composer to install TYPO3 from within the Devilbox PHP container.

Using composer requires the underlying file system to support symlinks. If you use Docker Toolbox you need to explicitly allow/enable this. See below for instructions:

After completing the below listed steps, you will have a working TYPO3 setup ready to be served via http and https.

Table of Contents

The following configuration will be used:

It will be ready in eight simple steps:

Enter the PHP container Create a new VirtualHost directory Install TYPO3 via composer Symlink webroot directory Setup DNS record Create FIRST_INSTALL file Open your browser Step through guided web installation

2. Create new vhost directory¶ The vhost directory defines the name under which your project will be available.

( <vhost dir>.TLD_SUFFIX will be the final URL ). devilbox@php-7.0.20 in /shared/httpd $ mkdir my-typo See also TLD_SUFFIX

3. Install TYPO3¶ Navigate into your newly created vhost directory and install TYPO3 with composer . devilbox@php-7.0.20 in /shared/httpd $ cd my-typo devilbox@php-7.0.20 in /shared/httpd/my-typo $ composer create-project typo3/cms-base-distribution typo3 How does the directory structure look after installation: devilbox@php-7.0.20 in /shared/httpd/my-typo $ tree -L 1 . └── typo3 1 directory, 0 files

4. Symlink webroot¶ Symlinking the actual webroot directory to htdocs is important. The web server expects every project’s document root to be in <vhost dir>/htdocs/ . This is the path where it will serve the files. This is also the path where your frameworks entrypoint (usually index.php ) should be found. Some frameworks however provide its actual content in nested directories of unknown levels. This would be impossible to figure out by the web server, so you manually have to symlink it back to its expected path. devilbox@php-7.0.20 in /shared/httpd/my-typo $ ln -s typo3/public htdocs How does the directory structure look after symlinking: devilbox@php-7.0.20 in /shared/httpd/my-typo $ tree -L 1 . ├── typo3 └── htdocs -> typo3/public 2 directories, 0 files As you can see from the above directory structure, htdocs is available in its expected path and points to the frameworks entrypoint. Important When using Docker Toolbox, you need to explicitly allow the usage of symlinks. See below for instructions: Docker Toolbox and Symlinks

6. Create FIRST_INSTALL file¶ To continue installing via the guided web install, you need to create a file called FIRST_INSTALL in the document root. devilbox@php-7.0.20 in /shared/httpd/my-typo $ touch htdocs/FIRST_INSTALL