GNU/Linux >> Tutoriels Linux >  >> Debian

Installer TYPO3 CMS sur Debian 9

TYPO3 est un CMS open source puissant, écrit principalement en PHP. Il est souvent déployé avec Apache ou Nginx, PHP et MySQL/MariaDB. Il convient aussi bien aux petits sites qu’aux portails d’entreprise multilingues.

Prérequis

  • Debian 9 installé.
  • Accès root ou sudo.
  • Une adresse IP statique.
  • Un nom de domaine ou un accès via l’IP du serveur.

1. Préparer le serveur

apt update
apt upgrade
hostnamectl set-hostname typo
apt install wget bash-completion zip unzip imagemagick

2. Installer Apache et PHP

apt install apache2 libapache2-mod-php7.0 php7.0 php7.0-zip php7.0-gd php7.0-xml php7.0-json php7.0-opcache php-imagick php7.0-curl php7.0-mbstring php7.0-bcmath php7.0-gmp

3. Configurer le pare-feu

ufw allow WWW
ufw allow 443/tcp

Si vous utilisez iptables, autorisez aussi les ports 80 et 443.

4. Configurer Apache et PHP

Activez les modules Apache nécessaires, puis configurez les règles de réécriture dans les hôtes virtuels HTTP et HTTPS.

a2enmod rewrite deflate headers ssl
a2ensite default-ssl.conf
systemctl restart apache2

Dans le fichier PHP, ajustez les valeurs suivantes :

file_uploads = On
memory_limit = 128 M
upload_max_file_size = 64M
max_execution_time = 240
max_input_vars = 1500
date.timezone = Europe/Paris

Activez OPCache, puis redémarrez Apache.

phpenmod opcache
systemctl restart apache2

5. Installer MariaDB

apt install mariadb-server php7.0-mysql mariadb-client
mysql_secure_installation

Créez la base et l’utilisateur TYPO3.

mysql -u root -p
CREATE DATABASE typo;
GRANT ALL PRIVILEGES ON typo.* TO 'typo_user' IDENTIFIED BY 'mot_de_passe';
FLUSH PRIVILEGES;
EXIT;

6. Installer TYPO3

cd /var/www/html
wget --content-disposition https://get.typo3.org/current/zip
unzip typo3_src-*.zip
cp -rf typo3_src-*/* /var/www/html/
touch /var/www/html/FIRST_INSTALL
chown -R www-data:www-data /var/www/html/

7. Finaliser l’installation

Ouvrez https://votre-domaine.fr. L’installateur vérifie l’environnement. Sélectionnez ensuite une connexion MySQL manuelle, utilisez la base créée, puis définissez le compte administrateur.

Une fois l’installation terminée, accédez au backend via https://votre-domaine.fr/typo3/index.php. Installez une distribution préconfigurée, puis forcez HTTPS via les règles de réécriture Apache ou .htaccess.

Debian
  1. Installer Redis Server sur Debian 11

  2. Comment installer TYPO3 sur Debian 9

  3. Comment installer MySQL Server sur Debian 9

  4. Installer Nextcloud 14 sur Debian 9

  5. Installer Odoo 12 sur Debian 9

Installer et sécuriser MySQL 8 sur Debian 10

Installer Todoman sur Debian 11 Server

Installer FastPanel sur Debian 11 en quelques commandes

Installer I2P sur un serveur Debian

Comment installer VNC sur Debian 10

Installer un serveur VNC sur Debian 11 Bullseye