admin管理员组

文章数量:1289879

version: "3.7"

services:
  mysql:
    image: mysql:5.7
    container_name: mysql
    environment:
      MYSQL_ROOT_PASSWORD: rootpassword
      MYSQL_DATABASE: typo3
      MYSQL_USER: root
      MYSQL_PASSWORD: password
    volumes:
      - mysql-data:/var/lib/mysql
    ports:
      - "3308:3306"

  typo3:
    image: webdevops/typo3
    container_name: typo3
    environment:
      TYPO3_DB_HOST: mysql
      TYPO3_DB_PORT: 3306
      TYPO3_DB_NAME: typo3
      TYPO3_DB_USER: root
      TYPO3_DB_PASSWORD: password
    volumes:
      - typo3-data:/var/www/html
    ports:
      - "7070:80"
    depends_on:
      - mysql
    restart: always

volumes:
  mysql-data:
  typo3-data:

1.How can I correctly install TYPO3 headless using Composer in this setup?

2.How do I upgrade PHP to 8.2 in my Hetzner Cloud environment?

3.Once installed, how do I access the TYPO3 REST API for headless CMS usage?

What did you try and what were you expecting?

i tried to install headless using composer. but an error came up showing that php 8.2 is required. how install headless in PHP 7.5.2

version: "3.7"

services:
  mysql:
    image: mysql:5.7
    container_name: mysql
    environment:
      MYSQL_ROOT_PASSWORD: rootpassword
      MYSQL_DATABASE: typo3
      MYSQL_USER: root
      MYSQL_PASSWORD: password
    volumes:
      - mysql-data:/var/lib/mysql
    ports:
      - "3308:3306"

  typo3:
    image: webdevops/typo3
    container_name: typo3
    environment:
      TYPO3_DB_HOST: mysql
      TYPO3_DB_PORT: 3306
      TYPO3_DB_NAME: typo3
      TYPO3_DB_USER: root
      TYPO3_DB_PASSWORD: password
    volumes:
      - typo3-data:/var/www/html
    ports:
      - "7070:80"
    depends_on:
      - mysql
    restart: always

volumes:
  mysql-data:
  typo3-data:

1.How can I correctly install TYPO3 headless using Composer in this setup?

2.How do I upgrade PHP to 8.2 in my Hetzner Cloud environment?

3.Once installed, how do I access the TYPO3 REST API for headless CMS usage?

What did you try and what were you expecting?

i tried to install headless using composer. but an error came up showing that php 8.2 is required. how install headless in PHP 7.5.2

Share Improve this question asked Feb 20 at 7:06 Surya RSurya R 93 bronze badges 2
  • I suspect that Hetzner doesn't offer PHP 7.5.2 anymore as this PHP version is out of support. It would mean that you can't use the outdated version on the server anymore. In your local environment you're free though to install any version. – David Commented Feb 20 at 9:58
  • There is no PHP 7.5. Also you are using Docker so the host setup does not matter; your containers already contain PHP in the version you want. – Mathias Brodala Commented Feb 20 at 10:32
Add a comment  | 

1 Answer 1

Reset to default 0

Which version of TYPO3 are you trying to install?

The webdevops/typo3 docker image was last updated 5years ago, and it contains outdated and not supported PHP v7.

Sounds like you're using typo3 version from over 5 years ago together with ancient PHP and trying to instal newest TYPO3 Headless package (which requires php 8).

本文标签: restHow to Install TYPO3 Headless Using Composer on Hetzner Cloud with PHP 752Stack Overflow