TYPO3 is a free and open-source content management system (CMS) with enterprise-level features. It offers support for multisite, multilingual installations, strong security, high performance, and can run on various platforms. With TYPO3, you can build flexible and reliable websites. It's backed by an active professional community, with a customizable and extensible architecture.
In this guide, you'll learn how to install TYPO3 on an Ubuntu 24.04 server using LAMP Stack (Linux, Apache, MySQL/MariaDB, and PHP), Composer, and GraphicsMagick.
Prerequisites
Before you begin, ensure you have:
- Ubuntu 24.04 server.
- Non-root user with administrative privileges.
- Domain name pointed to the server's IP address.
Installing Dependencies
TYPO3 is a PHP-based CMS and supports databases like MySQL/MariaDB and PostgreSQL. In this section, you'll install the dependencies for TYPO3, including LAMP Stack, Composer for PHP dependency management, and GraphicsMagick for image processing.
Step 1: Update Ubuntu Package Index
Run the following command to update the Ubuntu package index:
sudo apt update
Step 2: Install Dependency Packages
Install the required dependencies with the following command:
sudo apt install apache2 mariadb-server composer graphicsmagick php php-common php-mysql libapache2-mod-php php-gd php-curl php-json php-xmlrpc php-intl php-gmagick php-bcmath php-zip php-apcu php-mbstring php-fileinfo php-xml php-soap
Type Y to proceed with the installation.
Step 3: Verify Service Status
Once the installation is complete, verify the status of Apache and MariaDB services:
sudo systemctl is-enabled apache2
sudo systemctl status apache2
sudo systemctl is-enabled mariadb
sudo systemctl status mariadb
Ensure the services are 'enabled' and 'active (running)'.
Step 4: Check PHP, Composer, and GraphicsMagick Versions
php -v
sudo -u www-data composer --version
gm version
On Ubuntu 24.04, the default PHP version is 8.3, and Composer is 2.7.1. GraphicsMagick version 1.3 should be installed.
Configuring PHP
To install TYPO3, modify the default configuration of the php.ini
file. Edit the php.ini
file for both Apache and PHP CLI:
sudo nano /etc/php/8.3/apache2/php.ini
sudo nano /etc/php/8.3/cli/php.ini
Change the following configurations to suit your server environment:
date.timezone = Europe/Amsterdam
memory_limit = 512M
max_execution_time = 240
max_input_vars = 1500
post_max_size = 50M
upload_max_filesize = 50M
Save and exit the editor.
Step 5: Restart Apache Service
Run the following command to apply the changes:
sudo systemctl restart apache2
Configuring MariaDB Server
Step 1: Secure MariaDB Installation
Run the following command to secure the MariaDB installation:
sudo mariadb-secure-installation
Follow the prompts, set a root password, and accept the default security settings.
Step 2: Create a New Database and User
Log in to MariaDB:
sudo mariadb -u root -p
Run the following commands to create a new database and user:
CREATE DATABASE typo3db;
GRANT ALL PRIVILEGES ON typo3db.* TO 'typo3'@'localhost' IDENTIFIED BY 'Typo3Password';
FLUSH PRIVILEGES;
Check user privileges:
SHOW GRANTS FOR 'typo3'@'localhost';
Exit MariaDB with the quit
command.
Downloading TYPO3 via Composer
Step 1: Prepare Installation Directory
Create directories for TYPO3 cache, configuration, and installation:
sudo mkdir -p /var/www/{.cache,.config,typo3}
Change directory ownership to the www-data
user and grant read-write access:
via emka.web.id
0 comments:
Post a Comment