# Mautic 3 on Centos 7 404 after installer completes

**URL:** <https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [June 26, 2020, 2:44am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961 "2020-06-26T02:44:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![netideas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/netideas/32/2766_2.png) [@netideas](https://forum.mautic.org/u/netideas)\
**Post date:** [June 26, 2020, 2:44am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/1 "2020-06-26T02:44:11Z")

</div>

**Your software**  
_My PHP version is_ : 7.3.19  
\*My MySQL version is: 5.7.30-1

**Installing Errors**  
_I am_ (delete as applicable): Installing  
_installing via_ (delete as applicable) : Command Line

_These errors are showing in the installer_ :

_These errors are showing in the Mautic log_ :

_These errors are showing in the upgrade\_log.txt file (located in the root of your Mautic instance when an upgrade has been attempted - ensure you remove or redact any sensitive data such as domain names in the file path)_ :

**Your problem**  
_My problem is_ :  
This is a clean install of Centos 7 on a local PC to test Mautic  
Mautic files are in apache default site /var/www/html  
http write via selinux is only allowed to var, and config as I’m trying to create as secure an instance as possible.

The Installer prerequisites were met and the installer web gui went through as described.

When I browse to the site I get a 404 error  
initial url [http://lists.nw.local](http://lists.nw.local)  
redirected url [http://lists.nw.local/s/dashboard](http://lists.nw.local/s/dashboard)  
I believe it should be  
[http://lists.nw.local/index.php/s/dashboard](http://lists.nw.local/index.php/s/dashboard)  
If I use that url it shows the login page but after attempting to log in the next page gets a 404 error as index.php is no longer in the url  
There are no errors in the apache log

The Mautic log only contains

[2020-06-23 20:35:49] mautic.ERROR: SCHEMA ERROR: An exception occurred while executing ‘SELECT f.alias, f.is\_unique\_identifer as is\_unique, f.type, f.object FROM lead\_fields f WHERE f.object = ‘lead’ ORDER BY f.field\_order ASC’: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘mauticdb.lead\_fields’ doesn’t exist

_Steps I have tried to fix the problem_ :

I’ve tried comparing apache config to setttings posted in howto articles but as I’m not using vhosts the default site settings seem to match, This system will only host Mautic. I haven’t configured https as this is an internal test.

Please advise?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [June 26, 2020, 7:49am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/2 "2020-06-26T07:49:03Z")

</div>

> [@netideas](#):
>
> When I browse to the site I get a 404 error  
> initial url [http://lists.nw.local](http://lists.nw.local)  
> redirected url [http://lists.nw.local/s/dashboard](http://lists.nw.local/s/dashboard)  
> I believe it should be  
> [http://lists.nw.local/index.php/s/dashboard](http://lists.nw.local/index.php/s/dashboard)  
> If I use that url it shows the login page but after attempting to log in the next page gets a 404 error as index.php is no longer in the url

There should not be an index.php in the URL. Are you missing the .htaccess file from the installation perhaps?

---

<div class="post-metadata">

**Author:** ![netideas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/netideas/32/2766_2.png) [@netideas](https://forum.mautic.org/u/netideas)\
**Post date:** [June 26, 2020, 8:39am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/3 "2020-06-26T08:39:05Z")

</div>

Thank you very much for your assistance.

The .htaccess file is there and I assume correct.

The Apache install is default 2.4.6-93 if that helps.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [June 26, 2020, 7:06pm UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/4 "2020-06-26T19:06:13Z")

</div>

4 posts were split to a new topic: [404 error after installing Mautic 3](https://forum.mautic.org/t/404-error-after-installing-mautic-3/14982)

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [June 26, 2020, 4:15pm UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/6 "2020-06-26T16:15:23Z")

</div>

What is the site URL in your Mautic configuration (under General Settings)?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [June 26, 2020, 7:05pm UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/10 "2020-06-26T19:05:21Z")

</div>

It seems like there are some permission/rewrite issues going on @netideas ?

Have a look in `app/config/local.php` for the site URL, it should not contain /index.php/. Also double check the htaccess against the link above.

This might be helpful for checking permissions: [https://docs.mautic.org/en/troubleshooting/file-ownership-and-permissions](https://docs.mautic.org/en/troubleshooting/file-ownership-and-permissions)

---

<div class="post-metadata">

**Author:** ![masterale](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/masterale/32/433_2.png) [@masterale](https://forum.mautic.org/u/masterale)\
**Post date:** [June 28, 2020, 6:53pm UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/11 "2020-06-28T18:53:38Z")

</div>

Sorry if i reply to this post, but i think is the same problem.

Hi,  
i have the same problem on clean installation on Ubuntu 18.04 server made 2 days ago, with nginx and Mysql.  
Problem is egual.  
When connect to mautic3 website, receive 404 error and return url is : [https://192.168.1.95/s/login](https://192.168.1.95/s/login)  
So i try to modify this url so : [https://192.168.1.95/index.php/s/login](https://192.168.1.95/index.php/s/login) and i receive login form.  
After user and password and after click on Login button, i take another 404 error  
with this return url : [https://192.168.1.95/s/login\_check](https://192.168.1.95/s/login_check).  
What’s appen ?  
I have downloaded .htaccess from github, but problem wasnt resolved.  
Any idea ?

p.s. i have another mautic2 installation and work fine, no problem.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [June 29, 2020, 12:51pm UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/12 "2020-06-29T12:51:55Z")

</div>

What is the site URL in your local.php file?

---

<div class="post-metadata">

**Author:** ![masterale](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/masterale/32/433_2.png) [@masterale](https://forum.mautic.org/u/masterale)\
**Post date:** [June 29, 2020, 1:56pm UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/13 "2020-06-29T13:56:22Z")

</div>

In **/var/www/mautic/app/config/local.php** the **site\_url** parm is : **[https://192.168.1.95](https://192.168.1.95)**  
Ty for help.

---

<div class="post-metadata">

**Author:** ![netideas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/netideas/32/2766_2.png) [@netideas](https://forum.mautic.org/u/netideas)\
**Post date:** [June 29, 2020, 10:27pm UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/14 "2020-06-29T22:27:46Z")

</div>

In local.php there is ‘site\_url’ =\> ‘[http://192.168.20.65](http://192.168.20.65)’,

Does the site have to be https ?

I still need to compare .htaccess files although I’m using the one that came with Mautic with no modifications. Will also relax file permissions just in case

Thanks

---

<div class="post-metadata">

**Author:** ![setti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/setti/32/2827_2.png) [@setti](https://forum.mautic.org/u/setti)\
**Post date:** [July 1, 2020, 8:46am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/15 "2020-07-01T08:46:31Z")

</div>

I’ve got the same exact issue on Ubuntu 20.04 running Apache2. Anyone got this figured out?

---

<div class="post-metadata">

**Author:** ![ezzat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ezzat/32/825_2.png) [@ezzat](https://forum.mautic.org/u/ezzat)\
**Post date:** [July 1, 2020, 5:19pm UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/16 "2020-07-01T17:19:18Z")

</div>

Same issue here on ubuntu 18

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [July 1, 2020, 5:54pm UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/17 "2020-07-01T17:54:31Z")

</div>

In order to help us troubleshoot further, can everyone please provide us with the following information:

- What webserver are you using (Apache/Nginx)? If you can, please let us know the webserver version number as well.
  - If Apache, have you set up Mautic as a vhost or under the webserver’s root directory (e.g. [http://localhost/mautic](http://localhost/mautic))?

- Are you running Mautic behind a [reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy)?
- Are you running Mautic on HTTP or HTTPS?

Thanks in advance!!

---

<div class="post-metadata">

**Author:** ![netideas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/netideas/32/2766_2.png) [@netideas](https://forum.mautic.org/u/netideas)\
**Post date:** [July 2, 2020, 2:50am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/18 "2020-07-02T02:50:26Z")

</div>

Apache package httpd-2.4.6-93.el7.centos.x86\_64

Mautic is in webserver root running as http

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [July 2, 2020, 9:41am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/19 "2020-07-02T09:41:16Z")

</div>

I just set up a clean CentOS 7 VM with Apache 2.4.6 and PHP 7.3, and can indeed reproduce the issue after the installer completes:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/39758c7212a6d890c9fb18cd5eb3672a376b15f0.png)

I checked the Apache configuration and by default, `AllowOverride` is set to `None` in `httpd.conf`, which is causing the 404s. This [setting was set to `None` by default starting with Apache 2.3.9](https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride).

Setting the `AllowOverride` setting to `All` fixed the issue for me 🚀  
**Don’t forget to run ` sudo systemctl restart httpd` after changing the config file!**

```auto
<Directory "/var/www/html">
    # ... Other config here ...

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    # ... Other config here ...
</Directory>

```

Please let us know if this helps!

---

<div class="post-metadata">

**Author:** ![stefanomarty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stefanomarty/32/690_2.png) [@stefanomarty](https://forum.mautic.org/u/stefanomarty)\
**Post date:** [July 2, 2020, 9:57am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/20 "2020-07-02T09:57:36Z")

</div>

Hi,  
had the same error on Debian9, and I found I too had “AllowOverride None” in the apache directive, probably a copy&paste from a different site configuration.

By setting “AllowOverride All” I solved the 404 as well.

---

<div class="post-metadata">

**Author:** ![netideas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/netideas/32/2766_2.png) [@netideas](https://forum.mautic.org/u/netideas)\
**Post date:** [July 3, 2020, 2:39am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/21 "2020-07-03T02:39:48Z")

</div>

Thanks for your time and effort to investigate this.  
That solved the issue.  
Very much appreciated.

---

<div class="post-metadata">

**Author:** ![setti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/setti/32/2827_2.png) [@setti](https://forum.mautic.org/u/setti)\
**Post date:** [July 3, 2020, 3:19am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/22 "2020-07-03T03:19:34Z")

</div>

Problem solved. Thanks mate. 👍

---

<div class="post-metadata">

**Author:** ![masterale](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/masterale/32/433_2.png) [@masterale](https://forum.mautic.org/u/masterale)\
**Post date:** [July 3, 2020, 7:17am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/23 "2020-07-03T07:17:56Z")

</div>

Information requested :

- What webserver are you using (Apache/Nginx)? If you can, please let us know the webserver version number as well.  
_**nginx version: nginx/1.14.0 (Ubuntu 18.04 server)**_

- Are you running Mautic behind a [reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy)?  
_ **NO. And i have already a mautic 2 running server from 2 month** _

- Are you running Mautic on HTTP or HTTPS?  
_ **Https** __ **If want can show you nginx webserver config** _

Thank you a lot, for help.

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [July 3, 2020, 9:27am UTC](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961/24 "2020-07-03T09:27:59Z")

</div>

@masterale Can you please share you Nginx config? Mautic works best with Apache out of the box, but if you share your config here we can have a look 🙂

[Next page](https://forum.mautic.org/t/mautic-3-on-centos-7-404-after-installer-completes/14961.md?page=2)
