New installation with composer: web installer not found

My Mautic version is: 5.10
My PHP version is: 8.2.20
My Database type and version is: 10.11.6-MariaDB-0+deb12u1

With Composer installed, I installed Mautic by running composer install from the folder where I extracted the installation files.

I setup Apache virtual server and ssl certificate.

When opening the web page with a browser, I am redirected to /installer url and get a 404 URL not found.

Apache logs:

{my_ip_address} - - [07/Aug/2024:15:25:04 +0200] “GET /favicon.ico HTTP/1.1” 200 13253 “https://{my_domain}/installer” “Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0”
{my_ip_address} - - [07/Aug/2024:15:26:42 +0200] “GET / HTTP/1.1” 404 893 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36”
{my_ip_address} - - [07/Aug/2024:15:27:02 +0200] “-” 408 323 “-” “-”
{my_ip_address} - - [07/Aug/2024:15:38:15 +0200] “GET / HTTP/1.1” 302 3633 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36”
{my_ip_address} - - [07/Aug/2024:15:38:15 +0200] “GET /installer HTTP/1.1” 404 3490 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36”
{my_ip_address} - - [07/Aug/2024:15:43:32 +0200] “GET /installer HTTP/1.1” 404 3491 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36”
{my_ip_address} - - [07/Aug/2024:15:43:36 +0200] “GET / HTTP/1.1” 302 714 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36”
{my_ip_address} - - [07/Aug/2024:15:43:36 +0200] “GET /installer HTTP/1.1” 404 3490 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36”
{my_ip_address} - - [07/Aug/2024:15:43:36 +0200] “GET / HTTP/1.1” 302 714 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36”
{my_ip_address} - - [07/Aug/2024:15:43:36 +0200] “GET /installer HTTP/1.1” 404 893 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36”

Hi can I get help on this topic? I described the installation steps using Composer, which seems to be one of the recommended installation paths. The description above was for 5.1.0 , and for 5.1.1. I have the same problem. Maybe should I add more details? Or am I completely off and should follow another installation path? Ideally I would like to have a production version. Thanks

Hi, do you have a .htaccess file in place?
Is your path set properly in apache?

1 Like

Hi, do you have a .htaccess file in place?

No, should I?

Is your path set properly in apache?

If you mean adding docroot to the DocumentRoot directive in apache Virtual Host configuration, I just learned it from another tutorial. Maybe it’s worth to mention it in the official tutorials / setup instructions - btw with this, now the web installation works!

By the way, if I follow the installation instructions available here, there is no docroot subfolder, and I still can’t open the web installer.

If I follow these instructions instead, there is a docroot subfolder and I need to add it to the apache VH configuration. If I do so, the installation works, but then the /s/dashboard path is not accessible.

In both cases I don’t have a .htaccess file in place, and the VH configuration is:

<Directory /var/www/hmtl/mautic/>  // or /var/www/hmtl/mautic/docroot/
  Options FollowSymLinks MultiViews
  AllowOverride All
  Order allow,deny
  allow from all
</Directory>
RewriteEngine on