Why is Mautic so difficult to install?

Did you copy/paste the command for installing PHP directly? php8.1-xml is part of that command, but on the second line. I wonder if only the first line of the command was run.

Can you try this again?

apt-get install -y php8.1 php8.1-cli php8.1-curl php8.1-mbstring php8.1-mysql php8.1-xml php8.1-zip php8.1-intl php8.1-gd php8.1-imap php8.1-bcmath libapache2-mod-php8.1 unzip
1 Like

I did it all copy / paste. Will try it again when I get some space this week; thanks.

Meanwhile, Mautic 6 has come out…

New error while running sudo -u www-data composer create-project mautic/recommended-project:^5 /var/www/mautic --no-interaction

In CreateProjectCommand.php line 321:
  chdir(): Permission denied (errno 13)

It seems like www-data has permission?

ubuntu@ip-###-##-##-###:/var/www$ ls -l /var/www
total 8
drwxr-xr-x 2 www-data www-data 4096 Apr  2 00:37 html
drwxr-xr-x 9 www-data www-data 4096 Apr  2 01:08 mautic

I’ve been copy-pasting commands faithfully from the article. What am I missing?

Thanks in advance!

Try sudo rm -r mautic and run the create project command again.

1 Like

Okay, that worked, I think… however I can’t get to the site with the domain name (only the IP address, which takes me to the /installer screen, and that’s farther along than I’ve been able to get to date, so thanks!).

I’ve had an A record for the the IP address in place for over a week and it shows as propagated. I had it behind a Cloudflare tunnel and thought that might be an issue, so that’s been turned off.

When I run host domain name in the terminal, it returns the correct IP address.

I’m furiously Googling possible issues at the same time I gratefully await any ideas you might have, gem. Thanks again.

Ran out of time to edit, but: all I had to do was open the HTTPS port on my Lightsail instance.

Now I can move on to setting up cron jobs and such. Or… I wonder if I should upgrade to Mautic 6 before I go too deep on 5?

Thanks again, very much!

I haven’t messed with 6 yet, so I can’t give any recommendations.

Glad you got it worked out!

1 Like

Much obliged!

if anyone is looking to try out Mautic 6.0 you can PM me - we have thrown up an image for people to check it out and play around with.