Installing TYPO3 on Hosting: Complete Guide
Installing TYPO3 on Hosting: Complete Guide
TYPO3 is an enterprise content management system that is perfectly suited for complex websites and portals. In this guide, you will learn how to install TYPO3 via Composer on Theory7 shared hosting.
Why Choose TYPO3
TYPO3 stands out due to:
- Enterprise-level scalability
- Extensive multilingual support
- Advanced rights management
- Strong community in the Netherlands and Europe
- Long-term support (LTS)
- Excellent security
TYPO3 is used by governments, universities, and large companies.
System Requirements
Check if your hosting meets the requirements.
PHP Requirements
TYPO3 13 requires:
- PHP 8.2, 8.3, or 8.4
- Required extensions:
- gd or ImageMagick
- curl
- zip
- xml
- mbstring
- json
- session
Database Requirements
- MySQL 8.0 or higher
- MariaDB 10.3 or higher
- PostgreSQL 10 or higher (alternative)
Server Requirements
- At least 256MB PHP memory (512MB+ recommended)
- mod_rewrite for clean URLs
- Composer for installation
- SSH access
At Theory7 hosting, all requirements are available by default.
Activating SSH Access
Installing TYPO3 requires SSH.
Setting Up SSH
- Log in to DirectAdmin
- Go to Account Manager and then SSH Keys
- Generate or upload your SSH key
- Activate SSH access
See also: Activate SSH Access
Connecting
ssh username@yourdomain.nl
Installing TYPO3 via Composer
The recommended installation method.
Creating a Project
# Go to your domain folder
cd ~/domains/yourdomain.nl
# Create new TYPO3 project
composer create-project typo3/cms-base-distribution myproject
# This creates a folder 'myproject' with TYPO3
Verifying Installation
cd myproject
ls -la
# You should see: public/, var/, vendor/, composer.json, etc.
Configuring Document Root
TYPO3's public folder must be the webroot.
Symlink Method (Recommended)
cd ~/domains/yourdomain.nl
# Backup existing public_html
mv public_html public_html_backup
# Symlink to TYPO3 public
ln -s myproject/public public_html
Alternative via DirectAdmin
- Go to DirectAdmin
- Open Domain Setup
- Change document root to `myproject/public`
Creating a Database
TYPO3 needs a database.
Creating a Database in DirectAdmin
- Go to Account Manager and then MySQL Management
- Click on Create new Database
- Fill in:
- Database name
- Username
- Strong password
- Note all details for the installation wizard
Running the Installation Wizard
Now you can start the web-based installation.
Opening the Wizard
- Open your browser
- Go to `https://yourdomain.nl`
- You will be redirected to the installation wizard
Step 1: System Check
The wizard automatically checks:
- PHP version
- Required extensions
- File permissions
- Memory limit
Resolve any issues before proceeding.
Step 2: Configure Database
Fill in the database details:
- Database host: localhost
- Database port: 3306
- Database name: your_database
- Database username: your_user
- Database password: your_password
Click on Continue.
Step 3: Initial Data
Choose what you want to install:
- Start empty: No pre-set content
- Introduction Package: Demo site with examples
For a new site, you usually choose to start empty.
Step 4: Create Administrator
Create the admin account:
- Username: Choose a secure name (not "admin")
- Password: At least 12 characters, strong
- Email: Your email address
Step 5: Complete Installation
TYPO3 is now configuring the database and the system. This may take a few minutes.
Configuring the Backend
After installation, you can set up the backend.
Opening the Backend
- Go to `https://yourdomain.nl/typo3`
- Log in with your admin credentials
- You will enter the TYPO3 backend
Initial Configuration
- Go to Settings in the left navigation
- Click on Configure Installation-Wide Options
- Check and adjust:
- Site name
- Default language
- Email settings
Site Configuration
- Go to Sites
- Click on + Create new site configuration
- Configure:
- Base URL
- Language settings
- Error handling
Installing Extensions
TYPO3 can be extended with extensions.
Via Extension Manager
- Go to Admin Tools and then Extensions
- Search for the desired extension
- Click on the installation icon
- Follow the configuration wizard if necessary
Via Composer (Recommended)
cd ~/domains/yourdomain.nl/myproject
# Install extension
composer require vendor/extension-name
# For example:
composer require georgringer/news
composer require in2code/powermail
Then activate in the Extension Manager.
Production Optimization
Optimize TYPO3 for production.
Configuring Cache
In `config/system/settings.php`:
return [
'SYS' => [
'caching' => [
'cacheConfigurations' => [
'hash' => [
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\FileBackend',
],
],
],
],
];
Setting Up Scheduler
- Go to Admin Tools and then Scheduler
- Configure tasks such as clearing cache
- Set cron job via DirectAdmin:
*/15* * * * cd /path/to/myproject && vendor/bin/typo3 scheduler:run
Common Issues
Installation Wizard Not Visible
- Check the document root
- Check if `public/index.php` exists
- Check the error logs
Permission Denied Errors
chmod -R 775 var
chmod -R 775 public/typo3temp
chmod -R 775 public/fileadmin
Database Connection Failed
- Check the database details
- Test the connection via phpMyAdmin
- Check if the database exists
Security Best Practices
Secure your TYPO3 installation:
- Use strong admin passwords
- Restrict backend IP addresses if possible
- Keep TYPO3 and extensions up-to-date
- Configure HTTPS
- Make regular backups
Related Articles
Need Help?
We are here for you! Are you facing any issues or do you have questions? Our support team is happy to assist you personally. Send us a message via the ticket system - we usually respond within a few hours and are happy to help you out.
0 van 0 vonden dit nuttig