Setup TYPO3
Setup TYPO3
This example installs TYPO3 13 LTS with Composer from inside the Devilbox PHP container and serves it through a standard Devilbox virtual host.
example typo3 documentation
Overview
The following configuration will be used:
| Project name | VirtualHost directory | Database | TLD_SUFFIX | Project URL |
|---|---|---|---|---|
| my-typo | /shared/httpd/my-typo | my_typo | loc | http://my-typo.loc br https://my-typo.loc |
[!NOTE] Inside the Devilbox PHP container, projects are always in
/shared/httpd/. On your host, projects are stored in./data/www/by default. This path can be changed viaenv-httpd-datadir.
Walk through
It will be ready in eight steps:
- Start Devilbox
- Enter the PHP container
- Create a new VirtualHost directory
- Install TYPO3 13 LTS via Composer
- Symlink the webroot directory
- Create the database and DNS record
- Create the
FIRST_INSTALLfile - Complete the guided web installation
1. Start Devilbox
Navigate to the Devilbox git directory and start the stack:
host> ./dvl.sh up2. Enter the PHP container
All project commands run inside the PHP container:
host> ./dvl.sh shell* enter-the-php-container * work-inside-the-php-container *
available-tools
3. Create new vhost directory
The vhost directory defines the name under which your project will be
available. <vhost dir>.TLD_SUFFIX becomes the final URL.
env-tld-suffix
4. Install TYPO3 13 LTS
Install the current TYPO3 LTS distribution with Composer:
[email protected] in /shared/httpd/my-typo $ composer create-project typo3/cms-base-distribution:^13 typo3How the directory structure looks after installation:
.└── typo3
1 directory, 0 files5. Symlink webroot
The web server expects every project document root in <vhost dir>/htdocs/.
TYPO3 keeps its entry point in public/, so symlink it to htdocs:
.├── typo3└── htdocs -> typo3/public
2 directories, 0 files6. Database and DNS record
Create the TYPO3 database from inside the container:
[email protected] in /shared/httpd/my-typo $ mysql -u root -h 127.0.0.1 -p -e 'CREATE DATABASE my_typo;'If Auto DNS is configured you can skip the hosts entry. Otherwise add this line to your host operating system’s hosts file:
127.0.0.1 my-typo.lochowto-add-project-hosts-entry-on-machowto-add-project-hosts-entry-on-winsetup-auto-dns
7. Create FIRST_INSTALL
TYPO3 starts the guided installer only when FIRST_INSTALL exists in the
document root:
8. Open your browser
Open http://my-typo.loc or https://my-typo.loc and follow the TYPO3 setup:
- Select the database driver and enter
rootas user, your database password,mysqlas host, and3306as port. - Select the
my_typodatabase. - Create the administrator user and site name.
- Finish the installation and create an empty starting page.
Next steps
Use bundled batteries
* devilbox-intranet-adminer * devilbox-intranet-phpmyadmin *
devilbox-intranet-phppgadmin * devilbox-intranet-phpredmin *
devilbox-intranet-phpmemcachedadmin
Enhance the Devilbox
* setup-valid-https * setup-auto-dns * configure-php-xdebug
Add services
custom-container-enable-blackfirecustom-container-enable-rabbitmqcustom-container-enable-solrcustom-container-enable-varnish