# Installation of Mautic v5 on Proxmox Server with Ubuntu 24 CT

**URL:** <https://forum.mautic.org/t/installation-of-mautic-v5-on-proxmox-server-with-ubuntu-24-ct/33393>\
**Category:** Mautic 5 Install/Upgrade Support\
**Tags:** mautic-5\
**Created:** [September 6, 2024, 3:24pm UTC](https://forum.mautic.org/t/installation-of-mautic-v5-on-proxmox-server-with-ubuntu-24-ct/33393 "2024-09-06T15:24:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tskamath](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tskamath/32/10147_2.png) [@tskamath](https://forum.mautic.org/u/tskamath)\
**Post date:** [September 6, 2024, 3:24pm UTC](https://forum.mautic.org/t/installation-of-mautic-v5-on-proxmox-server-with-ubuntu-24-ct/33393/1 "2024-09-06T15:24:24Z")

</div>

My Mautic version is: 5.1.0  
My PHP version is: 8.1  
My Database type and version is: mariaDB

**Your problem**  
My problem is: I had a prefect run to install the Mautic v5 following the TuT by @joeyk a big thanks and shout-out to him.

I ran into a few issues, which I want to highlight a few tips for others how may face similar issues.  
sudo apt install composer **failed due to error of timezone.**

Steps I have tried to fix the problem:

I would like to share the steps I followed to resolve some issues I encountered while setting up Mautic V5. These steps were primarily based on the excellent guidance provided by @joeyk[the TuT Blog](https://joeykeller.com/mautic-5-composer-install-simplified/) and in various posts on the forum.

### 1. Tweaking PHP Settings:

I followed the PHP setup instructions provided in the tutorial, and additionally adjusted the `date.timezone` setting in the loaded `php.ini` file:

```auto
php -i | grep php.ini

```

This returned:

```auto
Configuration File (php.ini) Path => /etc/php/8.1/cli
Loaded Configuration File => /etc/php/8.1/cli/php.ini

```

I then modified the `date.timezone` directive as needed and restarted the Apache service:

```auto
sudo systemctl restart apache2.service

```

Next, I installed Composer without any issues this time by running:

```auto
sudo apt install composer

```

### 2. Email Setup (Step 4):

_Rather than continuing with Step 4 in the tutorial_, I followed @joeyk’s latest blog [Mautic v5 Everything About Email Setup](https://joeykeller.com/mautic-5-this-is-how-email-setup-works/) on email setup for Mautic V5. I installed the [etailors\_amazon\_ses](https://github.com/pm-pmaas/etailors_amazon_ses/) plugin by manually uploading the necessary files to the `AmazonSesBundle` directory, as instructed.

### 3. Enabling SFTP for File Uploads:

To upload the required files, I had to enable SFTP on my server. This was done by modifying the SSH configuration:

```auto
sudo nano /etc/ssh/sshd_config

```

I found the line:

```auto
PermitRootLogin no
and changed it to 
PermitRootLogin yes

```

After making this change, I restarted the SSH service:

```auto
sudo service ssh restart

```

### 4. Handling Site URL and Cache Issues:

In previous installations of Mautic V4, I had switched the “Site URL” from `http` to `https`. However, if you have changed the URL to `https` and then clear the cache with:

```auto
sudo -u www-data php bin/console cache:clear

```

You might encounter an issue where the cache doesn’t rebuild properly.??? to webpage does not load “to many redirects” To resolve this, I had to manually edit the `config/local.php` file and revert the URL to `http`:

```auto
$parameters = array(
    'site_url' => 'http://mymautic.mydomain.com',
);

```

After this, I restarted the VM and ran the cache clear command again:

```auto
sudo -u www-data php bin/console cache:clear

```

In one of his posts, @joeyk suggested adding the following line to the `index.php` file to avoid redirect loops, though I have not yet confirmed if this step is necessary in my setup:

```auto
<?php
$_SERVER['HTTPS'] = 'on';

```

Thanks once again to [@joeyk](https://example.com) for the valuable posts and tutorials. Without your guidance, I would have faced significant challenges in getting Mautic V4 and V5 running successfully.

I hope this summary helps anyone encountering similar issues.

Best Regards,  
Srikanth Kamath

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [September 18, 2024, 10:04am UTC](https://forum.mautic.org/t/installation-of-mautic-v5-on-proxmox-server-with-ubuntu-24-ct/33393/2 "2024-09-18T10:04:02Z")

</div>

Root login? Don’t do that…

```auto
PermitRootLogin yes
and changed it to 
PermitRootLogin no

```
